![]() |
VR-Forces 5.0.3 Developer's Guide
|
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.

Public Member Functions | |
| DtSetDataRequestMessage () | |
| DtSetDataRequestMessage (const DtSetDataRequestMessage &orig) | |
| virtual | ~DtSetDataRequestMessage () |
| virtual DtSetDataRequest * | setDataRequest () const |
| virtual void | setSetDataRequest (DtSetDataRequest *request) |
| virtual int | contentCategoryType () const |
| virtual const DtSetMessageType & | contentType () const |
| virtual DtSimMessage * | clone () const |
| virtual int | netRepSize () const |
| virtual bool | setFromNet (const char *networkBuffer, unsigned contentSize) |
| virtual bool | setToNet () |
| virtual void | printDataToString (DtString &str) |
Static Public Member Functions | |
| static DtVrfObjectMessage * | creator () |
Protected Member Functions | |
| const DtSetDataRequestMessage & | operator= (DtSetDataRequestMessage &orig) |
Protected Attributes | |
| DtSetDataRequest * | mySetDataRequest |
| bool | myOwnSetDataRequest |
Additional Inherited Members |
| 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 |