|
VR-Engage
2.2
|
This class encapsulates engagement status information between entities within the TDL network. It defines which entity is engaging which target and the current state of that engagement (e.g., engaged, weapon released).
#include <icVreTdlEngagementStatus.h>
Public Member Functions | |
| IcVreTdlEngagementStatus () | |
| virtual | ~IcVreTdlEngagementStatus () override |
| IcVreTdlEngagementStatus (const IcVreTdlEngagementStatus &orig) | |
| IcVreTdlEngagementStatus & | operator= (const IcVreTdlEngagementStatus &orig) |
| virtual int | type () const override |
| virtual DtSimInterfaceContent * | clone () const override |
| virtual int | netRepSize () const override |
| virtual bool | setFromNet (const char *contentBuffer, unsigned contentSize) override |
| virtual bool | setToNet () override |
| virtual void | printDataToString (DtString &str) override |
| virtual void | setUUID (DtUUID uuid) |
| virtual DtUUID | getUUID () |
| virtual void | setSourceTrackNumber (const DtString &stn) |
| virtual DtString | getSourceTrackNumber () |
| virtual void | setObjectiveTrackNumber (const DtString &tn) |
| virtual DtString | getObjectiveTrackNumber () |
| virtual void | setEngagementStatus (const int status) |
| virtual int | getEngagementStatus () |
Static Public Member Functions | |
| static DtSimInterfaceContent * | creator () |
Protected Attributes | |
| DtUUID | myUUID |
| DtString | mySourceTrackNumber |
| DtString | myObjectiveTrackNumber |
| int | myEngagementStatus |
| ctiTdl::IcVreTdlEngagementStatus::IcVreTdlEngagementStatus | ( | ) |
Default constructor.
Initializes an empty engagement status message.
Referenced by IcVreTdlEngagementStatus(), and operator=().
|
overridevirtual |
Virtual destructor.
Cleans up all resources associated with the engagement status.
| ctiTdl::IcVreTdlEngagementStatus::IcVreTdlEngagementStatus | ( | const IcVreTdlEngagementStatus & | orig | ) |
Copy constructor.
| orig | The engagement status to copy from |
Creates a new engagement status by copying an existing one.
References IcVreTdlEngagementStatus().
| IcVreTdlEngagementStatus & ctiTdl::IcVreTdlEngagementStatus::operator= | ( | const IcVreTdlEngagementStatus & | orig | ) |
Assignment operator.
| orig | The engagement status to copy from |
Copies the contents of another engagement status into this one.
References IcVreTdlEngagementStatus().
|
overridevirtual |
Gets the interface message type.
Returns IcVreTdlEngagementStatusType.
|
overridevirtual |
Creates a copy of this message.
Creates a dynamically allocated copy of this message.
|
static |
Static creator function for factory registration.
This static function is used for registration with DtInterfaceContentFactory.
|
overridevirtual |
Gets the network representation size.
Returns the size of the full network representation padded to an 8-byte boundary.
|
overridevirtual |
Deserializes the message from a network buffer.
| contentBuffer | Pointer to the network buffer |
| contentSize | Size of the buffer in bytes |
Fills the engagement status from the provided network buffer.
|
overridevirtual |
Serializes the message for network transmission.
Prepares the engagement status for network transmission.
|
overridevirtual |
Formats the message data as a string.
| str | String to store the formatted message data |
Appends a human-readable representation of the engagement status to the provided string.
|
virtual |
Sets the UUID for this engagement status.
| uuid | The UUID to set |
|
virtual |
Gets the UUID of this engagement status.
|
virtual |
Sets the source track number.
| stn | The source track number to set |
Sets the track number (STN) of the engaging platform.
|
virtual |
Gets the source track number.
|
virtual |
Sets the objective track number.
| tn | The objective track number to set |
Sets the track number (TN) of the objective/target platform.
|
virtual |
Gets the objective track number.
|
virtual |
Sets the engagement status.
| status | The engagement status code to set |
Sets the engagement status code as defined in ctiTdl::StatusType.
|
virtual |
Gets the engagement status.
Returns the engagement status code as defined in ctiTdl::StatusType.
|
protected |
UUID of this engagement status for unique identification.
|
protected |
Source track number (STN) of the engaging platform.
|
protected |
Track number (TN) of the objective/target platform.
|
protected |
Current engagement status code See ctiTdl::StatusType in VreTdlTrackTypes.h for possible values.