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

Classes | |
| struct | UnparentedSubtask |
Public Types | |
| typedef std::list < DtCurrentTaskData > | DtTaskList |
| typedef std::list < DtCurrentScriptedSetData > | DtScriptedSetList |
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 const DtAdminContentMessageType & | type () const |
| virtual void | addTaskToList (const DtSimTask *task, const std::vector< DtSimTaskMessageType > &conflictingTaskTypes, int taskId, int status, const DtString &controller) |
| Clones the specified task and adds it to the task list in the message. | |
| virtual void | addScriptedSetToList (const DtSetDataRequest *set, int taskId, const DtString &controller) |
| Clones the specified scripted set and adds it to the list of current items being managed by the scripted task controller. | |
| virtual void | addSubtask (const DtSimTask *task, int subtaskId, int spawningTaskId, const DtString &controller, bool addIfNoParent=false) |
| Look at all the tasks and see which task this belongs to. | |
| virtual void | clearTaskList () |
| Removes all the top level tasks from the task list. | |
| virtual void | clearScriptedSetsList () |
| Removes all the scripted sets from the set list. | |
| virtual const DtTaskList & | taskList () const |
| virtual const DtScriptedSetList & | scriptedSetList () const |
| virtual bool | testTaskForConflict (const DtSimTaskMessageType &taskType) 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. | |
| virtual void | resolveUnparentedSubtasks () |
| Adds in all unparented subtasks. | |
| virtual void | clearUnparentedSubtasks () |
| Clears out unparented subtasks. | |
Public Member Functions inherited from DtAdminContent | |
| virtual | ~DtAdminContent () |
| destructor | |
| virtual char * | netRep () |
Static Public Member Functions | |
| static DtAdminContent * | create () |
| Creator function. Returns new instance of this class. | |
Static Public Member Functions inherited from DtAdminContent | |
| static void | addAdminContentCreatorFcn (const DtString &contentName, DtAdminContentCreatorFcn fcn) |
| static void | setFactory (DtAdminContentFactory *factory) |
| static DtAdminContentFactory * | factory () |
| static bool | isTypeRegistered (DtString type) |
Protected Types | |
| typedef std::map< int, DtCurrentTaskData * > | InternalTaskMap |
| Internal map that keeps track of tasks such that when addin a subtask it can be added efficiently. | |
| typedef std::vector < UnparentedSubtask > | UnparentedSubtasks |
Protected Member Functions | |
| virtual void | addUnparentedSubtask (const DtSimTask *task, int subtaskId, int spawningTaskId, const DtString &controller) |
| If a subtask is to be added and the parent task does not exist, add to unparented internal list. | |
| void | clearTaskList (DtTaskList &taskList) |
| Removes and deletes all tasks on the task list. | |
| virtual void | clearAllTasks () |
| Clears the task list. | |
| void | copyTaskList (const DtTaskList &taskList, DtTaskList &into) |
| Clones all tasks in taskList and adds them to myTaskList. | |
| void | copyScriptedSetList (const DtScriptedSetList &taskList, DtScriptedSetList &into) |
| Clones all sets in scriptedSetList and adds them to myScriptedSetList. | |
| virtual DtString | printTasksToString (const DtTaskList &tasks) const |
| Prints out the string rep of the list and returns the string. | |
| virtual DtString | printSetsToString (const DtScriptedSetList &tasks) const |
| virtual void | addTaskWithStatus (DtTaskList &list, const DtSimTask *task, int status, const std::vector< DtSimTaskMessageType > &conflictingTaskTypes, int taskId, const DtString &controller) |
| Adds a task to the supplied list. | |
Protected Member Functions inherited from DtAdminContent | |
| DtAdminContent () | |
| Constructors are protected because no one should instantiate the base class, just derived versions. | |
| DtAdminContent (const DtAdminContent &orig) | |
| copy constructor | |
| const DtAdminContent & | operator= (const DtAdminContent &orig) |
| assignment operator; same as copy costructor. | |
| virtual char * | createNetworkBuffer () |
Protected Attributes | |
| DtTaskList | myTaskList |
| DtScriptedSetList | myScriptedSetList |
| InternalTaskMap | myInternalTaskMap |
| UnparentedSubtasks | myUnparentedSubtasks |
Protected Attributes inherited from DtAdminContent | |
| char * | myNetRep |
Additional Inherited Members | |
Static Protected Attributes inherited from DtAdminContent | |
| static DtAdminContentFactory * | myFactory |
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 |
| typedef std::list<DtCurrentScriptedSetData> DtCurrentTasksAdminContent::DtScriptedSetList |
|
protected |
Internal map that keeps track of tasks such that when addin a subtask it can be added efficiently.
|
protected |
| DtCurrentTasksAdminContent::DtCurrentTasksAdminContent | ( | ) |
default constructor
| DtCurrentTasksAdminContent::DtCurrentTasksAdminContent | ( | const DtCurrentTasksAdminContent & | orig | ) |
copy constructor
|
virtual |
destructor
| const DtCurrentTasksAdminContent& DtCurrentTasksAdminContent::operator= | ( | const DtCurrentTasksAdminContent & | orig | ) |
assignment operator; same as copy costructor.
|
static |
Creator function. Returns new instance of this class.
|
virtual |
Call after construction.
Reimplemented from DtAdminContent.
|
virtual |
Implements DtAdminContent.
|
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 |
Clones the specified scripted set and adds it to the list of current items being managed by the scripted task controller.
|
virtual |
Look at all the tasks and see which task this belongs to.
|
virtual |
Removes all the top level tasks from the task list.
|
virtual |
Removes all the scripted sets from the set list.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Make a copy of this content.
Returns a pointer to a newly created copy of this class.
Implements DtAdminContent.
|
virtual |
Get a readable string representation of this content.
Implements DtAdminContent.
|
virtual |
Reimplemented from DtAdminContent.
|
virtual |
Decodes content from buffer.
Reimplemented from DtAdminContent.
|
virtual |
Encodes content into buffer.
Reimplemented from DtAdminContent.
|
virtual |
Adds in all unparented subtasks.
|
virtual |
Clears out unparented subtasks.
|
protectedvirtual |
If a subtask is to be added and the parent task does not exist, add to unparented internal list.
When done adding all tasks MUST call resolveUnparentedSubtasks. If you do not all unparented tasks will be lost
|
protected |
Removes and deletes all tasks on the task list.
Non-virtual because it is used by the constructors/destructor.
|
protectedvirtual |
Clears the task list.
|
protected |
Clones all tasks in taskList and adds them to myTaskList.
|
protected |
Clones all sets in scriptedSetList and adds them to myScriptedSetList.
|
protectedvirtual |
Prints out the string rep of the list and returns the string.
|
protectedvirtual |
|
protectedvirtual |
Adds a task to the supplied list.
|
protected |
|
protected |
|
protected |
|
protected |