![]() |
VR-Forces 4.6 Class Documentation
|
A DtSetDataRequestMessage is a DtRadioMsg with a pointer to a setDataRequest. More...

Public Member Functions | |
| DtSetDataRequestMessage () | |
| default constructor | |
| DtSetDataRequestMessage (const DtSetDataRequestMessage &orig) | |
| virtual | ~DtSetDataRequestMessage () |
| destructor | |
| virtual DtSetDataRequest * | setDataRequest () const |
| Returns a pointer to the DtSetDataRequest object in the message. | |
| virtual void | setSetDataRequest (DtSetDataRequest *request) |
| N.B. | |
| virtual int | contentCategoryType () const |
| The radioMessageType() for this kind of message is “set-data-request” (DtSetDataRequestMessageType). | |
| virtual const DtSetMessageType & | contentType () const |
| virtual DtSimMessage * | clone () const |
| Required override. Clones itself and the setDataRequest it points to. | |
| virtual int | netRepSize () const |
| Overrides the base class DtVrfObjectMessage netRepSize(). | |
| virtual bool | setFromNet (const char *networkBuffer, unsigned contentSize) |
| Extracts the task type, creates the task (using the task factory), and then tells the task to fill itself in from the network buffer. | |
| virtual bool | setToNet () |
| Fill in our task type, tell the task to fill itself out, and then copy its buffer into ours. | |
| virtual void | printDataToString (DtString &str) |
| Print message. | |
Static Public Member Functions | |
| static DtVrfObjectMessage * | creator () |
Protected Member Functions | |
| const DtSetDataRequestMessage & | operator= (DtSetDataRequestMessage &orig) |
Protected Attributes | |
| DtSetDataRequest * | mySetDataRequest |
| bool | myOwnSetDataRequest |
Additional Inherited Members |
A DtSetDataRequestMessage is a DtRadioMsg with a pointer to a setDataRequest.
The type of the DtSetDataRequestMessage is just the type of the setDataRequest. Classes derived from DtSetDataRequest are used to implement the messages for setting parameters, such as location. DtSetDataRequestMessages are sent to entities by their superiors, by Set statements in a DtPlan, and by the user from the GUI.
| DtSetDataRequestMessage::DtSetDataRequestMessage | ( | ) |
default constructor
| DtSetDataRequestMessage::DtSetDataRequestMessage | ( | const DtSetDataRequestMessage & | orig | ) |
|
virtual |
destructor
|
protected |
|
virtual |
Returns a pointer to the DtSetDataRequest object in the message.
|
virtual |
N.B.
: This function USED TO clone the request passed as an argument. However, for performance reasons, it has been modified to just keep a pointer to the request. This means that it is the caller's responsibility to ensure that the lifetime of the request goes beyond the lifetime of the message. For example, this previously acceptable code will now FAIL:
DtSetDataRequest* request = new DtSetHeadingRequest; DtSetDataRequestMessage* message = new DtSetDataRequestMessage; request->setHeading(0.); message->setSetDataRequest(request); delete request; vrfObject()->radio()->sendToNet(message); ...
|
virtual |
The radioMessageType() for this kind of message is “set-data-request” (DtSetDataRequestMessageType).
Implements DtVrfObjectMessage.
|
virtual |
|
virtual |
Required override. Clones itself and the setDataRequest it points to.
Implements DtSimMessage.
|
virtual |
Overrides the base class DtVrfObjectMessage netRepSize().
This calls down to the base class to get the size of the header created by the base, and then adds any task, set data, or report contents.
Reimplemented from DtVrfObjectMessage.
|
virtual |
Extracts the task type, creates the task (using the task factory), and then tells the task to fill itself in from the network buffer.
Reimplemented from DtVrfObjectMessage.
|
virtual |
Fill in our task type, tell the task to fill itself out, and then copy its buffer into ours.
Reimplemented from DtVrfObjectMessage.
|
virtual |
Print message.
Reimplemented from DtVrfObjectMessage.
|
static |
|
protected |
|
protected |