![]() |
VR-Forces 4.0.4 Class Documentation
|
Admin content that is used to send the current tasks status from a specific entity. More...

Public Types | |
| typedef std::list < DtCurrentTaskData > | DtTaskList |
Public Member Functions | |
| DtCurrentTasksAdminContent () | |
| default constructor | |
| DtCurrentTasksAdminContent (const DtCurrentTasksAdminContent &orig) | |
| copy constructor | |
| const DtCurrentTasksAdminContent & | operator= (const DtCurrentTasksAdminContent &orig) |
| assignment operator; same as copy costructor. | |
| virtual | ~DtCurrentTasksAdminContent () |
| destructor | |
| virtual bool | init () |
| Call after construction. | |
| virtual int | type () const |
| virtual void | addTaskToList (const DtSimTask *task, const std::vector< int > &conflictingTaskTypes) |
| Clones the specified task and adds it to the task list in the message. | |
| virtual void | clearTaskList () |
| Removes all the tasks from the task list. | |
| virtual const DtTaskList & | taskList () const |
| virtual bool | testTaskForConflict (int taskId) const |
| virtual DtAdminContent * | clone () const |
| Make a copy of this content. | |
| virtual DtString | stringRep () const |
| Get a readable string representation of this content. | |
| virtual int | netRepSize () const |
| virtual bool | setFromNet (const char *contentBuffer, unsigned contentSize) |
| Decodes content from buffer. | |
| virtual bool | setToNet () |
| Encodes content into buffer. | |
Static Public Member Functions | |
| static DtAdminContent * | create () |
| Creator function. Returns new instance of this class. | |
Protected Member Functions | |
| void | internalClearTaskList () |
| Removes and deletes all tasks on the task list. | |
| void | copyTaskList (const DtTaskList &taskList) |
| Clones all tasks in taskList and adds them to myTaskList. | |
Protected Attributes | |
| DtTaskList | myTaskList |
Admin content that is used to send the current tasks status from a specific entity.
This message is sent in response to a DtRequstCurrentTasksAdminContent or a subscription to the current task status using the same message. The current task status is a list of all the currently executing top level tasks that an entity has.
| typedef std::list<DtCurrentTaskData> DtCurrentTasksAdminContent::DtTaskList |
default constructor
copy constructor
| virtual DtCurrentTasksAdminContent::~DtCurrentTasksAdminContent | ( | ) | [virtual] |
destructor
| const DtCurrentTasksAdminContent& DtCurrentTasksAdminContent::operator= | ( | const DtCurrentTasksAdminContent & | orig | ) |
assignment operator; same as copy costructor.
| static DtAdminContent* DtCurrentTasksAdminContent::create | ( | ) | [static] |
Creator function. Returns new instance of this class.
| virtual bool DtCurrentTasksAdminContent::init | ( | ) | [virtual] |
Call after construction.
Reimplemented from DtAdminContent.
| virtual int DtCurrentTasksAdminContent::type | ( | ) | const [virtual] |
Implements DtAdminContent.
| virtual void DtCurrentTasksAdminContent::addTaskToList | ( | const DtSimTask * | task, |
| const std::vector< int > & | conflictingTaskTypes | ||
| ) | [virtual] |
Clones the specified task and adds it to the task list in the message.
Associates the specified list of task IDs as the conflicting task IDs to the specified task.
| virtual void DtCurrentTasksAdminContent::clearTaskList | ( | ) | [virtual] |
Removes all the tasks from the task list.
| virtual const DtTaskList& DtCurrentTasksAdminContent::taskList | ( | ) | const [virtual] |
| virtual bool DtCurrentTasksAdminContent::testTaskForConflict | ( | int | taskId | ) | const [virtual] |
| virtual DtAdminContent* DtCurrentTasksAdminContent::clone | ( | ) | const [virtual] |
Make a copy of this content.
Returns a pointer to a newly created copy of this class.
Implements DtAdminContent.
| virtual DtString DtCurrentTasksAdminContent::stringRep | ( | ) | const [virtual] |
Get a readable string representation of this content.
Implements DtAdminContent.
| virtual int DtCurrentTasksAdminContent::netRepSize | ( | ) | const [virtual] |
Reimplemented from DtAdminContent.
| virtual bool DtCurrentTasksAdminContent::setFromNet | ( | const char * | contentBuffer, |
| unsigned | contentSize | ||
| ) | [virtual] |
Decodes content from buffer.
Reimplemented from DtAdminContent.
| virtual bool DtCurrentTasksAdminContent::setToNet | ( | ) | [virtual] |
Encodes content into buffer.
Reimplemented from DtAdminContent.
| void DtCurrentTasksAdminContent::internalClearTaskList | ( | ) | [protected] |
Removes and deletes all tasks on the task list.
Non-virtual because it is used by the constructors/destructor.
| void DtCurrentTasksAdminContent::copyTaskList | ( | const DtTaskList & | taskList | ) | [protected] |
Clones all tasks in taskList and adds them to myTaskList.
DtTaskList DtCurrentTasksAdminContent::myTaskList [protected] |