VR-Forces 4.1 Class Documentation
currentTasksAdminContent.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2008 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 #pragma once
11 
12 #include "vrftasks/adminContent.h"
13 #include <vlutil/vlString.h>
15 #include <list>
16 #include <vector>
19 
20 class DtSimTask;
21 
25 {
27 
31  std::vector<DtSimTaskMessageType> conflictingTaskIds;
32 };
33 
34 #ifdef _MSC_VER
35 namespace DtBufferSerialize
36 {
37 #endif
38 
39 
41 
46  DT_DLL_vrftasks char *encode(const DtCurrentTaskData& val, char *buffer);
47 
51  DT_DLL_vrftasks const char *decode(DtCurrentTaskData& val, const char *buffer);
52 #ifdef _MSC_VER
53 }
54 #endif
55 
63 {
64 public:
65  typedef std::list<DtCurrentTaskData> DtTaskList;
66 
69 
72 
76 
78  virtual ~DtCurrentTasksAdminContent();
79 
81  static DtAdminContent* create();
82 
84  virtual bool init();
85 
87  virtual const DtAdminContentMessageType& type() const;
88 
91  virtual void addTaskToList(const DtSimTask* task, const std::vector<DtSimTaskMessageType>& conflictingTaskTypes);
93  virtual void clearTaskList();
94 
99  virtual const DtTaskList& taskList() const;
100 
104  virtual bool testTaskForConflict(const DtSimTaskMessageType& taskType) const;
105 
108  virtual DtAdminContent * clone() const;
109 
111  virtual DtString stringRep() const;
112 
114  virtual int netRepSize() const;
115 
117  virtual bool setFromNet(const char* contentBuffer,
118  unsigned contentSize);
119 
121  virtual bool setToNet();
122 
123 protected:
126  void internalClearTaskList();
127 
131  void copyTaskList(const DtTaskList& taskList);
132 
133 protected:
135 };

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)