![]() |
VR-Forces 4.0.4 Class Documentation
|
A task to send a task message to another entity though the radio. More...

Public Member Functions | |
| DtSendTaskMessageTask () | |
| Default constructor. | |
| DtSendTaskMessageTask (const DtString &writeName, DtReaderWriterRegistry *parentRegistry=NULL) | |
| Usual constructor. | |
| DtSendTaskMessageTask (const DtString &writeName, const DtSendTaskMessageTask &orig, DtReaderWriterRegistry *parentRegistry=NULL) | |
| copy constructor | |
| virtual | ~DtSendTaskMessageTask () |
| destructor | |
| DtSendTaskMessageTask & | operator= (const DtSendTaskMessageTask &orig) |
| assignment operator | |
| int | type () const |
| virtual DtSimTask * | clone (const DtString &name, DtReaderWriterRegistry *parentRegistry=0) const |
| virtual const DtSimTask * | task () const |
| The task contained by the task. | |
| virtual void | setTask (const DtSimTask *task) |
| Sets the task for this task. The task will be cloned. | |
| virtual DtString | stringRep () const |
| Text representation of this task. | |
| virtual int | netRepSize () const |
| Returns the size in bytes of the network representation of the class. | |
| virtual bool | setFromNet (const char *contentBuffer, unsigned contentSize) |
| Sets mySubtask member from the incoming contentBuffer (cast to type DtNetSimTask). | |
| virtual bool | setToNet () |
| Calls netRep() to create the network buffer. | |
| virtual DtString | objectName () const |
| Name of the object to send the task to. | |
| virtual void | setObjectName (const DtString &name) |
| Name of the object to send the task to. | |
Static Public Member Functions | |
| static DtSimTask * | creator () |
| Returns a new instance of this class. | |
Protected Member Functions | |
| virtual void | putData (FILE *fp, int indentLevel=0) |
| Overridden to manage the contained task in the file. | |
| virtual DtlObjPtr | getData (DtlObjPtr args, const DtFilename &searchPath, const DtVariableBindingsList &variableBindings) |
| Overridden to manage the contained task in the file. | |
Protected Attributes | |
| DtRwString | myObjectName |
| DtSimTask * | myTask |
A task to send a task message to another entity though the radio.
An entity receiving this task will send a task message containing the task indicated in this task.
Default constructor.
| DtSendTaskMessageTask::DtSendTaskMessageTask | ( | const DtString & | writeName, |
| DtReaderWriterRegistry * | parentRegistry = NULL |
||
| ) |
Usual constructor.
| DtSendTaskMessageTask::DtSendTaskMessageTask | ( | const DtString & | writeName, |
| const DtSendTaskMessageTask & | orig, | ||
| DtReaderWriterRegistry * | parentRegistry = NULL |
||
| ) |
copy constructor
| virtual DtSendTaskMessageTask::~DtSendTaskMessageTask | ( | ) | [virtual] |
destructor
| DtSendTaskMessageTask& DtSendTaskMessageTask::operator= | ( | const DtSendTaskMessageTask & | orig | ) |
assignment operator
| int DtSendTaskMessageTask::type | ( | ) | const [virtual] |
Implements DtSimTask.
| virtual DtSimTask* DtSendTaskMessageTask::clone | ( | const DtString & | name, |
| DtReaderWriterRegistry * | parentRegistry = 0 |
||
| ) | const [virtual] |
Implements DtSimTask.
| virtual DtString DtSendTaskMessageTask::objectName | ( | ) | const [virtual] |
Name of the object to send the task to.
This name may be DtBroadcast, in which case this task will be sent to every entity that is addressable though the radio.
| virtual void DtSendTaskMessageTask::setObjectName | ( | const DtString & | name | ) | [virtual] |
Name of the object to send the task to.
This name may be DtBroadcast, in which case this task will be sent to every entity that is addressable though the radio.
| virtual const DtSimTask* DtSendTaskMessageTask::task | ( | ) | const [virtual] |
The task contained by the task.
| virtual void DtSendTaskMessageTask::setTask | ( | const DtSimTask * | task | ) | [virtual] |
Sets the task for this task. The task will be cloned.
| virtual DtString DtSendTaskMessageTask::stringRep | ( | ) | const [virtual] |
Text representation of this task.
Implements DtSimTask.
| virtual int DtSendTaskMessageTask::netRepSize | ( | ) | const [virtual] |
Returns the size in bytes of the network representation of the class.
This is the size in bytes of the DtNetSimTask structure. Derived classes should take into acount the size returned by this class when overriding (they should call down to this class and add the result to their additional size).
Reimplemented from DtSimTask.
| virtual bool DtSendTaskMessageTask::setFromNet | ( | const char * | contentBuffer, |
| unsigned | contentSize | ||
| ) | [virtual] |
Sets mySubtask member from the incoming contentBuffer (cast to type DtNetSimTask).
Derived classes should call down to this function first, and then extract their own data starting at the location contentBuffer + DtSimTask::netRepSize().
Reimplemented from DtSimTask.
| virtual bool DtSendTaskMessageTask::setToNet | ( | ) | [virtual] |
Calls netRep() to create the network buffer.
Casts the resulting myNetRep to type DtNetSimTask*, and then sets the mySubtask member in the DtNetSimTask from mySubtask. Derived classes should call down to the base class version of setToNet() at the start of the function (before doing any processing on the network representation) They can then start to fill in their network data, starting at the location myNetRep + DtSimTask::netRepSize().
Reimplemented from DtSimTask.
| static DtSimTask* DtSendTaskMessageTask::creator | ( | ) | [static] |
Returns a new instance of this class.
| virtual void DtSendTaskMessageTask::putData | ( | FILE * | fp, |
| int | indentLevel = 0 |
||
| ) | [protected, virtual] |
Overridden to manage the contained task in the file.
Reimplemented from DtSimTask.
| virtual DtlObjPtr DtSendTaskMessageTask::getData | ( | DtlObjPtr | args, |
| const DtFilename & | searchPath, | ||
| const DtVariableBindingsList & | variableBindings | ||
| ) | [protected, virtual] |
Overridden to manage the contained task in the file.
Reimplemented from DtSimTask.
DtRwString DtSendTaskMessageTask::myObjectName [protected] |
DtSimTask* DtSendTaskMessageTask::myTask [protected] |