41 enum { PduStaticSize = 23 };
73 virtual void setMessageVersion(
int version);
74 virtual int messageVersion()
const;
91 virtual void setDataSize(
unsigned int size);
92 virtual unsigned int dataSize()
const;
98 virtual void addBool(
bool value);
103 virtual void addShort(
short value);
108 virtual void addLong(
long value);
113 virtual void addFloat(
float value);
119 virtual void addString(
const DtString& str);
124 virtual void addUnsignedData(
int size,
const unsigned char* s);
139 virtual bool pullBool(
bool& value,
unsigned int& byteoffset )
const;
140 virtual bool pullShort(
short& value,
unsigned int& byteoffset )
const;
141 virtual bool pullLong(
long& value,
unsigned int& byteoffset )
const;
142 virtual bool pullFloat(
float& value,
unsigned int& byteoffset )
const;
143 virtual bool pullString(
DtString& value,
unsigned int& byteoffset )
const;
144 virtual bool pullUnsignedData(
const unsigned char*& value,
unsigned int& byteoffset,
int& bytes_read )
const;
149 virtual void getData(
unsigned char* buff)
const;
150 virtual void* data();
151 void setData(
unsigned char* data,
int numBytes);
188 static void setCustomPduKind(
DtPduKind pduKind);
Contains the DtEntityIdentifier class declaration.
Instances of DtExerciseConn are used to provide an application's interface or connection to the netwo...
Definition: exerciseConnDIS.h:61
Implements the storage, sending, and receipt of DI Guy custom PDU's.
Definition: diGuyCustomPdu.h:37
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
Network-order unsigned 16-bit quantity.
Definition: vlNetTypes.h:51
static DtPduKind theCustomPduKind
Definition: diGuyCustomPdu.h:195
class DtPduFactory:
Definition: pduFactory.h:38
virtual void printDataToStream(std::ostream &stream) const
DtStateMsg & operator=(const DtStateMsg &orig)
assignment operator
DtNetU8 DtDataSize
Definition: diGuyCustomPdu.h:23
DtNetPduHeader DtHeader
Definition: diGuyCustomPdu.h:19
DtNetU16 DtDIGuyMessageVersion
Definition: diGuyCustomPdu.h:20
struct DtNetDIGuyCustomPdu DtNetDIGuyCustomPdu
The net structure of the DI Guy Custom PDU.
virtual DtPduKind internalGetPduKind() const =0
Returns the PDU kind associated with the derived PDU class.
DtU8 DtNetU8
Unsigned 8-bit value.
Definition: vlNetTypes.h:30
DtPdu is the base class for all PDU's in VR-Link.
Definition: pdu.h:69
DtNetEntityIdentifier DtEntityId
Definition: diGuyCustomPdu.h:22
DtNetU16 DtDIGuyMessageId
Definition: diGuyCustomPdu.h:21
DtDIGuyCustomPduMsgId
Enumeration describing the message ID's of the DiGuy PDU.
Definition: disEnums.h:3191
Definition: netStructs.h:116
Instances of DtEntityIdentifier are used as a unique ID for entities in DIS.
Definition: entityIdentifier.h:31
virtual void printData() const
Print the PDU's data (not including header).
struct DtBufferPlaceHolder * DtBufferPtr
Definition: vlBaseMsg.h:17
#define DtUSE_INTERNAL_BUFFER
Definition: vlBaseMsg.h:22
The net structure of the DI Guy Custom PDU.
Definition: diGuyCustomPdu.h:17
DtPduKind
([UID 4]) - PDU Type
Definition: disEnums.h:238
Instances of DtString are used to represent strings.
Definition: vlString.h:29
Instances of DtStateMsg are used to represent state data communicated via the network in a DIS (as op...
Definition: stateMsgDIS.h:21
DtNetU8 DtData[1]
Definition: diGuyCustomPdu.h:24
void(* DtDIGuyCustomPduCb)(DtDIGuyCustomPdu *pdu, void *usr)
Callback signature used to register for callbacks to DI Guy custom PDU's.
Definition: diGuyCustomPdu.h:32