![]() |
VR-Link API Documentation for DIS
|
Instances of DtIsPartOfPdu are used to join two simulation entities to form a single entity. More...
Inheritance diagram for DtIsPartOfPdu:
Collaboration diagram for DtIsPartOfPdu:Public Member Functions | |
| DtIsPartOfPdu (DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER) | |
| Constructors. | |
| DtIsPartOfPdu (const DtNetIsPartOfPdu *initial, DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER) | |
| DtIsPartOfPdu (const DtIsPartOfPdu &orig) | |
| virtual | ~DtIsPartOfPdu () |
| destructor | |
| DtIsPartOfPdu & | operator= (const DtIsPartOfPdu &orig) |
| Assignment operator. | |
| virtual void | setOriginatingEntityID (const DtEntityIdentifier &entity) |
| Set/Get originating entity identifier. | |
| virtual const DtEntityIdentifier & | originatingEntityID () const |
| virtual void | setReceivingEntityID (const DtEntityIdentifier &entity) |
| Set/Get receiving entity identifier. | |
| virtual const DtEntityIdentifier & | receivingEntityID () const |
| virtual void | setNature (DtNature value) |
| Set/Get nature. | |
| virtual DtNature | nature () const |
| virtual void | setConstituentPartPosition (DtPosition value) |
| Set/Get position. | |
| virtual DtPosition | constituentPartPosition () const |
| virtual void | setPartLocation (const DtVector &coords) |
| Set/Get part location. | |
| virtual const DtVector & | partLocation () const |
| virtual void | setStationName (DtStationName value) |
| Set/Get station name. | |
| virtual DtStationName | stationName () const |
| virtual void | setStationNumber (DtU16 value) |
| Set/Get Station number. | |
| virtual DtU16 | stationNumber () const |
| virtual void | setEntityType (const DtEntityType &type) |
| Set/Get Part Entity Type. | |
| virtual const DtEntityType & | entityType () const |
| virtual void | printData () const |
| Print the data contained by this PDU. | |
| virtual void | printDataToStream (std::ostream &stream) const |
| Print the data to a stream. | |
Public Member Functions inherited from DtInteraction | |
| DtInteraction () | |
| default constructor | |
| virtual | ~DtInteraction () |
| destructor | |
| DtInteraction (const DtInteraction &orig) | |
| copy constructor | |
| DtInteraction & | operator= (const DtInteraction &orig) |
| assignment operator | |
Public Member Functions inherited from DtPdu | |
| virtual | ~DtPdu () |
| Destructor. | |
| DtPdu (const DtPdu &pdu, DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER) | |
| Copy constructor. | |
| DtPdu & | operator= (const DtPdu &pdu) |
| Assignment operator. | |
| virtual void * | packet () const |
| Older function that returns a pointer to the network representation. | |
| virtual int | status () const |
| Get PDU status. | |
| virtual void | setVersion (int vers) |
| Set/Get protocol version from PDU header. | |
| virtual int | protocolVersion () const |
| virtual void | setExerciseId (int id) |
| Set/Get exerciseID in PDU header. | |
| virtual int | exerciseId () const |
| virtual DtPduKind | kind () const |
| Returns PDU kind from PDU header. | |
| virtual DtProtocolFamily | protocolFamily () const |
| Returns protocol family from PDU header. | |
| virtual void | setTimeStamp (DtTime time, DtTimeStampType type=DtTimeStampRelative) |
| Set the PDU header's time stamp to reflect time and type. | |
| virtual DtTime | timeStamp () const |
| Return the time (in seconds past an hour) encoded in the PDU header's time stamp. | |
| virtual DtTimeStampType | timeStampType () const |
| Return the type of the time stamp, as indicated in PDU header. | |
| virtual DtTime | guessTimeValid (DtTime referenceTime) const |
| Since timestamp only represents number of seconds past the hour, guessTimeValid chooses the hour that would make the timestamp closest to reference time, and returns a time that is timestamp seconds past that hour. | |
| virtual DtNetPduHeader * | netHeader () const |
| Returns a pointer to the PDU's header. | |
| virtual void | print () const |
| Print the contents of the PDU by calling printToStream(DtInfo). | |
| virtual void | printToStream (std::ostream &stream) const |
| Print the contents of the PDU by calling printHeaderToStream and printDataToStream. | |
| virtual void | printHeader () const |
| Print the PDU's header. This calls printHeaderToStream(DtInfo). | |
| virtual void | printHeaderToStream (std::ostream &stream) const |
| Print the PDU's header to a stream. | |
| virtual void | printDataToString (DtString &str) const |
Public Member Functions inherited from DtBaseMsg | |
| virtual | ~DtBaseMsg () |
| Destructor. | |
| DtBaseMsg (const DtBaseMsg &msg, DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER) | |
| Copy constructor. | |
| DtBaseMsg & | operator= (const DtBaseMsg &msg) |
| Assignment. | |
| virtual const char * | netRep () const |
| Get network representation. | |
| virtual int | length () const |
| Get size of message. | |
Static Public Member Functions | |
| static DtPdu * | create (const DtNetPacket *initial, DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER) |
| Create a DtIsPartOfPdu. | |
| static void | addCallback (DtExerciseConn *conn, DtIsPartOfPduCb cb, void *usr) |
| Add (register)/Remove (deregister) function to be called when pdu is received. | |
| static void | removeCallback (DtExerciseConn *conn, DtIsPartOfPduCb cb, void *usr) |
Protected Member Functions | |
| virtual DtPduKind | internalGetPduKind () const |
| Returns the internal PDU kind. | |
| virtual DtNetIsPartOfPdu * | netPduStruct () const |
| Casts the netPdu element to our network struct. | |
| DtIsPartOfPdu * | self () const |
| Casts the 'this' pointer for changing elements in a const function. | |
Protected Attributes | |
| DtEntityIdentifier | myEntityID |
| Temporary objects for reference returns. | |
| DtVector | myVector |
| DtEntityType | myEntityType |
Static Protected Attributes | |
| static const int | theStaticSize |
| Size of PDU with zero data bytes. | |
Instances of DtIsPartOfPdu are used to join two simulation entities to form a single entity.
| DtIsPartOfPdu::DtIsPartOfPdu | ( | DtBufferPtr | buffer = DtUSE_INTERNAL_BUFFER | ) |
Constructors.
| DtIsPartOfPdu::DtIsPartOfPdu | ( | const DtNetIsPartOfPdu * | initial, |
| DtBufferPtr | buffer = DtUSE_INTERNAL_BUFFER |
||
| ) |
| DtIsPartOfPdu::DtIsPartOfPdu | ( | const DtIsPartOfPdu & | orig | ) |
|
virtual |
destructor
|
static |
Add (register)/Remove (deregister) function to be called when pdu is received.
|
virtual |
|
static |
Create a DtIsPartOfPdu.
Caller is responsible for deletion.
|
virtual |
|
protectedvirtual |
Returns the internal PDU kind.
Implements DtPdu.
|
virtual |
|
protectedvirtual |
Casts the netPdu element to our network struct.
Non-virtual, since you can't override based on return type.
| DtIsPartOfPdu& DtIsPartOfPdu::operator= | ( | const DtIsPartOfPdu & | orig | ) |
Assignment operator.
|
virtual |
|
virtual |
|
virtual |
Print the data contained by this PDU.
Reimplemented from DtPdu.
|
virtual |
Print the data to a stream.
Reimplemented from DtPdu.
|
virtual |
|
static |
|
protected |
Casts the 'this' pointer for changing elements in a const function.
Non virtual, since you can't override based on return type.
|
virtual |
Set/Get position.
|
virtual |
Set/Get Part Entity Type.
|
virtual |
Set/Get nature.
|
virtual |
Set/Get originating entity identifier.
|
virtual |
Set/Get part location.
|
virtual |
Set/Get receiving entity identifier.
|
virtual |
Set/Get station name.
|
virtual |
Set/Get Station number.
|
virtual |
|
virtual |
|
protected |
Temporary objects for reference returns.
|
protected |
|
protected |
|
staticprotected |
Size of PDU with zero data bytes.