A runtime description of a DIS pdu. More...
Collaboration diagram for MAKLogger::DtPduDescriptor:Public Member Functions | |
| DtPduDescriptor (DtDisDescriptor *disObj, const DtString &name, DtU32 kind, int _enIdOff, int _typeOff) | |
| Main Constructor. | |
| DtPduDescriptor (DtDisDescriptor *disObj, const char *bfr, int bsz, int &pduSize) | |
| Constructor from serial form. | |
| virtual | ~DtPduDescriptor () |
| Destructor. | |
| DtPduDescriptor (const DtPduDescriptor &src) | |
| Copy constructor. | |
| DtPduDescriptor & | operator= (const DtPduDescriptor &src) |
| Assignment operator. | |
| const DtString & | name () const |
| Get the Pdu name. | |
| DtU32 | kind () const |
| Get the Pdu kind enumerator. | |
| void | setEntityIdOffset (int off) |
| Set/Get the offset to the EntityId field (within the Pdu layout) | |
| int | entityIdOffset () const |
| void | setEntityTypeOffset (int off) |
| Set/Get the offset to the EntityType field (within the Pdu layout) | |
| int | entityTypeOffset () const |
| void | setIsFilteredPdu (bool onOff) |
| Toggle on/off the filtering of this object class. | |
| bool | isFilteredPdu () const |
| Is this object class filtered out. | |
| int | serialize (char *bfr, int bsz) |
| This method serializes the entire information contained in the current Pdu descriptor in a preallocated buffer (pointed to by 'bfr') of (remaining) free size 'bsz'. | |
Protected Attributes | |
| DtU32 | myKind |
| bool | myFilteredFlag |
| DtString | myName |
| int | myNameIndex |
| int | myEntityIdOff |
| int | myEntityTypeOff |
| DtDisDescriptor * | myDisObject |
A runtime description of a DIS pdu.
| int MAKLogger::DtPduDescriptor::serialize | ( | char * | bfr, |
| int | bsz | ||
| ) |
This method serializes the entire information contained in the current Pdu descriptor in a preallocated buffer (pointed to by 'bfr') of (remaining) free size 'bsz'.
Upon success the method advances 'bfr' to the end of the stored block and decrements 'bsz' by the number of bytes that were used. In either case the method returns the necessary size (in bytes) for the serialized form of the current Pdu descriptor.