|
VR-Engage
2.2
|
Interface message for requesting RWR data
This class is used to request radar warning receiver data messages to be sent from a DtObjectRwr. Two types of requests are supported:
#include <ifRwrDataRequest.h>
Public Member Functions | |
| DtIfRwrDataRequest () | |
| DtIfRwrDataRequest (const DtIfRwrDataRequest &orig) | |
| const DtIfRwrDataRequest & | operator= (const DtIfRwrDataRequest &orig) |
| virtual | ~DtIfRwrDataRequest () override |
| virtual int | type () const override |
| virtual DtSimInterfaceContent * | clone () const override |
| virtual void | setSubscribe (bool value) |
| virtual bool | subscribe () const |
| virtual void | setUUID (const DtUUID &uuid) |
| virtual const DtUUID & | uuid () const |
| 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 | myUUID |
| bool | mySubscribe |
| DtIfRwrDataRequest::DtIfRwrDataRequest | ( | ) |
Default constructor.
Initializes an empty RWR data request message.
Referenced by DtIfRwrDataRequest(), and operator=().
| DtIfRwrDataRequest::DtIfRwrDataRequest | ( | const DtIfRwrDataRequest & | orig | ) |
Copy constructor.
| orig | The RWR data request to copy from |
Creates a new RWR data request message by copying an existing one.
References DtIfRwrDataRequest().
|
overridevirtual |
Virtual destructor.
| const DtIfRwrDataRequest & DtIfRwrDataRequest::operator= | ( | const DtIfRwrDataRequest & | orig | ) |
Assignment operator.
| orig | The RWR data request to copy from |
Copies the contents of another RWR data request message into this one.
References DtIfRwrDataRequest().
|
overridevirtual |
Gets the interface message type.
Returns DtRwrDataRequestMessageType as defined in vreVrfMessageTypes.h.
|
overridevirtual |
Creates a copy of this message.
Creates a dynamically allocated copy of this message.
|
virtual |
Sets the subscription flag.
| value | True for continuous updates, false for a one-time request |
When set to true, RWR data will be sent every time the RWR contact list changes. When set to false, only a single RWR data update will be sent.
|
virtual |
Gets the subscription flag.
|
virtual |
Sets the UUID of the entity whose RWR data is being requested.
| uuid | The entity UUID to set |
Sets the UUID of the entity whose RWR data is being requested. This identifies the specific radar warning receiver system in the simulation.
References uuid().
|
virtual |
Gets the UUID of the entity whose RWR data is being requested.
Referenced by setUUID().
|
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 whose RWR data is being requested.
|
protected |
Flag indicating whether continuous updates are requested When true, data will be sent each time it changes. When false, only a single update is sent.