![]() |
VR-Link API Documentation for DIS
|
Instances of DtStartResumePdu are used to send/receive start/resume PDUs. More...
Inheritance diagram for DtStartResumePdu:
Collaboration diagram for DtStartResumePdu:Public Types | |
| enum | { PduStaticSize = 44 } |
Public Member Functions | |
| DtStartResumePdu (DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER) | |
| Constructors. | |
| DtStartResumePdu (const DtNetStartResumePdu *initial, DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER) | |
| DtStartResumePdu (const DtEntityIdentifier &to, const DtEntityIdentifier &from, const DtTime realTime, const DtTime simTime, DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER) | |
| DtTime | realWorldTime () const |
| Set/Get real world time. | |
| void | setRealWorldTime (const DtTime time) |
| DtTimeStampType | realWorldTimeType () const |
| Set/Get real world time type (represented by last bit of RealWorldTime). | |
| void | setRealWorldTimeType (const DtTimeStampType type) |
| DtTime | simulationTime () const |
| Set/Get simulation time. | |
| void | setSimulationTime (const DtTime time) |
| DtTimeStampType | simulationTimeType () const |
| Set/Get simulation time type (represented by last bit of SimulationTime). | |
| void | setSimulationTimeType (const DtTimeStampType type) |
| int | requestId () const |
| Set/Get the request id. | |
| void | setRequestId (int id) |
| 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 DtStartResumePdu. | |
| static void | addCallback (DtExerciseConn *conn, DtStartResumePduCb cb, void *usr) |
| Add (register)/Remove (deregister) function to be called when pdu is received. | |
| static void | removeCallback (DtExerciseConn *conn, DtStartResumePduCb cb, void *usr) |
Protected Member Functions | |
| DtPduKind | internalGetPduKind () const |
| Returns the internal PDU kind. | |
Instances of DtStartResumePdu are used to send/receive start/resume PDUs.
Constructors.
| DtStartResumePdu::DtStartResumePdu | ( | const DtNetStartResumePdu * | initial, |
| DtBufferPtr | buffer = DtUSE_INTERNAL_BUFFER |
||
| ) |
| DtStartResumePdu::DtStartResumePdu | ( | const DtEntityIdentifier & | to, |
| const DtEntityIdentifier & | from, | ||
| const DtTime | realTime, | ||
| const DtTime | simTime, | ||
| DtBufferPtr | buffer = DtUSE_INTERNAL_BUFFER |
||
| ) |
| static void DtStartResumePdu::addCallback | ( | DtExerciseConn * | conn, |
| DtStartResumePduCb | cb, | ||
| void * | usr | ||
| ) | [static] |
Add (register)/Remove (deregister) function to be called when pdu is received.
| static DtPdu* DtStartResumePdu::create | ( | const DtNetPacket * | initial, |
| DtBufferPtr | buffer = DtUSE_INTERNAL_BUFFER |
||
| ) | [static] |
Create a DtStartResumePdu.
Caller is responsible for deletion.
| DtPduKind DtStartResumePdu::internalGetPduKind | ( | ) | const [inline, protected, virtual] |
| virtual void DtStartResumePdu::printData | ( | ) | const [virtual] |
Print the data contained by this PDU.
Reimplemented from DtSimanPdu.
| virtual void DtStartResumePdu::printDataToStream | ( | std::ostream & | stream | ) | const [virtual] |
Print the data to a stream.
Reimplemented from DtSimanPdu.
| DtTime DtStartResumePdu::realWorldTime | ( | ) | const |
Set/Get real world time.
Set/Get real world time type (represented by last bit of RealWorldTime).
| static void DtStartResumePdu::removeCallback | ( | DtExerciseConn * | conn, |
| DtStartResumePduCb | cb, | ||
| void * | usr | ||
| ) | [static] |
| int DtStartResumePdu::requestId | ( | ) | const |
Set/Get the request id.
| void DtStartResumePdu::setRealWorldTime | ( | const DtTime | time | ) |
| void DtStartResumePdu::setRealWorldTimeType | ( | const DtTimeStampType | type | ) |
| void DtStartResumePdu::setRequestId | ( | int | id | ) |
| void DtStartResumePdu::setSimulationTime | ( | const DtTime | time | ) |
| void DtStartResumePdu::setSimulationTimeType | ( | const DtTimeStampType | type | ) |
| DtTime DtStartResumePdu::simulationTime | ( | ) | const |
Set/Get simulation time.
Set/Get simulation time type (represented by last bit of SimulationTime).