VR-Forces Development_Version Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
vrfobjparam
modelSetEntry.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2013 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
6
#pragma once
7
8
#include <vlutil/vlString.h>
9
#include "
vrfutil/readerWriter.h
"
10
#include "
vrfutil/rwObjectType.h
"
11
#include "
vrfutil/rwBoolean.h
"
12
#include "
vrfutil/rwString.h
"
13
#include "
vrfutil/rwForces.h
"
14
#include "
vrfutil/rwNLengthStringVector.h
"
15
#include "
vrfobjparam/vrfobjparamDefines.h
"
16
#include "mtl/envValue.h"
17
#include "
vrfXmlTypes.h
"
18
22
class
DT_DLL_vrfobjparam
DtModelSetEntry
:
public
DtReaderWriter
23
{
24
public
:
26
DtModelSetEntry
();
27
29
DtModelSetEntry
(
const
DtString
& name,
DtReaderWriterRegistry
*
const
parentRegistry = NULL);
30
32
DtModelSetEntry
(
const
DtModelSetEntry
& orig,
DtReaderWriterRegistry
*
const
parentRegistry = NULL);
33
35
DtModelSetEntry
&
operator=
(
const
DtModelSetEntry
& orig);
36
37
virtual
~
DtModelSetEntry
();
38
39
virtual
DtModelSetEntry
* clone();
40
41
virtual
const
char
*
readerWriterType
();
42
43
static
DtModelSetEntry
* create(
const
DtString
& name,
DtReaderWriterRegistry
*
const
parentRegistry = NULL);
44
45
DtString
label()
const
;
46
void
setLabel(
const
DtString
&);
47
48
DtString
platform()
const
;
49
void
setPlatform(
const
DtString
&);
50
51
DtString
uniqueID()
const
;
52
void
setUniqueID(
const
DtString
&);
53
54
bool
canCreate()
const
;
55
void
setCanCreate(
bool
);
56
57
bool
canAggregate()
const
;
58
void
setCanAggregate(
bool
);
59
60
void
setObjectType(
const
DtObjectType
&);
61
DtObjectType
objectType()
const
;
62
63
DtString
menuIcon()
const
;
64
void
setMenuIcon(
const
DtString
&);
65
66
void
setKeywords(
const
DtString
&);
67
DtString
keywords()
const
;
68
71
void
setIncludeInBVSPCalcs(
bool
);
72
bool
includeInBVSPCalcs()
const
;
73
74
void
setForces(
const
DtRwForces
&);
75
const
DtRwForces
& forces()
const
;
76
DtRwForces
& forces();
77
78
void
setCategories(
const
DtRwNLengthStringVector
&);
79
const
DtRwNLengthStringVector
& categories()
const
;
80
81
void
addOnPalette(
const
DtString
&);
82
void
removeOnPalette(
const
DtString
&);
83
void
setOnlyOnPalette(
const
DtString
&);
84
85
void
setOnPalettes(
const
DtRwNLengthStringVector
&);
86
const
DtRwNLengthStringVector
& onPalettes()
const
;
87
88
void
setDefaultOverlayLayer(
const
DtString
&);
89
DtString
defaultOverlayLayer()
const
;
90
91
void
setDeployableCountries(
const
DtRwNLengthStringVector
&);
92
const
DtRwNLengthStringVector
& deployableCountries()
const
;
93
94
virtual
bool
operator==
(
const
DtModelSetEntry
&)
const
;
95
virtual
bool
operator!=
(
const
DtModelSetEntry
&)
const
;
96
97
virtual
void
getSelf
(DtlObjPtr args,
98
const
DtReaderWriter::SearchPaths
& searchPaths =
DtReaderWriter::SearchPaths
(),
99
const
DtVariableBindingsList
& variableBindings =
nullVariableReference
());
100
103
virtual
void
readFromEnvironment(
DtEnvironmentSP
, DtEnvValueSP objectNode);
104
106
virtual
void
writeToEnvironment(
DtEnvironmentSP
, DtEnvValueSP objectNode)
const
;
107
108
protected
:
109
DtRwBoolean
myCanCreate
;
110
DtRwBoolean
myCanAggregate
;
111
DtRwString
myLabel
;
112
DtRwString
myUniqueID
;
113
DtRwString
myKeywords
;
114
DtRwString
myMenuIcon
;
115
DtRwString
myDefaultOverlayLayer
;
116
DtRwObjectType
myObjectType
;
117
DtRwForces
myForces
;
118
DtRwNLengthStringVector
myOnPalettes
;
119
DtRwNLengthStringVector
myCategories
;
120
DtRwNLengthStringVector
myDeployableCountries
;
121
DtRwBoolean
myIncludeInBVSPCalcs
;
122
DtString
myPlatform
;
123
};
124
125
inline
void
DtModelSetEntry::setLabel
(
const
DtString
& s)
126
{
127
myLabel
= s;
128
}
129
130
inline
DtString
DtModelSetEntry::label
()
const
131
{
132
return
myLabel
;
133
}
134
135
inline
void
DtModelSetEntry::setPlatform
(
const
DtString
& s)
136
{
137
myPlatform
= s;
138
}
139
140
inline
DtString
DtModelSetEntry::platform
()
const
141
{
142
return
myPlatform
;
143
}
144
145
inline
void
DtModelSetEntry::setMenuIcon
(
const
DtString
& s)
146
{
147
myMenuIcon
= s;
148
}
149
150
inline
DtString
DtModelSetEntry::menuIcon
()
const
151
{
152
return
myMenuIcon
;
153
}
154
155
inline
void
DtModelSetEntry::setKeywords
(
const
DtString
& s)
156
{
157
myKeywords
= s;
158
}
159
160
inline
DtString
DtModelSetEntry::keywords
()
const
161
{
162
return
myKeywords
;
163
}
164
165
inline
void
DtModelSetEntry::setDefaultOverlayLayer
(
const
DtString
& s)
166
{
167
myDefaultOverlayLayer
= s;
168
}
169
170
inline
DtString
DtModelSetEntry::defaultOverlayLayer
()
const
171
{
172
return
myDefaultOverlayLayer
;
173
}
174
175
inline
void
DtModelSetEntry::setUniqueID
(
const
DtString
& s)
176
{
177
myUniqueID
= s;
178
}
179
180
inline
DtString
DtModelSetEntry::uniqueID
()
const
181
{
182
return
myUniqueID
;
183
}
184
185
inline
void
DtModelSetEntry::setCanCreate
(
bool
b)
186
{
187
myCanCreate
= b;
188
}
189
190
inline
bool
DtModelSetEntry::canCreate
()
const
191
{
192
return
myCanCreate
;
193
}
194
195
inline
void
DtModelSetEntry::setCanAggregate
(
bool
b)
196
{
197
myCanAggregate
= b;
198
}
199
200
inline
bool
DtModelSetEntry::canAggregate
()
const
201
{
202
return
myCanAggregate
;
203
}
204
205
inline
void
DtModelSetEntry::setObjectType
(
const
DtObjectType
& o)
206
{
207
myObjectType
= o;
208
}
209
210
inline
DtObjectType
DtModelSetEntry::objectType
()
const
211
{
212
return
myObjectType
;
213
}
214
215
inline
void
DtModelSetEntry::setForces
(
const
DtRwForces
& f)
216
{
217
myForces
= f;
218
}
219
220
inline
const
DtRwForces
&
DtModelSetEntry::forces
()
const
221
{
222
return
myForces
;
223
}
224
225
inline
DtRwForces
&
DtModelSetEntry::forces
()
226
{
227
return
myForces
;
228
}
229
230
inline
void
DtModelSetEntry::setCategories
(
const
DtRwNLengthStringVector
& c)
231
{
232
myCategories
= c;
233
}
234
235
inline
const
DtRwNLengthStringVector
&
DtModelSetEntry::categories
()
const
236
{
237
return
myCategories
;
238
}
239
240
inline
void
DtModelSetEntry::setOnPalettes
(
const
DtRwNLengthStringVector
& c)
241
{
242
myOnPalettes
= c;
243
}
244
245
inline
const
DtRwNLengthStringVector
&
DtModelSetEntry::onPalettes
()
const
246
{
247
return
myOnPalettes
;
248
}
249
250
inline
void
DtModelSetEntry::setDeployableCountries
(
const
DtRwNLengthStringVector
& c)
251
{
252
myDeployableCountries
= c;
253
}
254
255
inline
const
DtRwNLengthStringVector
&
DtModelSetEntry::deployableCountries
()
const
256
{
257
return
myDeployableCountries
;
258
}
259
260
inline
void
DtModelSetEntry::setIncludeInBVSPCalcs
(
bool
b)
261
{
262
myIncludeInBVSPCalcs
= b;
263
}
264
265
inline
bool
DtModelSetEntry::includeInBVSPCalcs
()
const
266
{
267
return
myIncludeInBVSPCalcs
;
268
}
Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (
www.mak.com
)