VR-Exchange 2.2 API Documentation
List of all members | Public Member Functions
MAKVrExchange::DtVariableLengthData Class Reference

Represents variable length byte arrays. More...

Public Member Functions

 DtVariableLengthData (const char *data, unsigned int size)
 Default CTOR, takes a pointer to memory, and size bytes are copied into local storage.
 DtVariableLengthData ()
 ~DtVariableLengthData ()
 Default DTOR.
 DtVariableLengthData (const DtVariableLengthData &other)
 Copy CTOR – class is copyable.
DtVariableLengthDataoperator= (const DtVariableLengthData &other)
 Assignment Operator – class is copyable.
bool operator== (const DtVariableLengthData &other) const
 Tests for equality by comparing size and bytes.
bool operator!= (const DtVariableLengthData &other) const
void setData (const char *data, unsigned int size)
 sets the data
const char * data () const
 Returns the data for this class.
const unsigned int size () const
 Returns the number of bytes stored in this class.
virtual std::ostream & printDataToStream (std::ostream &stream) const
 Prints the byte array to a stream in hex.
Data Exchange Attributes
 DtDEC_ATTRIBUTE (std::vector< char >, DataArray, dataArray)

Detailed Description

Represents variable length byte arrays.

Constructor & Destructor Documentation

MAKVrExchange::DtVariableLengthData::DtVariableLengthData ( const char *  data,
unsigned int  size 
)

Default CTOR, takes a pointer to memory, and size bytes are copied into local storage.

MAKVrExchange::DtVariableLengthData::DtVariableLengthData ( )
MAKVrExchange::DtVariableLengthData::~DtVariableLengthData ( )

Default DTOR.

MAKVrExchange::DtVariableLengthData::DtVariableLengthData ( const DtVariableLengthData other)

Copy CTOR – class is copyable.

Member Function Documentation

DtVariableLengthData& MAKVrExchange::DtVariableLengthData::operator= ( const DtVariableLengthData other)

Assignment Operator – class is copyable.

bool MAKVrExchange::DtVariableLengthData::operator== ( const DtVariableLengthData other) const

Tests for equality by comparing size and bytes.

bool MAKVrExchange::DtVariableLengthData::operator!= ( const DtVariableLengthData other) const
void MAKVrExchange::DtVariableLengthData::setData ( const char *  data,
unsigned int  size 
)

sets the data

const char* MAKVrExchange::DtVariableLengthData::data ( ) const

Returns the data for this class.

const unsigned int MAKVrExchange::DtVariableLengthData::size ( ) const

Returns the number of bytes stored in this class.

virtual std::ostream& MAKVrExchange::DtVariableLengthData::printDataToStream ( std::ostream &  stream) const
virtual

Prints the byte array to a stream in hex.

MAKVrExchange::DtVariableLengthData::DtDEC_ATTRIBUTE ( std::vector< char >  ,
DataArray  ,
dataArray   
)

The documentation for this class was generated from the following file:

Document ID: Generated on Mon Apr 15 17:15:50 EDT 2013 from SVN revision 126154
Copyright © 2005-2012 VT MÄK. All Rights Reserved (www.mak.com)