![]() |
VR-Link API Documentation for DIS
|
Instances of DtLeDetonationPdu are used to send firing information for live entities. More...
Inheritance diagram for DtLeDetonationPdu:
Collaboration diagram for DtLeDetonationPdu:Public Member Functions | |
| DtLeDetonationPdu (DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER) | |
| Constructors. | |
| DtLeDetonationPdu (const DtNetLeDetonationPdu *initial, DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER) | |
| DtLeDetonationPdu (const DtLeDetonationPdu &orig) | |
| virtual | ~DtLeDetonationPdu () |
| destructor | |
| DtLeDetonationPdu & | operator= (const DtLeDetonationPdu &orig) |
| Assignment operator. | |
| virtual void | setSubProtocol (DtSubProtocol value) |
| Set/Get the sub-protocol number. | |
| virtual DtSubProtocol | subProtocol () const |
| virtual void | setFiringEntityID (const DtLeEntityID &id) |
| Set/Get firing entity ID. | |
| virtual const DtLeEntityID & | firingEntityID () const |
| virtual DtU8 | detonFlagsField () const |
| Get flags field 1 (this field is automatically maintained by the PDU as other PDU fields are set). | |
| virtual bool | getDeton2FlagsField (DtU8 &field) const |
| Get flags field 2 (this field is automatically maintained by the PDU as other PDU fields are set). | |
| virtual bool | detonFlag (DtLE_DetonFieldFlag flag) const |
| Get the value for a specific flag from the first flags field. | |
| virtual bool | getDeton2Flag (DtLE_DetonField2Flag flag, bool &value) const |
| Get the value for a specific flag from the second flags field. | |
| virtual void | setTargetEntityID (const DtLeEntityID &id) |
| Some of following accessor functions refer to records which are optional. | |
| virtual bool | getTargetEntityID (DtLeEntityID &id) const |
| virtual void | setMunitionID_Site (DtU8 value) |
| Set/Get munition ID site (optional). | |
| virtual bool | getMunitionID_Site (DtU8 &value) const |
| virtual void | setMunitionID_Application (DtU8 value) |
| Set/Get munition ID application (optional). | |
| virtual bool | getMunitionID_Application (DtU8 &value) const |
| virtual void | setMunitionID_Entity (DtU16 value) |
| Set/Get munition ID entity (optional) | |
| virtual bool | getMunitionID_Entity (DtU16 &value) const |
| virtual void | setEventID_Site (DtU8 value) |
| Set/Get event ID site (optional). | |
| virtual bool | getEventID_Site (DtU8 &value) const |
| virtual void | setEventID_Application (DtU8 value) |
| Set/Get event ID application (optional). | |
| virtual bool | getEventID_Application (DtU8 &value) const |
| virtual void | setEventID_Event (DtU16 value) |
| Set/Get event ID event. | |
| virtual bool | getEventID_Event (DtU16 &value) const |
| virtual void | setLocationWorld (const DtLeEntityLocationWorldCoordinates &value) |
| Set/Get entity location (world coordinates). | |
| virtual bool | getLocationWorld (DtLeEntityLocationWorldCoordinates &value) const |
| virtual void | setLocationEntity (const DtLeEntityLocationEntityCoordinates &value) |
| Set/Get entity location (entity coordinates). | |
| virtual bool | getLocationEntity (DtLeEntityLocationEntityCoordinates &value) const |
| virtual void | setVelocity (const DtLeEntityLinearVelocity &value) |
| Set/Get entity linear velocity. | |
| virtual const DtLeEntityLinearVelocity & | velocity () const |
| virtual void | setOrientation (const DtLeEntityOrientation &value) |
| Set/Get entity orientation. | |
| virtual bool | getOrientation (DtLeEntityOrientation &value) const |
| virtual void | setBurstMunitionType (DtEntityType &type) |
| Set/Get burst munition type. | |
| virtual const DtEntityType & | burstMunitionType () const |
| virtual void | setBurstWarhead (DtU16 value) |
| Set/Get burst warhead (optional). | |
| virtual bool | getBurstWarhead (DtU16 &value) const |
| virtual void | setBurstFuse (DtU16 value) |
| Set/Get burst fuse (optional). | |
| virtual bool | getBurstFuse (DtU16 &value) const |
| virtual void | setBurstQuantity (DtU16 value) |
| Set/Get burst quantity (optional). | |
| virtual bool | getBurstQuantity (DtU16 &value) const |
| virtual void | setBurstRate (DtU16 value) |
| Set/Get burst rate (optional). | |
| virtual bool | getBurstRate (DtU16 &value) const |
| virtual void | setDetonationResult (DtU8 value) |
| Set/Get detonation result. | |
| virtual DtU8 | detonationResult () 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. | |
| virtual void | printHeader () const |
| Print the header (override to include the new sub-protocol field). | |
| virtual void | printHeaderToStream (std::ostream &stream) const |
| Print the header 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 | 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 DtLeDetonationPdu. | |
| static void | addCallback (DtExerciseConn *conn, DtLeDetonationPduCb cb, void *usr) |
| Add (register)/Remove (deregister) function to be called when pdu is received. | |
| static void | removeCallback (DtExerciseConn *conn, DtLeDetonationPduCb cb, void *usr) |
Protected Member Functions | |
| virtual DtPduKind | internalGetPduKind () const |
| Returns the internal PDU kind. | |
| virtual DtNetLeDetonationPdu * | netPduStruct () const |
| Casts the netPdu element to our network struct. | |
| DtLeDetonationPdu * | self () const |
| Casts the 'this' pointer for changing elements in a const function. | |
| virtual char * | var () const |
| Returns a pointer to the first byte of variable length data. | |
| virtual void | setDetonFlagsField (DtU8 value) |
| Set first detonation flags field. | |
| virtual void | setDeton2FlagsField (DtU8 value) |
| Set second detonation flags field. | |
| virtual void | setDetonFlag (DtLE_DetonFieldFlag flag) |
| Set first detonation flag. | |
| virtual void | setDeton2Flag (DtLE_DetonField2Flag flag) |
| Set second detonation flag. | |
| virtual int | detonFlagFieldOffset () const |
| Returns the offset (in bytes) of a field within the variable data region. | |
| virtual int | deton2FlagFieldOffset () const |
| virtual int | targetEntityID_Offset () const |
| virtual int | munitionID_Offset1 () const |
| virtual int | munitionID_Offset2 () const |
| virtual int | eventID_Offset1 () const |
| virtual int | eventID_Offset2 () const |
| virtual int | locationWorldOffset () const |
| virtual int | velocityOffset () const |
| virtual int | munitionOrientationOffset () const |
| virtual int | burstOffset1 () const |
| virtual int | burstOffset2 () const |
| virtual int | burstOffset3 () const |
| virtual int | locationEntityOffset () const |
| virtual int | resultOffset () const |
Protected Attributes | |
| DtLeEntityID | myEntityID |
| Temporary objects for reference returns. | |
| DtLeEntityLinearVelocity | myVelocity |
| DtEntityType | myEntityType |
Static Protected Attributes | |
| static const int | theStaticSize |
| Size of PDU with zero parameter records. | |
Instances of DtLeDetonationPdu are used to send firing information for live entities.
| DtLeDetonationPdu::DtLeDetonationPdu | ( | DtBufferPtr | buffer = DtUSE_INTERNAL_BUFFER | ) |
Constructors.
| DtLeDetonationPdu::DtLeDetonationPdu | ( | const DtNetLeDetonationPdu * | initial, |
| DtBufferPtr | buffer = DtUSE_INTERNAL_BUFFER |
||
| ) |
| DtLeDetonationPdu::DtLeDetonationPdu | ( | const DtLeDetonationPdu & | orig | ) |
|
virtual |
destructor
|
static |
Add (register)/Remove (deregister) function to be called when pdu is received.
|
virtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
static |
Create a DtLeDetonationPdu.
Caller is responsible for deletion.
|
protectedvirtual |
|
virtual |
|
virtual |
Get the value for a specific flag from the first flags field.
|
protectedvirtual |
Returns the offset (in bytes) of a field within the variable data region.
Some fields have subfields which are optional, so some fields have multiple functions associated with them.
|
virtual |
Get flags field 1 (this field is automatically maintained by the PDU as other PDU fields are set).
|
protectedvirtual |
|
protectedvirtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Get the value for a specific flag from the second flags field.
Returns false if the field is not present in the PDU.
|
virtual |
Get flags field 2 (this field is automatically maintained by the PDU as other PDU fields are set).
Returns false if this field is not present.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
protectedvirtual |
Returns the internal PDU kind.
Implements DtPdu.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Casts the netPdu element to our network struct.
| DtLeDetonationPdu& DtLeDetonationPdu::operator= | ( | const DtLeDetonationPdu & | orig | ) |
Assignment operator.
|
virtual |
Print the data contained by this PDU.
Reimplemented from DtPdu.
|
virtual |
Print the data to a stream.
Reimplemented from DtPdu.
|
virtual |
Print the header (override to include the new sub-protocol field).
Reimplemented from DtPdu.
|
virtual |
Print the header to a stream.
Reimplemented from DtPdu.
|
static |
|
protectedvirtual |
|
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 burst fuse (optional).
|
virtual |
Set/Get burst munition type.
|
virtual |
Set/Get burst quantity (optional).
|
virtual |
Set/Get burst rate (optional).
|
virtual |
Set/Get burst warhead (optional).
|
protectedvirtual |
Set second detonation flag.
|
protectedvirtual |
Set second detonation flags field.
|
virtual |
Set/Get detonation result.
|
protectedvirtual |
Set first detonation flag.
|
protectedvirtual |
Set first detonation flags field.
|
virtual |
Set/Get event ID application (optional).
|
virtual |
Set/Get event ID event.
|
virtual |
Set/Get event ID site (optional).
|
virtual |
Set/Get firing entity ID.
|
virtual |
Set/Get entity location (entity coordinates).
In this PDU, entity location is stored in world coordinates or entity coordinates but not both. Get returns false if the coordinates are stored in world coordinates.
|
virtual |
Set/Get entity location (world coordinates).
In this PDU, entity location is stored in world coordinates or entity coordinates but not both. Get returns false if the coordinates are stored in entity coordinates.
|
virtual |
Set/Get munition ID application (optional).
|
virtual |
Set/Get munition ID entity (optional)
|
virtual |
Set/Get munition ID site (optional).
|
virtual |
Set/Get entity orientation.
|
virtual |
Set/Get the sub-protocol number.
|
virtual |
Some of following accessor functions refer to records which are optional.
The set methods create the record in the PDU if it does not already exist. The get methods return false if the record does not exist. Set/Get target entity ID (optional).
|
virtual |
Set/Get entity linear velocity.
|
virtual |
|
protectedvirtual |
|
protectedvirtual |
Returns a pointer to the first byte of variable length data.
|
virtual |
|
protectedvirtual |
|
protected |
Temporary objects for reference returns.
|
protected |
|
protected |
|
staticprotected |
Size of PDU with zero parameter records.