13 #include <vlutil/vlString.h>
29 task(orig.task), subtasks(orig.subtasks), status(orig.status), conflictingTaskIds(orig.conflictingTaskIds),
64 namespace DtBufferSerialize
86 namespace DtBufferSerialize
143 virtual void addTaskToList(
const DtSimTask* task,
const std::vector<DtSimTaskMessageType>& conflictingTaskTypes,
int taskId,
152 bool addIfNoParent =
false);
155 virtual void clearTaskList();
158 virtual void clearScriptedSetsList();
188 virtual bool setFromNet(
const char* contentBuffer,
189 unsigned contentSize);
195 virtual void resolveUnparentedSubtasks();
198 virtual void clearUnparentedSubtasks();
203 virtual void addUnparentedSubtask(
const DtSimTask* task,
int subtaskId,
int spawningTaskId,
int status,
const DtString&
controller);
210 virtual void clearAllTasks();
227 virtual void addTaskWithStatus(
DtTaskList& list,
const DtSimTask* task,
int status,
const std::vector<DtSimTaskMessageType>& conflictingTaskTypes,
virtual bool setFromNet(const char *contentBuffer, unsigned contentSize)
Sets the contents of this set request based on the network buffer.
DT_DLL_readerWriter int getSize(const DtString &val)
The number of bytes required to encode the value.
virtual int netRepSize() const
std::vector< DtSimTaskMessageType > conflictingTaskIds
The task types of all the tasks that conflict with the task.
Definition: currentTasksAdminContent.h:46
int status
The status of the task can be: 1 - Active 2 - Suspended 3 - Enabled to checking for reaction (if reac...
Definition: currentTasksAdminContent.h:43
virtual DtAdminContent * clone() const =0
Make a copy of this content.
int setId
Definition: currentTasksAdminContent.h:59
DtTaskList myTaskList
Definition: currentTasksAdminContent.h:231
Definition: vrfObjectMessageTypeTemplate.h:24
DtSimTask * task
Definition: currentTasksAdminContent.h:240
Structure holding the current task information for one of the current tasks for an entity...
Definition: currentTasksAdminContent.h:25
DtCurrentScriptedSetData()
Definition: currentTasksAdminContent.h:53
int status
Definition: currentTasksAdminContent.h:243
DtString controller
Definition: currentTasksAdminContent.h:60
DtCurrentTaskData()
Definition: currentTasksAdminContent.h:27
InternalTaskMap myInternalTaskMap
Definition: currentTasksAdminContent.h:236
int parentId
Definition: currentTasksAdminContent.h:241
UnparentedSubtasks myUnparentedSubtasks
Definition: currentTasksAdminContent.h:248
DtSetDataRequest is an abstract base class from which real setDataRequests can derive.
Definition: setDataRequest.h:40
const DtAdminContent & operator=(const DtAdminContent &orig)
assignment operator; same as copy costructor.
DtCurrentTaskData(const DtCurrentTaskData &orig)
Definition: currentTasksAdminContent.h:28
int taskId
Definition: currentTasksAdminContent.h:34
int subtaskId
Definition: currentTasksAdminContent.h:242
DtString controller
Definition: currentTasksAdminContent.h:244
DT_DLL_readerWriter char * encode(const DtFilename &val, char *buffer)
Serializes the provided value val into buffer.
*array controller(no time code)*/template< class Instance
//!//!//!//!//!//!//!//!//!//!//!//
DtScriptedSetList myScriptedSetList
Definition: currentTasksAdminContent.h:232
std::list< DtCurrentTaskData > DtTaskList
Definition: currentTasksAdminContent.h:116
#define DT_DLL_vrftasks
This file is used to determine how to build.
Definition: vrftasksDefines.h:26
std::vector< UnparentedSubtask > UnparentedSubtasks
Definition: currentTasksAdminContent.h:247
virtual bool init()
Base class init does nothing, but this will be called by create, in case any other deriving class nee...
Admin content that is used to send the current tasks status from a specific entity.
Definition: currentTasksAdminContent.h:113
DtAdminContent.
Definition: adminContent.h:24
virtual const DtAdminContentMessageType & type() const =0
DtString controller
Definition: currentTasksAdminContent.h:35
DtSimTask is an abstract base class from which real tasks can derive.
Definition: simTask.h:31
std::list< DtCurrentTaskData > subtasks
Definition: currentTasksAdminContent.h:37
Definition: currentTasksAdminContent.h:238
virtual bool setToNet()
Sets netRep buffer to the contents of this set request.
Structure holding the current set information for one of the current scripted sets for an entity...
Definition: currentTasksAdminContent.h:51
DT_DLL_readerWriter const char * decode(DtString &val, const char *buffer)
Decodes a value from buffer and places the result in val of the type specified by val...
virtual DtString stringRep() const =0
Get a readable string representation of this content.
DtCurrentScriptedSetData(const DtCurrentScriptedSetData &orig)
Definition: currentTasksAdminContent.h:54
std::map< int, DtCurrentTaskData * > InternalTaskMap
Internal map that keeps track of tasks such that when adding a subtask it can be added efficiently...
Definition: currentTasksAdminContent.h:235
std::list< DtCurrentScriptedSetData > DtScriptedSetList
Definition: currentTasksAdminContent.h:117