VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrftasks
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>
14
#include "
vrftasks/vrftasksDefines.h
"
15
#include <list>
16
#include <vector>
17
#include "
vrfutil/bufferSerialize.h
"
18
#include <
vrftasks/vrfObjectMessageType.h
>
19
20
class
DtSimTask
;
21
24
struct
DT_DLL_vrftasks
DtCurrentTaskData
25
{
26
DtCurrentTaskData
() {
task
= 0;}
27
29
DtSimTask
*
task
;
31
std::vector<DtSimTaskMessageType>
conflictingTaskIds
;
32
};
33
34
#ifdef _MSC_VER
35
namespace
DtBufferSerialize
36
{
37
#endif
38
39
40
DT_DLL_vrftasks
int
getSize
(
const
DtCurrentTaskData
& val);
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
62
class
DT_DLL_vrftasks
DtCurrentTasksAdminContent
:
public
DtAdminContent
63
{
64
public
:
65
typedef
std::list<DtCurrentTaskData>
DtTaskList
;
66
68
DtCurrentTasksAdminContent
();
69
71
DtCurrentTasksAdminContent
(
const
DtCurrentTasksAdminContent
& orig);
72
74
const
DtCurrentTasksAdminContent
&
operator=
(
const
75
DtCurrentTasksAdminContent
& orig);
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
:
134
DtTaskList
myTaskList
;
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
)