![]() |
VR-Link API Documentation for DIS
|
Instances of DtLeFirePdu are used to send firing information for live entities. More...
Inheritance diagram for DtLeFirePdu:
Collaboration diagram for DtLeFirePdu:Public Member Functions | |
| DtLeFirePdu (DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER) | |
| Constructors. | |
| DtLeFirePdu (const DtNetLeFirePdu *initial, DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER) | |
| DtLeFirePdu (const DtLeFirePdu &orig) | |
| virtual | ~DtLeFirePdu () |
| destructor | |
| DtLeFirePdu & | operator= (const DtLeFirePdu &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 | fireFlagsField () const |
| Get flags field (this field is automatically maintained by the PDU as other PDU fields are set). | |
| virtual bool | fireFlag (DtLE_FireFieldFlag flag) const |
| Get the value for a specific flag from the flags field. | |
| virtual void | setTargetEntityID (const DtLeEntityID &id) |
| Some of the 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 DtU16 | eventID_Event () const |
| virtual void | setLocation (const DtLeEntityLocationWorldCoordinates &value) |
| Set/Get entity location (optional). | |
| virtual bool | getLocation (DtLeEntityLocationWorldCoordinates &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 | setVelocity (const DtLeEntityLinearVelocity &value) |
| Set/Get entity linear velocity. | |
| virtual const DtLeEntityLinearVelocity & | velocity () const |
| virtual void | setRange (DtU16 value) |
| Set/Get range. | |
| virtual DtU16 | range () 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 DtLeFirePdu. | |
| static void | addCallback (DtExerciseConn *conn, DtLeFirePduCb cb, void *usr) |
| Add (register)/Remove (deregister) function to be called when pdu is received. | |
| static void | removeCallback (DtExerciseConn *conn, DtLeFirePduCb cb, void *usr) |
Protected Member Functions | |
| virtual DtPduKind | internalGetPduKind () const |
| Returns the internal PDU kind. | |
| virtual DtNetLeFirePdu * | netPduStruct () const |
| Casts the netPdu element to our network struct. | |
| DtLeFirePdu * | 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 | setFireFlagsField (DtU8 value) |
| Set Fire Flags. | |
| virtual void | setFireFlag (DtLE_FireFieldFlag flag) |
| Set a flag of the flag field. | |
| virtual void | clearFireFlags (DtLE_FireFieldFlag flag) |
| Clear the flag and all following flags in the fire flags field. | |
| virtual int | fireFlagFieldOffset () const |
| Returns the offset (in bytes) of a field within the variable data region. | |
| 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 | locationOffset () const |
| virtual int | burstOffset1 () const |
| virtual int | burstOffset2 () const |
| virtual int | burstOffset3 () const |
| virtual int | velocityOffset () const |
| virtual int | rangeOffset () 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 DtLeFirePdu are used to send firing information for live entities.
| DtLeFirePdu::DtLeFirePdu | ( | DtBufferPtr | buffer = DtUSE_INTERNAL_BUFFER | ) |
Constructors.
| DtLeFirePdu::DtLeFirePdu | ( | const DtNetLeFirePdu * | initial, |
| DtBufferPtr | buffer = DtUSE_INTERNAL_BUFFER |
||
| ) |
| DtLeFirePdu::DtLeFirePdu | ( | const DtLeFirePdu & | orig | ) |
|
virtual |
destructor
|
static |
Add (register)/Remove (deregister) function to be called when pdu is received.
|
virtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Clear the flag and all following flags in the fire flags field.
|
static |
Create a DtLeFirePdu.
Caller is responsible for deletion.
|
virtual |
|
protectedvirtual |
|
protectedvirtual |
|
virtual |
Get the value for a specific flag from the 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 (this field is automatically maintained by the PDU as other PDU fields are set).
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
protectedvirtual |
Returns the internal PDU kind.
Implements DtPdu.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Casts the netPdu element to our network struct.
| DtLeFirePdu& DtLeFirePdu::operator= | ( | const DtLeFirePdu & | 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.
|
virtual |
|
protectedvirtual |
|
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 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).
|
virtual |
Set/Get event ID application (optional).
|
virtual |
Set/Get event ID event.
|
virtual |
Set/Get event ID site (optional).
|
protectedvirtual |
Set a flag of the flag field.
|
protectedvirtual |
Set Fire Flags.
|
virtual |
Set/Get firing entity ID.
|
virtual |
Set/Get entity location (optional).
|
virtual |
Set/Get munition ID application (optional).
|
virtual |
Set/Get munition ID entity (optional).
|
virtual |
Set/Get munition ID site (optional).
|
virtual |
Set/Get range.
|
virtual |
Set/Get the sub-protocol number.
|
virtual |
Some of the 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.