17 typedef struct DtNetDIGuyCustomPdu
25 } DtNetDIGuyCustomPdu;
28 class DtDIGuyCustomPdu;
32 typedef void (*DtDIGuyCustomPduCb)(DtDIGuyCustomPdu* pdu,
void* usr);
41 enum { PduStaticSize = 23 };
49 DtDIGuyCustomPdu(
const DtNetDIGuyCustomPdu* initial,
53 virtual ~DtDIGuyCustomPdu();
56 DtDIGuyCustomPdu(
const DtDIGuyCustomPdu& other);
59 DtDIGuyCustomPdu&
operator=(
const DtDIGuyCustomPdu& other);
63 virtual DtNetDIGuyCustomPdu* netDIGuyCustomPdu();
64 virtual const DtNetDIGuyCustomPdu* netDIGuyCustomPdu()
const;
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);
155 virtual void printData()
const;
158 virtual void printDataToStream(std::ostream& stream)
const;
167 static void addCallback(
DtExerciseConn* conn, DtDIGuyCustomPduCb cb,
171 static void removeCallback(
DtExerciseConn* conn, DtDIGuyCustomPduCb cb,
176 static void addCallback(
DtExerciseConn* conn, DtDIGuyCustomPduCb cb,
181 static void removeCallback(
DtExerciseConn* conn, DtDIGuyCustomPduCb cb,
188 static void setCustomPduKind(
DtPduKind pduKind);
192 virtual DtPduKind internalGetPduKind()
const;
Contains the DtEntityIdentifier class declaration.
Instances of DtExerciseConn are used to provide an application's interface or connection to the netwo...
Definition: exerciseConnHLA.h:61
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
Network-order unsigned 16-bit quantity.
Definition: vlNetTypes.h:52
DtStateMsg & operator=(const DtStateMsg &orig)
assignment operator
DtU8 DtNetU8
Unsigned 8-bit value.
Definition: vlNetTypes.h:31
DtPdu is the base class for all PDU's in VR-Link.
Definition: pdu.h:69
DtDIGuyCustomPduMsgId
Enumeration describing the message ID's of the DiGuy PDU.
Definition: disEnums.h:3287
Definition: netStructs.h:116
Instances of DtEntityIdentifier are used as a unique ID for entities in DIS.
Definition: entityIdentifier.h:31
struct DtBufferPlaceHolder * DtBufferPtr
Definition: vlBaseMsg.h:17
#define DtUSE_INTERNAL_BUFFER
Definition: vlBaseMsg.h:22
DtPduKind
([UID 4]) - PDU Type
Definition: disEnums.h:238
Instances of DtString are used to represent strings.
Definition: vlString.h:29
class DtStateMsg:
Definition: stateMsgHLA.h:32