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

class DtUserTask: More...

Inheritance diagram for DtUserTask:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DtUserTask ()
 default constructor
 DtUserTask (const DtString &writeName, DtReaderWriterRegistry *parentRegistry=0)
 constructor If you have a task 'put' itself, the writeName will preface the task.
virtual ~DtUserTask ()
 destructor
 DtUserTask (const DtString &writeName, const DtUserTask &orig, DtReaderWriterRegistry *parentRegistry=0)
 copy constructor
DtUserTaskoperator= (const DtUserTask &orig)
 assignment operator
virtual int type () const
 Returns "user-defined-task".
virtual DtSimTaskclone (const DtString &name, DtReaderWriterRegistry *parentRegistry=0) const
 Creates a copy of this user-defined task.
virtual DtString stringRep () const
 Returns a human-readable string representation of the task.
virtual const DtStringuserTaskName () const
 Set/get the name of the user-defined task.
virtual void setUserTaskName (const DtString &taskName)
virtual const DtStringarg1Text () const
 Set/get the 1st argument.
virtual void setArg1Text (const DtString &value)
virtual const DtStringarg2Text () const
 Set/get the 2nd argument.
virtual void setArg2Text (const DtString &value)
virtual const DtStringarg3Text () const
 Set/get the 3rd argument.
virtual void setArg3Text (const DtString &value)
virtual const DtStringarg4Text () const
 Set/get the 4th argument.
virtual void setArg4Text (const DtString &value)
virtual int netRepSize () const
 Returns the size of the full network representation padded to an 8-byte boundary.
virtual bool setFromNet (const char *contentBuffer, unsigned contentSize)
 Fills in the task from the network buffer.
virtual bool setToNet ()
 Fills in the network buffer (created by base class simTask) with the task contents.

Static Public Member Functions

static DtSimTaskcreator ()

Protected Attributes

DtRwString myUserTaskName
DtRwString myArg1Text
DtRwString myArg2Text
DtRwString myArg3Text
DtRwString myArg4Text

Detailed Description

class DtUserTask:

Instances of DtUserTask are tasks defined by the user. The parameters for the task are stored as a list of strings.

DtUserTask is a specialized task that acts as a container for a user-defined task. There is no inherent action associated with a user task. It is generic task shell, meant to be used to convey the data associated with a new kind of task. It contains a number of generic string parameters, which the user uses to specify a name for the new task type, and any parameters neces- sary to fully describe the task. The user task can be used from within a plan, as you would any other task. It can also be configured through the GUI in the same way you would normally configure tasks.

task-type: DtUserTaskType

parameters: user task name - A unique string name identifying the specific user task. The name can be used in the components that register for DtUserTask messages to identify the particular user-defined task.

generic string arguments [4] - A user task can use up to four text strings to store parameters for the task. It is up to the user to deter- mine the content of the parameters.


Constructor & Destructor Documentation

default constructor

DtUserTask::DtUserTask ( const DtString writeName,
DtReaderWriterRegistry parentRegistry = 0 
)

constructor If you have a task 'put' itself, the writeName will preface the task.

virtual DtUserTask::~DtUserTask ( ) [virtual]

destructor

DtUserTask::DtUserTask ( const DtString writeName,
const DtUserTask orig,
DtReaderWriterRegistry parentRegistry = 0 
)

copy constructor


Member Function Documentation

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

assignment operator

virtual int DtUserTask::type ( ) const [virtual]

Returns "user-defined-task".

Implements DtSimTask.

Reimplemented in BHAVE::DtBhaveTask.

virtual DtSimTask* DtUserTask::clone ( const DtString name,
DtReaderWriterRegistry parentRegistry = 0 
) const [virtual]

Creates a copy of this user-defined task.

Implements DtSimTask.

Reimplemented in BHAVE::DtBhaveTask.

virtual DtString DtUserTask::stringRep ( ) const [virtual]

Returns a human-readable string representation of the task.

This string representation is used to display information about the task in the plan editor and viewer. The type and parameters for the task are typically encoded in the string. The format of the string is up to you.

Implements DtSimTask.

Reimplemented in BHAVE::DtBhaveTask.

static DtSimTask* DtUserTask::creator ( ) [static]

Reimplemented in BHAVE::DtBhaveTask.

virtual const DtString& DtUserTask::userTaskName ( ) const [virtual]

Set/get the name of the user-defined task.

virtual void DtUserTask::setUserTaskName ( const DtString taskName) [virtual]
virtual const DtString& DtUserTask::arg1Text ( ) const [virtual]

Set/get the 1st argument.

virtual void DtUserTask::setArg1Text ( const DtString value) [virtual]
virtual const DtString& DtUserTask::arg2Text ( ) const [virtual]

Set/get the 2nd argument.

virtual void DtUserTask::setArg2Text ( const DtString value) [virtual]
virtual const DtString& DtUserTask::arg3Text ( ) const [virtual]

Set/get the 3rd argument.

virtual void DtUserTask::setArg3Text ( const DtString value) [virtual]
virtual const DtString& DtUserTask::arg4Text ( ) const [virtual]

Set/get the 4th argument.

virtual void DtUserTask::setArg4Text ( const DtString value) [virtual]
virtual int DtUserTask::netRepSize ( ) const [virtual]

Returns the size of the full network representation padded to an 8-byte boundary.

Reimplemented from DtSimTask.

virtual bool DtUserTask::setFromNet ( const char *  contentBuffer,
unsigned  contentSize 
) [virtual]

Fills in the task from the network buffer.

Reimplemented from DtSimTask.

virtual bool DtUserTask::setToNet ( ) [virtual]

Fills in the network buffer (created by base class simTask) with the task contents.

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)