87 virtual void setA(
int val);
88 virtual int a()
const;
93 virtual void setB(
int index,
int val);
94 virtual int b(
int index)
const;
97 virtual void setC(
float val);
98 virtual float c()
const;
virtual void setA(int val)
Inspector and mutator functions for the PDU class' data.
Instances of DtExerciseConn are used to provide an application's interface or connection to the netwo...
Definition: exerciseConnDIS.h:62
DtNetPduHeader header
Definition: testPdu.h:27
virtual ~TestPdu()
Destructor - Not required by VR-Link, but should clearly be written if this class has any dynamic dat...
TestPdu & operator=(const TestPdu &orig)
Assignment operator.
static void removeCallback(DtExerciseConn *conn, TestPduCb cb, void *usr)
The TestPdu class will represent a hypothetical variable-length "Test PDU".
Definition: testPdu.h:25
class DtPduFactory:
Definition: pduFactory.h:38
struct NetTestPdu NetTestPdu
The TestPdu class will represent a hypothetical variable-length "Test PDU".
virtual void setB(int index, int val)
Set/Get the index'th element of the "b" array.
static DtPdu * create(const DtNetPacket *initial, DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER, DtPduFactory *pduFactory=0)
Create and return a new TestPdu.
static void addCallback(DtExerciseConn *conn, TestPduCb cb, void *usr)
Wrappers around DtExerciseConn's add/removeCallback functions.
virtual void setC(float val)
Set/Get the value of c.
Define the TestPdu class.
Definition: testPdu.h:46
DtPdu is the base class for all PDU's in VR-Link.
Definition: pdu.h:69
TestPdu(DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER)
Blank constructor - constructs a blank TestPdu ready to be filled out and sent by application code...
const DtPduKind TestPduKind
Extend the DtPduKind enumeration, adding our chosen value.
Definition: testPdu.h:35
struct DtBufferPlaceHolder * DtBufferPtr
Definition: vlBaseMsg.h:17
#define DtUSE_INTERNAL_BUFFER
Definition: vlBaseMsg.h:22
void(* TestPduCb)(TestPdu *pdu, void *usr)
Definition: testPdu.h:42
virtual NetTestPdu * netTestPdu()
Returns a pointer to the PDU's network representation by casting the value returned by the base class...
DtPduKind
([UID 4]) - PDU Type
Definition: disEnums.h:238
virtual int b(int index) const
virtual void printDataToStream(std::ostream &stream) const
Virtual function override.
Network-order signed 32-bit quantity.
Definition: vlNetTypes.h:124
virtual DtPduKind internalGetPduKind() const
Virtual function override.
DtNetInt32 a
Definition: testPdu.h:28
DtNetInt32 b[1]
Definition: testPdu.h:29