open-dis-cpp
Public Member Functions | Protected Attributes | List of all members
DIS::PduHeader Class Reference

Public Member Functions

virtual void marshal (DataStream &dataStream) const
 
virtual void unmarshal (DataStream &dataStream)
 
unsigned char getProtocolVersion () const
 
void setProtocolVersion (unsigned char pX)
 
unsigned char getExerciseID () const
 
void setExerciseID (unsigned char pX)
 
unsigned char getPduType () const
 
void setPduType (unsigned char pX)
 
unsigned char getProtocolFamily () const
 
void setProtocolFamily (unsigned char pX)
 
unsigned int getTimestamp () const
 
void setTimestamp (unsigned int pX)
 
unsigned char getPduLength () const
 
void setPduLength (unsigned char pX)
 
unsigned short getPduStatus () const
 
void setPduStatus (unsigned short pX)
 
unsigned char getPadding () const
 
void setPadding (unsigned char pX)
 
virtual int getMarshalledSize () const
 
bool operator== (const PduHeader &rhs) const
 

Protected Attributes

unsigned char _protocolVersion
 The version of the protocol. More...
 
unsigned char _exerciseID
 Exercise ID.
 
unsigned char _pduType
 Type of pdu, unique for each PDU class.
 
unsigned char _protocolFamily
 value that refers to the protocol family, eg SimulationManagement, etc
 
unsigned int _timestamp
 Timestamp value.
 
unsigned char _pduLength
 Length, in bytes, of the PDU. More...
 
unsigned short _pduStatus
 PDU Status Record. More...
 
unsigned char _padding
 zero filled array of padding
 

Member Data Documentation

◆ _pduLength

unsigned char DIS::PduHeader::_pduLength
protected

Length, in bytes, of the PDU.

Changed name from length to avoid use of Hibernate QL reserved word.

◆ _pduStatus

unsigned short DIS::PduHeader::_pduStatus
protected

PDU Status Record.

Described in 6.2.67. This field is not present in earlier DIS versions

◆ _protocolVersion

unsigned char DIS::PduHeader::_protocolVersion
protected

The version of the protocol.

5=DIS-1995, 6=DIS-1998, 7=DIS-2009.


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