bit::FieldBuffer Class Reference
["Data Buffers""Data Buffers""Data Buffers"]

#include <bit/fieldbuffer.h>

List of all members.


Detailed Description

Combines the concept of a field with a means of extracting field data from a buffer.

Author:
Rick L. Vinyard, Jr. <rvinyard@cs.nmsu.edu>


Public Member Functions

 FieldBuffer (RecordBuffer &b, FieldBase::pointer f)
const std::string & xml ()
FieldBuffer field (size_t index) throw (exception::invalid_index)
FieldBuffer field (std::string index) throw (exception::invalid_index)
FieldBuffer operator[] (size_t index) throw (exception::invalid_index)
FieldBuffer operator[] (std::string index) throw (exception::invalid_index)
template<typename T>
 operator T ()
Data data ()
 Returns a copy of the underlying data buffer allocated.
bool unpack (void *mem, size_t mem_octets)
template<typename T>
bool unpack (T &val)
bool pack (const void *mem, size_t mem_octets)
bool pack (const void *mem, size_t mem_octets, size_t n)
template<typename T>
bool pack (const T &val)
template<typename T>
FieldBufferoperator= (const T &t)
FieldBase::pointer field ()
RecordBufferbuffer ()
 FieldBuffer (RecordBuffer &b, FieldBase::pointer f)
const std::string & xml ()
FieldBuffer field (size_t index) throw (exception::invalid_index)
FieldBuffer field (std::string index) throw (exception::invalid_index)
FieldBuffer operator[] (size_t index) throw (exception::invalid_index)
FieldBuffer operator[] (std::string index) throw (exception::invalid_index)
template<typename T>
 operator T ()
Data::pointer data ()
 Returns a copy of the underlying data buffer allocated.
bool unpack (void *mem, size_t mem_octets)
template<typename T>
bool unpack (T &val)
bool pack (const void *mem, size_t mem_octets)
bool pack (const void *mem, size_t mem_octets, size_t n)
template<typename T>
bool pack (const T &val)
template<typename T>
FieldBufferoperator= (const T &t)
FieldBase::pointer field ()
RecordBufferbuffer ()
 FieldBuffer (RecordBuffer &b, FieldBase::pointer f)
const std::string & xml ()
FieldBuffer field (size_t index) throw (exception::invalid_index)
FieldBuffer field (std::string index) throw (exception::invalid_index)
FieldBuffer operator[] (size_t index) throw (exception::invalid_index)
FieldBuffer operator[] (std::string index) throw (exception::invalid_index)
template<typename T>
 operator T ()
Data::pointer data ()
 Returns a copy of the underlying data buffer allocated.
bool unpack (void *mem, size_t mem_octets)
template<typename T>
bool unpack (T &val)
bool pack (const void *mem, size_t mem_octets)
bool pack (const void *mem, size_t mem_octets, size_t n)
template<typename T>
bool pack (const T &val)
template<typename T>
FieldBufferoperator= (const T &t)
FieldBase::pointer field ()
RecordBufferbuffer ()
template<>
bool unpack (std::string &val)
template<>
bool pack (const std::string &val)

Protected Member Functions

bool unpack_uint64 (uint64_t &ui64)
 Unpacks the field according to the field's byte order and returns the field as a 64-bit value in the host order.
bool unpack_float (float &f)
bool unpack_double (double &d)
bool pack_uint64 (uint64_t data)
 Packs host ordered 64-bit value according to the field's byte order specification.
bool pack_float (float f)
bool pack_double (double d)
bool unpack_uint64 (uint64_t &ui64)
 Unpacks the field according to the field's byte order and returns the field as a 64-bit value in the host order.
bool unpack_float (float &f)
bool unpack_double (double &d)
bool pack_uint64 (uint64_t data)
 Packs host ordered 64-bit value according to the field's byte order specification.
bool pack_float (float f)
bool pack_double (double d)
bool unpack_uint64 (uint64_t &ui64)
 Unpacks the field according to the field's byte order and returns the field as a 64-bit value in the host order.
bool unpack_float (float &f)
bool unpack_double (double &d)
bool pack_uint64 (uint64_t data)
 Packs host ordered 64-bit value according to the field's byte order specification.
bool pack_float (float f)
bool pack_double (double d)

Protected Attributes

RecordBufferm_buffer
FieldBase::pointer m_field
std::string m_xml
RecordBufferm_buffer
RecordBufferm_buffer


The documentation for this class was generated from the following files:
Generated on Tue Mar 13 20:00:04 2007 by  doxygen 1.5.1