![]() |
VR-Link API Documentation for DIS
|
Instances of DtVariableDatumRecord are used to hold a single variable datum record and to provide access to its network representation. More...
Collaboration diagram for DtVariableDatumRecord:Public Member Functions | |
| DtVariableDatumRecord () | |
| default constructor More... | |
| virtual | ~DtVariableDatumRecord () |
| destructor More... | |
| DtVariableDatumRecord (const DtVariableDatumRecord &orig) | |
| copy constructor More... | |
| DtVariableDatumRecord & | operator= (const DtVariableDatumRecord &orig) |
| assignment operator More... | |
| int | operator== (const DtVariableDatumRecord &otherguy) const |
| comparison operators More... | |
| int | operator!= (const DtVariableDatumRecord &otherguy) const |
| virtual void | setExternalBuffer (char *bufferPtr) |
| Set the working buffer to an externally supplied buffer. More... | |
| virtual void | setDatumBitLength (DtU32 newDatumBitLength) |
| Set/Get the datum length in bits. More... | |
| virtual DtU32 | datumBitLength () const |
| virtual int | datumByteLength () const |
| Get the datum length in bytes (padded to an 8 byte boundary). More... | |
| virtual void | setDatumID (DtDatumParam value) |
| Set/Get the variable datum ID. More... | |
| virtual DtDatumParam | datumID () const |
| virtual void | setDatumValFloat64 (DtFloat64 value) |
| Set/Get datum value as a DtFloat64. More... | |
| virtual DtFloat64 | datumValFloat64 () const |
| virtual void | setDatumValFloat32 (DtFloat32 value) |
| Set/Get datum value as a DtFloat32. More... | |
| virtual DtFloat32 | datumValFloat32 () const |
| virtual void | setDatumValInt32 (DtInt32 value) |
| Set/Get datum value as a DtInt32. More... | |
| virtual DtInt32 | datumValInt32 () const |
| virtual void | setDatumValU32 (DtU32 value) |
| Set/Get datum value as a DtU32. More... | |
| virtual DtU32 | datumValU32 () const |
| virtual void | setDatumValInt16 (DtInt16 value) |
| Set/Get datum value as a DtInt16. More... | |
| virtual DtInt16 | datumValInt16 () const |
| virtual void | setDatumValU16 (DtU16 value) |
| Set/Get datum value as a DtU16. More... | |
| virtual DtU16 | datumValU16 () const |
| virtual void | setDatumValU8 (DtU8 value) |
| Set/Get datum value as a DtU8. More... | |
| virtual DtU8 | datumValU8 () const |
| virtual void | setDatumValByteArray (const DtU8 *setFrom) |
| Set/Get datum value as a byte array. More... | |
| virtual void | getDatumValByteArray (DtU8 *copyTo) const |
| virtual char * | datumValPtr () |
| Get a pointer to the datum value inside of the record. More... | |
| virtual const char * | constDatumValPtr () const |
| Get a const pointer to the datum value inside of the record. More... | |
| virtual int | networkByteLength () const |
| Get the network byte length of the entire datum record. More... | |
| virtual const char * | networkDataBuffer () const |
| Get a pointer to the buffer which stores the network representation of the datum record. More... | |
| virtual void | printData () const |
| Print the contents of the record. More... | |
| virtual void | printDataToStream (std::ostream &str) const |
Protected Member Functions | |
| virtual DtNetVarDatum * | netStruct () |
| Cast the buffer to a DtNetVarDatum struct. More... | |
| virtual const DtNetVarDatum * | constNetStruct () const |
| Cast the buffer to a const DtNetVarDatum struct. More... | |
| virtual void | deleteIfNoExternal () |
| Delete the internal buffer if there is no external buffer. More... | |
| virtual int | datumByteSize (int datumBitLength) const |
| Compute the total datum size in bytes from the datum bit length. More... | |
| virtual int | recordByteSize (int datumBitLength) const |
| Compute the total record size in bytes from the datum bit length. More... | |
Protected Attributes | |
| char * | myRecordBuffer |
| char * | myExternalBuffer |
Instances of DtVariableDatumRecord are used to hold a single variable datum record and to provide access to its network representation.
| DtVariableDatumRecord::DtVariableDatumRecord | ( | ) |
default constructor
|
virtual |
destructor
| DtVariableDatumRecord::DtVariableDatumRecord | ( | const DtVariableDatumRecord & | orig | ) |
copy constructor
|
virtual |
Get a const pointer to the datum value inside of the record.
|
protectedvirtual |
Cast the buffer to a const DtNetVarDatum struct.
|
virtual |
|
virtual |
Get the datum length in bytes (padded to an 8 byte boundary).
Compute the total datum size in bytes from the datum bit length.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Get a pointer to the datum value inside of the record.
|
virtual |
|
virtual |
|
virtual |
|
protectedvirtual |
Delete the internal buffer if there is no external buffer.
|
virtual |
|
protectedvirtual |
Cast the buffer to a DtNetVarDatum struct.
|
virtual |
Get the network byte length of the entire datum record.
|
virtual |
Get a pointer to the buffer which stores the network representation of the datum record.
| int DtVariableDatumRecord::operator!= | ( | const DtVariableDatumRecord & | otherguy | ) | const |
| DtVariableDatumRecord& DtVariableDatumRecord::operator= | ( | const DtVariableDatumRecord & | orig | ) |
assignment operator
| int DtVariableDatumRecord::operator== | ( | const DtVariableDatumRecord & | otherguy | ) | const |
comparison operators
|
virtual |
Print the contents of the record.
|
virtual |
Compute the total record size in bytes from the datum bit length.
|
virtual |
Set/Get the datum length in bits.
This method will re-allocate memory if the buffer is an internal buffer.
|
virtual |
Set/Get the variable datum ID.
|
virtual |
Set/Get datum value as a byte array.
Data is copied to and from the network data buffer according to the specified length of the record.
|
virtual |
Set/Get datum value as a DtFloat32.
Set will set the datum bit length to 32.
|
virtual |
Set/Get datum value as a DtFloat64.
Set will set the datum bit length to 64.
|
virtual |
Set/Get datum value as a DtInt16.
Set will set the datum bit length to 16.
|
virtual |
Set/Get datum value as a DtInt32.
Set will set the datum bit length to 32.
|
virtual |
Set/Get datum value as a DtU16.
Set will set the datum bit length to 16.
|
virtual |
Set/Get datum value as a DtU32.
Set will set the datum bit length to 32.
|
virtual |
Set/Get datum value as a DtU8.
Set will set the datum bit length to 8.
|
virtual |
Set the working buffer to an externally supplied buffer.
|
protected |
|
protected |