3 #include <dis6/utils/DataStream.h> 4 #include <dis6/opendis6_export.h> 15 class OPENDIS6_EXPORT
Pdu 44 virtual void marshal(
DataStream& dataStream)
const;
45 virtual void unmarshal(
DataStream& dataStream);
47 unsigned char getProtocolVersion()
const;
48 void setProtocolVersion(
unsigned char pX);
50 unsigned char getExerciseID()
const;
51 void setExerciseID(
unsigned char pX);
53 unsigned char getPduType()
const;
54 void setPduType(
unsigned char pX);
56 unsigned char getProtocolFamily()
const;
57 void setProtocolFamily(
unsigned char pX);
59 unsigned int getTimestamp()
const;
60 void setTimestamp(
unsigned int pX);
62 unsigned short getLength()
const;
63 void setLength(
unsigned short pX);
65 short getPadding()
const;
66 void setPadding(
short pX);
69 virtual int getMarshalledSize()
const;
71 bool operator ==(
const Pdu& rhs)
const;
unsigned char _protocolFamily
value that refers to the protocol family, eg SimulationManagement, et
Definition: Pdu.h:28
Symbolic names as defined in 5.1.4.
Definition: AcknowledgePdu.h:8
short _padding
zero-filled array of padding
Definition: Pdu.h:37
a class to support managing a network buffer.
Definition: DataStream.h:28
unsigned short _length
Length, in bytes, of the PDU.
Definition: Pdu.h:34
unsigned char _exerciseID
Exercise ID.
Definition: Pdu.h:22
unsigned char _pduType
Type of pdu, unique for each PDU class.
Definition: Pdu.h:25
unsigned int _timestamp
Timestamp value.
Definition: Pdu.h:31
unsigned char _protocolVersion
The version of the protocol.
Definition: Pdu.h:19