|
VR-Engage
2.2
|
This class encapsulates a collection of TDL tracks for transmission between simulation components. It manages a list of track contents structures and provides methods for serialization and deserialization over the network.
#include <icVreTdlTrackList.h>
Public Member Functions | |
| IcVreTdlTrackList () | |
| virtual | ~IcVreTdlTrackList () override |
| IcVreTdlTrackList (const IcVreTdlTrackList &orig) | |
| IcVreTdlTrackList & | operator= (const IcVreTdlTrackList &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 | setClearAllTracks (const bool clear) |
| virtual bool | getClearAllTracks () |
| virtual void | addTrack (const IcVreTdlTrackContents &track) |
| virtual std::list< IcVreTdlTrackContents > & | getTrackList () |
Static Public Member Functions | |
| static DtSimInterfaceContent * | creator () |
Protected Attributes | |
| DtUUID | myUUID |
| DtString | mySourceTrackNumber |
| bool | myClearAllTracks |
| int | myTrackCount |
| std::list< IcVreTdlTrackContents > | myTrackList |
| ctiTdl::IcVreTdlTrackList::IcVreTdlTrackList | ( | ) |
Default constructor.
Initializes an empty TDL track list message.
Referenced by IcVreTdlTrackList(), and operator=().
|
overridevirtual |
Virtual destructor.
Cleans up all resources associated with the track list.
| ctiTdl::IcVreTdlTrackList::IcVreTdlTrackList | ( | const IcVreTdlTrackList & | orig | ) |
Copy constructor.
| orig | The TDL track list to copy from |
Creates a new TDL track list by copying an existing one, including all contained tracks.
References IcVreTdlTrackList().
| IcVreTdlTrackList & ctiTdl::IcVreTdlTrackList::operator= | ( | const IcVreTdlTrackList & | orig | ) |
Assignment operator.
| orig | The TDL track list to copy from |
Copies the contents of another TDL track list into this one, including all contained tracks.
References IcVreTdlTrackList().
|
overridevirtual |
Gets the interface message type.
Returns IcVreTdlTrackListType.
|
overridevirtual |
Creates a copy of this message.
Creates a dynamically allocated copy of this message using the copy constructor.
|
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 track list from the provided network buffer.
|
overridevirtual |
Serializes the message for network transmission.
Prepares the track list 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 track list to the provided string.
|
virtual |
Sets the UUID for this track list.
| uuid | The UUID to set |
|
virtual |
Gets the UUID of this track list.
|
virtual |
Sets the source track number.
| stn | The source track number to set |
Sets the track number of the originating Joint Unit (JU).
|
virtual |
Gets the source track number.
|
virtual |
Sets the clear all tracks flag.
| clear | True to clear all tracks, false otherwise |
When set to true, this flag indicates that all tracks and engagement status should be deleted/cleared by the receiver.
|
virtual |
Gets the clear all tracks flag.
|
virtual |
Adds a track to the track list.
| track | The track contents to add |
Adds a track to the list of tracks in this message.
|
virtual |
Gets the list of tracks.
Returns a reference to the internal list of tracks.
|
protected |
UUID of this track list for unique identification.
|
protected |
Source track number (STN) of originating Joint Unit (JU)
|
protected |
Flag indicating if all tracks should be cleared When true, all tracks and engagement status should be deleted/cleared.
|
protected |
Count of tracks in the list Maximum of 40 tracks, sorted by distance from ownship.
|
protected |
List of track contents structures.