![]() |
MAK Data Logger API Documentation for DIS
|
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.
| MAKLogger::DtPduDescriptor::DtPduDescriptor | ( | DtDisDescriptor * | disObj, |
| const DtString & | name, | ||
| DtU32 | kind, | ||
| int | _enIdOff, | ||
| int | _typeOff | ||
| ) |
Main Constructor.
| MAKLogger::DtPduDescriptor::DtPduDescriptor | ( | DtDisDescriptor * | disObj, |
| const char * | bfr, | ||
| int | bsz, | ||
| int & | pduSize | ||
| ) |
Constructor from serial form.
|
virtual |
Destructor.
| MAKLogger::DtPduDescriptor::DtPduDescriptor | ( | const DtPduDescriptor & | src | ) |
Copy constructor.
|
inline |
References myEntityIdOff.
|
inline |
References myEntityTypeOff.
|
inline |
Is this object class filtered out.
References myFilteredFlag.
|
inline |
Get the Pdu kind enumerator.
References myKind.
|
inline |
Get the Pdu name.
References myName.
| DtPduDescriptor& MAKLogger::DtPduDescriptor::operator= | ( | const DtPduDescriptor & | src | ) |
Assignment operator.
| 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.
|
inline |
Set/Get the offset to the EntityId field (within the Pdu layout)
References myEntityIdOff.
|
inline |
Set/Get the offset to the EntityType field (within the Pdu layout)
References myEntityTypeOff.
|
inline |
Toggle on/off the filtering of this object class.
References myFilteredFlag.
|
protected |
|
protected |
Referenced by entityIdOffset(), and setEntityIdOffset().
|
protected |
Referenced by entityTypeOffset(), and setEntityTypeOffset().
|
protected |
Referenced by isFilteredPdu(), and setIsFilteredPdu().
|
protected |
Referenced by kind().
|
protected |
Referenced by name().
|
protected |