VR-Forces 4.0.4 Class Documentation
Public Member Functions | Static Public Member Functions | Protected Attributes
DtSendTaskMessageTask Class Reference

A task to send a task message to another entity though the radio. More...

Inheritance diagram for DtSendTaskMessageTask:
Inheritance graph
[legend]

List of all members.

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
DtSendTaskMessageTaskoperator= (const DtSendTaskMessageTask &orig)
 assignment operator
int type () const
virtual DtSimTaskclone (const DtString &name, DtReaderWriterRegistry *parentRegistry=0) const
virtual const DtSimTasktask () 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 DtSimTaskcreator ()
 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
DtSimTaskmyTask

Detailed Description

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.


Constructor & Destructor Documentation

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

destructor


Member Function Documentation

DtSendTaskMessageTask& DtSendTaskMessageTask::operator= ( const DtSendTaskMessageTask orig)

assignment operator

int DtSendTaskMessageTask::type ( ) const [virtual]
Returns:
DtSendTaskMessageTaskType.

Implements DtSimTask.

virtual DtSimTask* DtSendTaskMessageTask::clone ( const DtString name,
DtReaderWriterRegistry parentRegistry = 0 
) const [virtual]
Returns:
A new instance of this class, copied from the original.

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.

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.


Member Data Documentation


The documentation for this class was generated from the following file:

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)