|
VR-Engage
2.2
|
Interface message for RWR data
This class encapsulates the current internal state of a single radar warning receiver (RWR). It contains information about the entity that owns the RWR, the RWR's name, and a list of currently detected radar emitter contacts.
#include <ifRwrData.h>
Public Member Functions | |
| DtIfRwrData () | |
| DtIfRwrData (const DtIfRwrData &orig) | |
| const DtIfRwrData & | operator= (const DtIfRwrData &orig) |
| virtual | ~DtIfRwrData () override |
| virtual int | type () const override |
| virtual DtSimInterfaceContent * | clone () const override |
| virtual DtString | rwrName () const |
| virtual void | setRwrName (const DtString &name) |
| virtual void | setSourceEntity (const DtUUID &entity) |
| virtual const DtUUID & | sourceEntity () const |
| virtual const DtRwRwrContactInfoList & | rwrContactList () const |
| virtual DtRwRwrContactInfoList & | rwrContactList () |
| virtual int | netRepSize () const override |
| virtual bool | setFromNet (const char *contentBuffer, unsigned contentSize) override |
| virtual bool | setToNet () override |
| virtual void | printDataToString (DtString &str) override |
Static Public Member Functions | |
| static DtSimInterfaceContent * | creator () |
Protected Attributes | |
| DtUUID | mySourceEntity |
| DtString | myRwrName |
| DtRwRwrContactInfoList | myRwrContactInfoList |
| DtIfRwrData::DtIfRwrData | ( | ) |
Default constructor.
Initializes an empty RWR data message.
Referenced by DtIfRwrData(), and operator=().
| DtIfRwrData::DtIfRwrData | ( | const DtIfRwrData & | orig | ) |
Copy constructor.
| orig | The RWR data to copy from |
Creates a new RWR data object by copying an existing one.
References DtIfRwrData().
|
overridevirtual |
Virtual destructor.
| const DtIfRwrData & DtIfRwrData::operator= | ( | const DtIfRwrData & | orig | ) |
Assignment operator.
| orig | The RWR data to copy from |
Copies the contents of another RWR data object into this one.
References DtIfRwrData().
|
overridevirtual |
Gets the interface message type.
Returns DtRwrDataMessageType as defined in vreVrfMessageTypes.h.
|
overridevirtual |
Creates a copy of this message.
Creates a dynamically allocated copy of this message.
|
virtual |
Gets the name of the RWR.
|
virtual |
Sets the name of the RWR.
| name | The RWR name to set |
|
virtual |
Sets the source entity UUID.
| entity | The UUID of the source entity |
Sets the UUID of the entity that owns the RWR system.
|
virtual |
Gets the source entity UUID.
Returns the UUID of the entity that owns the RWR system.
|
virtual |
Gets the list of RWR contacts (const version)
Returns a constant reference to the list of radar contacts detected by the RWR.
|
virtual |
Gets the list of RWR contacts (non-const version)
Returns a modifiable reference to the list of radar contacts detected by the RWR.
|
overridevirtual |
Gets the network representation size.
Returns the size of the network buffer needed to store this message.
|
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.
Prepares the message 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 message to the provided string.
|
static |
Static creator function for factory registration.
This static function is used for registration with DtInterfaceContentFactory.
|
protected |
UUID of the entity that owns the RWR.
|
protected |
Name of the RWR system.
|
protected |
List of radar contacts detected by the RWR.