![]() |
VR-Link API Documentation for HLA 4
|
A generic variable record that has a variable sized buffer Because the format of the contents is not known, the buffer is always padded to the required 8-byte boundary (i.e., there might be additional trailing bytes added to the variable data from what is expected. More...
Inheritance diagram for DtGenericVariableRecord:
Collaboration diagram for DtGenericVariableRecord:Public Member Functions | |
| DtGenericVariableRecord (unsigned int recordType, unsigned int dataLength=0, void *dataPtr=0) | |
| Construct a record of the given type with optional data length (not including header or padding) and data. More... | |
| DtGenericVariableRecord (const DtGenericVariableRecord &orig) | |
| Copy Constructor. More... | |
| DtGenericVariableRecord (void *ptr, unsigned int size) | |
| Net Constructor Memory must exist for life of the variable record. More... | |
| virtual | ~DtGenericVariableRecord () |
| Destructor. More... | |
| virtual DtGenericVariableRecord & | operator= (const DtGenericVariableRecord &record) |
| Assignment Operator. More... | |
| virtual DtStandardVariableRecord & | operator= (const DtStandardVariableRecord &other) |
| Assignment operator. More... | |
| virtual bool | operator== (const DtGenericVariableRecord &record) |
| Equals Operator. More... | |
| virtual bool | operator== (const DtStandardVariableRecord &record) |
| Equals Operator. More... | |
| virtual unsigned int | dataSize () const |
| Get the variable data size (will include size of padding bytes if any) More... | |
| virtual void | writeRecord (void *addr) const |
| virtual void | setFromNet (const void *netRecord, unsigned int length, DtStandardVariableRetCode *retCode=NULL) |
| Sets the record from an address and length. More... | |
| virtual const char * | netRep () const |
| The net record including the header. More... | |
| virtual void | printDataToStream (std::ostream &stream) const |
| Prints the data to the specified stream. More... | |
| virtual unsigned int | unpaddedNetsize () const |
| This is the network size of the record without padding. More... | |
| virtual DtStandardVariableRecord * | clone () const |
| Clone. More... | |
| virtual unsigned int | recordType () const |
| Get/Set Record Type. More... | |
| virtual void | setRecordType (unsigned int recordType) |
| Get/Set Record Type. More... | |
| virtual unsigned int | recordLength () const |
| Get/Set Record Length. More... | |
| virtual void | setRecordLength (unsigned int length) |
| Must include size of record header and padding to 8 bytes. More... | |
| virtual const char * | variableData () const |
| Get/Set the variable data part of record. More... | |
| virtual char * | variableData () |
| Get/Set the variable data part of record. More... | |
| virtual void | setVariableData (const std::vector< char > &data) |
| Get/Set the variable data part of record. More... | |
| virtual void | setVariableData (const char *data, unsigned size) |
| Get/Set the variable data part of record. More... | |
Public Member Functions inherited from DtStandardVariableRecord | |
| DtStandardVariableRecord () | |
| Constructor. More... | |
| virtual | ~DtStandardVariableRecord () |
| Destructor. More... | |
| virtual void | printData () const |
| Prints the data to DtInfo. More... | |
| virtual unsigned int | netSize () |
| Returns the size of the network representation (including padding bytes) More... | |
| virtual void | setOriginatingSimulationAddress (const DtSimulationAddress &) |
| virtual const DtSimulationAddress & | originatingSimulationAddress () const |
Static Public Member Functions | |
| static DtStandardVariableRecord * | create (void *addr, unsigned int length) |
| Creator of an unknown record for registering in a factory. More... | |
Protected Member Functions | |
| virtual void | resizeForDataOfSize (int size) |
| Resize the buffer for the given data size. More... | |
Protected Attributes | |
| std::vector< char > | myRecordBuffer |
| DtNetGenericVariableRecord * | myRecordPtr |
| DtU8 * | myVariableDataPtr |
| unsigned int | myNetSize |
| Greater than 0 only when record is wrapping around a network buffer. More... | |
Protected Attributes inherited from DtStandardVariableRecord | |
| DtSimulationAddress | myOriginatingSimulationAddress |
A generic variable record that has a variable sized buffer Because the format of the contents is not known, the buffer is always padded to the required 8-byte boundary (i.e., there might be additional trailing bytes added to the variable data from what is expected.
| DtGenericVariableRecord::DtGenericVariableRecord | ( | unsigned int | recordType, |
| unsigned int | dataLength = 0, |
||
| void * | dataPtr = 0 |
||
| ) |
Construct a record of the given type with optional data length (not including header or padding) and data.
| DtGenericVariableRecord::DtGenericVariableRecord | ( | const DtGenericVariableRecord & | orig | ) |
Copy Constructor.
| DtGenericVariableRecord::DtGenericVariableRecord | ( | void * | ptr, |
| unsigned int | size | ||
| ) |
Net Constructor Memory must exist for life of the variable record.
|
virtual |
Destructor.
|
virtual |
Clone.
Implements DtStandardVariableRecord.
Reimplemented in DtDiGuyAppearanceRecord, DtDiGuyShapeVariationsRecord, DtDiGuyScaleRecord, and DtDiGuyTypeRecord.
|
static |
Creator of an unknown record for registering in a factory.
|
virtual |
Get the variable data size (will include size of padding bytes if any)
|
virtual |
The net record including the header.
|
virtual |
Assignment Operator.
|
virtual |
Assignment operator.
Reimplemented in DtDiGuyShapeVariationsRecord, DtDiGuyAppearanceRecord, DtDiGuyScaleRecord, and DtDiGuyTypeRecord.
|
virtual |
Equals Operator.
|
virtual |
Equals Operator.
Implements DtStandardVariableRecord.
Reimplemented in DtDiGuyShapeVariationsRecord, DtDiGuyAppearanceRecord, DtDiGuyScaleRecord, and DtDiGuyTypeRecord.
|
virtual |
Prints the data to the specified stream.
Implements DtStandardVariableRecord.
Reimplemented in DtDiGuyAppearanceRecord, DtDiGuyShapeVariationsRecord, DtDiGuyScaleRecord, and DtDiGuyTypeRecord.
|
virtual |
Get/Set Record Length.
Implements DtStandardVariableRecord.
|
virtual |
Get/Set Record Type.
Implements DtStandardVariableRecord.
|
protectedvirtual |
Resize the buffer for the given data size.
|
virtual |
Sets the record from an address and length.
Return code will be Valid if all goes well. Memory for netRecord must exist for life of this variable record or until setFromNet or assignment is performed
Implements DtStandardVariableRecord.
Reimplemented in DtDiGuyAppearanceRecord, DtDiGuyShapeVariationsRecord, DtDiGuyScaleRecord, and DtDiGuyTypeRecord.
|
virtual |
Must include size of record header and padding to 8 bytes.
Implements DtStandardVariableRecord.
|
virtual |
Get/Set Record Type.
Implements DtStandardVariableRecord.
|
virtual |
Get/Set the variable data part of record.
Returned buffer will include padding bytes if any
|
virtual |
Get/Set the variable data part of record.
Returned buffer will include padding bytes if any
|
virtual |
This is the network size of the record without padding.
Implements DtStandardVariableRecord.
Reimplemented in DtDiGuyAppearanceRecord, DtDiGuyShapeVariationsRecord, DtDiGuyScaleRecord, and DtDiGuyTypeRecord.
|
virtual |
Get/Set the variable data part of record.
Returned buffer will include padding bytes if any
|
virtual |
Get/Set the variable data part of record.
Returned buffer will include padding bytes if any
|
virtual |
Implements DtStandardVariableRecord.
Reimplemented in DtDiGuyAppearanceRecord, DtDiGuyShapeVariationsRecord, DtDiGuyScaleRecord, and DtDiGuyTypeRecord.
|
protected |
Greater than 0 only when record is wrapping around a network buffer.
|
protected |
|
protected |
|
protected |