Public Member Functions | Protected Attributes
MAKLogger::DtPduDescriptor Class Reference

A runtime description of a DIS pdu. More...

+ Collaboration diagram for MAKLogger::DtPduDescriptor:

List of all members.

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.
DtPduDescriptoroperator= (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
DtDisDescriptormyDisObject

Detailed Description

A runtime description of a DIS pdu.


Member Function Documentation

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.

  • - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Note: To figure out what buffer size will be necessary, call this method with 'bfr' set to NULL -- the method will compute and return the necessary size without any actual copying of data.

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

Document ID: Generated on Tue Oct 11 19:41:03 EDT 2011 from SVN revision 107422
Copyright © 2005-2011 VT MÄK Inc. All Rights Reserved (www.mak.com)