#include <conexus/data.h>
Additional it provides several typedefs that may be used to ensure type consistency both within the conexus library, and with applications using the conexus library.
Public Types | |
typedef uint8_t | Octet |
Typedefs the concept of an octet as an unsigned 8 bit integer. | |
typedef boost::shared_array< Octet > | Octets |
Provides a convenience typedef of a smart pointer to constant data. | |
Public Member Functions | |
CData () | |
Default constructor initializes data size to zero and relies on smart pointer constructor to initialize pointer to NULL. | |
CData (const void *d, size_t s) | |
Constructor which accepts a smart pointer to data and data size in bytes. | |
operator const Octet * () | |
Overloaded dereference operator provides direct access to actual data. | |
operator bool () | |
Public Attributes | |
const Octets & | data |
Smart pointer to the underlying data. | |
const size_t | size |
Size of the data in bytes. | |
Protected Attributes | |
boost::shared_array< Octet > | m_data |
|
Provides a convenience typedef of a smart pointer to constant data. Hint: access externally as CData::Octets |
|
Overloaded dereference operator provides direct access to actual data. If you want access to the smart pointer, use the data member instead. |