![]() |
VR-Link API Documentation for DIS
|
Instances of DtEventReptPdu are used to send/receive event report PDUs. More...
Inheritance diagram for DtEventReportPdu:
Collaboration diagram for DtEventReportPdu:Public Types | |
| enum | { PduStaticSize = 40 } |
Public Member Functions | |
| DtEventReportPdu (DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER) | |
| Constructors. | |
| DtEventReportPdu (const DtNetEventReportPdu *initial, DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER) | |
| virtual | ~DtEventReportPdu () |
| Destructor. | |
| virtual DtEventType | eventType () const |
| Set/Get event type. | |
| virtual void | setEventType (DtEventType type) |
| virtual void | printData () const |
| Print the data contained by this PDU. | |
| virtual void | printDataToStream (std::ostream &stream) const |
| Print the data to a stream. | |
Static Public Member Functions | |
| static DtPdu * | create (const DtNetPacket *initial, DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER) |
| Create a DtEventReptPdu. | |
| static void | addCallback (DtExerciseConn *conn, DtEventReportPduCb cb, void *usr) |
| Add (register)/Remove (deregister) function to be called when pdu is received. | |
| static void | removeCallback (DtExerciseConn *conn, DtEventReportPduCb cb, void *usr) |
Protected Member Functions | |
| DtPduKind | internalGetPduKind () const |
| Returns the internal PDU kind. | |
| DtNetDataPduTail * | dataSection () const |
| Returns the data portion of the net structure. | |
Instances of DtEventReptPdu are used to send/receive event report PDUs.
Constructors.
| DtEventReportPdu::DtEventReportPdu | ( | const DtNetEventReportPdu * | initial, |
| DtBufferPtr | buffer = DtUSE_INTERNAL_BUFFER |
||
| ) |
| virtual DtEventReportPdu::~DtEventReportPdu | ( | ) | [inline, virtual] |
Destructor.
| static void DtEventReportPdu::addCallback | ( | DtExerciseConn * | conn, |
| DtEventReportPduCb | cb, | ||
| void * | usr | ||
| ) | [static] |
Add (register)/Remove (deregister) function to be called when pdu is received.
| static DtPdu* DtEventReportPdu::create | ( | const DtNetPacket * | initial, |
| DtBufferPtr | buffer = DtUSE_INTERNAL_BUFFER |
||
| ) | [static] |
Create a DtEventReptPdu.
Caller is responsible for deletion.
| DtNetDataPduTail* DtEventReportPdu::dataSection | ( | ) | const [protected, virtual] |
Returns the data portion of the net structure.
Implements DtPduWithData.
| virtual DtEventType DtEventReportPdu::eventType | ( | ) | const [virtual] |
Set/Get event type.
| DtPduKind DtEventReportPdu::internalGetPduKind | ( | ) | const [inline, protected, virtual] |
| virtual void DtEventReportPdu::printData | ( | ) | const [virtual] |
Print the data contained by this PDU.
Reimplemented from DtPduWithData.
| virtual void DtEventReportPdu::printDataToStream | ( | std::ostream & | stream | ) | const [virtual] |
Print the data to a stream.
Reimplemented from DtPduWithData.
| static void DtEventReportPdu::removeCallback | ( | DtExerciseConn * | conn, |
| DtEventReportPduCb | cb, | ||
| void * | usr | ||
| ) | [static] |
| virtual void DtEventReportPdu::setEventType | ( | DtEventType | type | ) | [virtual] |