|
VR-Engage
2.2
|
This class provides a mechanism for transmitting Tactical Data Link track information between simulation components. It encapsulates track contents and provides methods for network serialization and deserialization.
#include <icVreTdlTrack.h>
Public Member Functions | |
| IcVreTdlTrack () | |
| virtual | ~IcVreTdlTrack () override |
| IcVreTdlTrack (const IcVreTdlTrack &orig) | |
| IcVreTdlTrack & | operator= (const IcVreTdlTrack &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 | setTrack (const IcVreTdlTrackContents &track) |
| virtual IcVreTdlTrackContents | getTrack () |
Static Public Member Functions | |
| static DtSimInterfaceContent * | creator () |
Protected Attributes | |
| DtUUID | myUUID |
| DtString | sourceTrackNumber |
| IcVreTdlTrackContents | trackContents |
| ctiTdl::IcVreTdlTrack::IcVreTdlTrack | ( | ) |
Default constructor.
Initializes an empty TDL track message.
Referenced by IcVreTdlTrack(), and operator=().
|
overridevirtual |
Virtual destructor.
| ctiTdl::IcVreTdlTrack::IcVreTdlTrack | ( | const IcVreTdlTrack & | orig | ) |
Copy constructor.
| orig | The TDL track to copy from |
Creates a new TDL track by copying an existing one.
References IcVreTdlTrack().
| IcVreTdlTrack & ctiTdl::IcVreTdlTrack::operator= | ( | const IcVreTdlTrack & | orig | ) |
Assignment operator.
| orig | The TDL track to copy from |
Copies the contents of another TDL track into this one.
References IcVreTdlTrack().
|
overridevirtual |
Gets the interface message type.
|
overridevirtual |
Creates a copy of this message.
Calls the copy constructor to create a dynamically allocated clone.
|
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 message from the provided network buffer.
|
overridevirtual |
Serializes the message for network transmission.
Fills in the network buffer with the message contents.
|
overridevirtual |
Formats the message data as a string.
| str | String to store the formatted message data |
Appends a human-readable representation of the message to the provided string.
|
virtual |
Sets the UUID for this track.
| uuid | The UUID to set |
|
virtual |
Gets the UUID of this track.
|
virtual |
Sets the source track number.
| stn | The source track number to set |
|
virtual |
Gets the source track number.
|
virtual |
Sets the track contents.
| track | The track contents to set |
|
virtual |
Gets the track contents.
|
protected |
UUID of this track for unique identification.
|
protected |
Source track number (used for correlation)
|
protected |
Detailed track contents/parameters.