![]() |
VR-Link API Documentation for DIS
|
Inheritance diagram for DtServiceRequestPdu:
Collaboration diagram for DtServiceRequestPdu:Public Types | |
| enum | { PduStaticSize = 28 } |
Public Member Functions | |
| DtServiceRequestPdu (DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER) | |
| DtServiceRequestPdu (const DtNetServiceRequestPdu *initial, DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER) | |
| DtServiceRequestPdu (const DtEntityIdentifier &requester, const DtEntityIdentifier &servicer, DtServiceType serviceType=DtServiceTypeRepair, DtBufferPtr another=DtUSE_INTERNAL_BUFFER) | |
| DtServiceRequestPdu (const DtEntityIdentifier &requester, const DtEntityIdentifier &servicer, const DtEntityType &supply, float quantity, DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER) | |
| const DtEntityIdentifier & | requestingId () const |
| void | setRequestingId (const DtEntityIdentifier &requester) |
| const DtEntityIdentifier & | servicingId () const |
| void | setServicingId (const DtEntityIdentifier &servicer) |
| DtServiceType | serviceType () const |
| void | setServiceType (DtServiceType service) |
| int | numSupplyTypes () const |
| void | setNumSupplyTypes (int numTypes) |
| const DtEntityType & | nthSupply (int supplyIndex, float *quantity=NULL, int *retCode=NULL) const |
| void | setNthSupply (int supplyIndex, const DtEntityType &supply, float quantity, int *retCode=NULL) |
| float | supplyQuantity (const DtEntityType &supply) const |
| virtual void | printData () const |
| Print the PDU's data (not including header). | |
| virtual void | printDataToStream (std::ostream &stream) const |
Static Public Member Functions | |
| static DtPdu * | create (const DtNetPacket *initial, DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER) |
| static void | addCallback (DtExerciseConn *conn, DtServiceRequestPduCb cb, void *usr) |
| static void | removeCallback (DtExerciseConn *conn, DtServiceRequestPduCb cb, void *usr) |
Protected Member Functions | |
| DtPduKind | internalGetPduKind () const |
| Returns the PDU kind associated with the derived PDU class. | |
| int | indexInBounds (int ind) const |
Protected Attributes | |
| DtEntityIdentifier | reqId |
| DtEntityIdentifier | servId |
| DtEntityType | supType |
| DtServiceRequestPdu::DtServiceRequestPdu | ( | const DtNetServiceRequestPdu * | initial, |
| DtBufferPtr | buffer = DtUSE_INTERNAL_BUFFER |
||
| ) |
| DtServiceRequestPdu::DtServiceRequestPdu | ( | const DtEntityIdentifier & | requester, |
| const DtEntityIdentifier & | servicer, | ||
| DtServiceType | serviceType = DtServiceTypeRepair, |
||
| DtBufferPtr | another = DtUSE_INTERNAL_BUFFER |
||
| ) |
| DtServiceRequestPdu::DtServiceRequestPdu | ( | const DtEntityIdentifier & | requester, |
| const DtEntityIdentifier & | servicer, | ||
| const DtEntityType & | supply, | ||
| float | quantity, | ||
| DtBufferPtr | buffer = DtUSE_INTERNAL_BUFFER |
||
| ) |
| static void DtServiceRequestPdu::addCallback | ( | DtExerciseConn * | conn, |
| DtServiceRequestPduCb | cb, | ||
| void * | usr | ||
| ) | [static] |
| static DtPdu* DtServiceRequestPdu::create | ( | const DtNetPacket * | initial, |
| DtBufferPtr | buffer = DtUSE_INTERNAL_BUFFER |
||
| ) | [static] |
| int DtServiceRequestPdu::indexInBounds | ( | int | ind | ) | const [protected] |
| DtPduKind DtServiceRequestPdu::internalGetPduKind | ( | ) | const [inline, protected, virtual] |
Returns the PDU kind associated with the derived PDU class.
Implements DtPdu.
References DtServiceRequestPduKind.
| const DtEntityType& DtServiceRequestPdu::nthSupply | ( | int | supplyIndex, |
| float * | quantity = NULL, |
||
| int * | retCode = NULL |
||
| ) | const |
| int DtServiceRequestPdu::numSupplyTypes | ( | ) | const |
| virtual void DtServiceRequestPdu::printData | ( | ) | const [virtual] |
Print the PDU's data (not including header).
Base DtPdu version just prints hex. Use the printDataToString to put the data into a DtString instead of simply sending the output to stdout. printData() calls printDataToStream(DtInfo).
Reimplemented from DtPdu.
| virtual void DtServiceRequestPdu::printDataToStream | ( | std::ostream & | stream | ) | const [virtual] |
Reimplemented from DtPdu.
| static void DtServiceRequestPdu::removeCallback | ( | DtExerciseConn * | conn, |
| DtServiceRequestPduCb | cb, | ||
| void * | usr | ||
| ) | [static] |
| const DtEntityIdentifier& DtServiceRequestPdu::requestingId | ( | ) | const |
| const DtEntityIdentifier& DtServiceRequestPdu::servicingId | ( | ) | const |
| void DtServiceRequestPdu::setNthSupply | ( | int | supplyIndex, |
| const DtEntityType & | supply, | ||
| float | quantity, | ||
| int * | retCode = NULL |
||
| ) |
| void DtServiceRequestPdu::setNumSupplyTypes | ( | int | numTypes | ) |
| void DtServiceRequestPdu::setRequestingId | ( | const DtEntityIdentifier & | requester | ) |
| void DtServiceRequestPdu::setServiceType | ( | DtServiceType | service | ) |
| void DtServiceRequestPdu::setServicingId | ( | const DtEntityIdentifier & | servicer | ) |
| float DtServiceRequestPdu::supplyQuantity | ( | const DtEntityType & | supply | ) | const |
DtEntityIdentifier DtServiceRequestPdu::reqId [protected] |
DtEntityIdentifier DtServiceRequestPdu::servId [protected] |
DtEntityType DtServiceRequestPdu::supType [protected] |