VR-Forces 4.5 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
56
void
setIsRandomized(
bool
);
57
bool
isRandomized()
const
;
58
59
bool
canCreate()
const
;
60
void
setCanCreate(
bool
);
61
62
bool
canAggregate()
const
;
63
void
setCanAggregate(
bool
);
64
65
void
setObjectType(
const
DtObjectType
&);
66
DtObjectType
objectType()
const
;
67
68
DtString
menuIcon()
const
;
69
void
setMenuIcon(
const
DtString
&);
70
71
void
setKeywords(
const
DtString
&);
72
DtString
keywords()
const
;
73
76
void
setIncludeInBVSPCalcs(
bool
);
77
bool
includeInBVSPCalcs()
const
;
78
79
void
setForces(
const
DtRwForces
&);
80
const
DtRwForces
& forces()
const
;
81
DtRwForces
& forces();
82
83
void
setCategories(
const
DtRwNLengthStringVector
&);
84
const
DtRwNLengthStringVector
& categories()
const
;
85
86
void
addOnPalette(
const
DtString
&);
87
void
removeOnPalette(
const
DtString
&);
88
void
setOnlyOnPalette(
const
DtString
&);
89
90
void
setOnPalettes(
const
DtRwNLengthStringVector
&);
91
const
DtRwNLengthStringVector
& onPalettes()
const
;
92
93
void
setDefaultOverlayLayer(
const
DtString
&);
94
DtString
defaultOverlayLayer()
const
;
95
96
void
setDeployableCountries(
const
DtRwNLengthStringVector
&);
97
const
DtRwNLengthStringVector
& deployableCountries()
const
;
98
99
virtual
bool
operator==
(
const
DtModelSetEntry
&)
const
;
100
virtual
bool
operator!=
(
const
DtModelSetEntry
&)
const
;
101
102
virtual
void
getSelf
(DtlObjPtr args,
103
const
DtReaderWriter::SearchPaths
& searchPaths =
DtReaderWriter::SearchPaths
(),
104
const
DtVariableBindingsList
& variableBindings =
nullVariableReference
());
105
108
virtual
void
readFromEnvironment(
DtEnvironmentSP
, DtEnvValueSP objectNode);
109
111
virtual
void
writeToEnvironment(
DtEnvironmentSP
, DtEnvValueSP objectNode)
const
;
112
113
protected
:
114
DtRwBoolean
myCanCreate
;
115
DtRwBoolean
myCanAggregate
;
116
DtRwString
myLabel
;
117
DtRwString
myUniqueID
;
118
DtRwString
myKeywords
;
119
DtRwString
myMenuIcon
;
120
DtRwString
myDefaultOverlayLayer
;
121
DtRwObjectType
myObjectType
;
122
DtRwForces
myForces
;
123
DtRwNLengthStringVector
myOnPalettes
;
124
DtRwNLengthStringVector
myCategories
;
125
DtRwNLengthStringVector
myDeployableCountries
;
126
DtRwBoolean
myIncludeInBVSPCalcs
;
127
DtString
myPlatform
;
128
DtRwBoolean
myIsRandomized
;
129
};
130
131
inline
void
DtModelSetEntry::setLabel
(
const
DtString
& s)
132
{
133
myLabel
= s;
134
}
135
136
inline
DtString
DtModelSetEntry::label
()
const
137
{
138
return
myLabel
;
139
}
140
141
inline
void
DtModelSetEntry::setPlatform
(
const
DtString
& s)
142
{
143
myPlatform
= s;
144
}
145
146
inline
DtString
DtModelSetEntry::platform
()
const
147
{
148
return
myPlatform
;
149
}
150
151
inline
void
DtModelSetEntry::setMenuIcon
(
const
DtString
& s)
152
{
153
myMenuIcon
= s;
154
}
155
156
inline
DtString
DtModelSetEntry::menuIcon
()
const
157
{
158
return
myMenuIcon
;
159
}
160
161
inline
void
DtModelSetEntry::setKeywords
(
const
DtString
& s)
162
{
163
myKeywords
= s;
164
}
165
166
inline
DtString
DtModelSetEntry::keywords
()
const
167
{
168
return
myKeywords
;
169
}
170
171
inline
void
DtModelSetEntry::setDefaultOverlayLayer
(
const
DtString
& s)
172
{
173
myDefaultOverlayLayer
= s;
174
}
175
176
inline
DtString
DtModelSetEntry::defaultOverlayLayer
()
const
177
{
178
return
myDefaultOverlayLayer
;
179
}
180
181
inline
void
DtModelSetEntry::setUniqueID
(
const
DtString
& s)
182
{
183
myUniqueID
= s;
184
}
185
186
inline
DtString
DtModelSetEntry::uniqueID
()
const
187
{
188
return
myUniqueID
;
189
}
190
191
inline
void
DtModelSetEntry::setCanCreate
(
bool
b)
192
{
193
myCanCreate
= b;
194
}
195
196
inline
bool
DtModelSetEntry::canCreate
()
const
197
{
198
return
myCanCreate
;
199
}
200
201
inline
void
DtModelSetEntry::setCanAggregate
(
bool
b)
202
{
203
myCanAggregate
= b;
204
}
205
206
inline
bool
DtModelSetEntry::canAggregate
()
const
207
{
208
return
myCanAggregate
;
209
}
210
211
inline
void
DtModelSetEntry::setObjectType
(
const
DtObjectType
& o)
212
{
213
myObjectType
= o;
214
}
215
216
inline
DtObjectType
DtModelSetEntry::objectType
()
const
217
{
218
return
myObjectType
;
219
}
220
221
inline
void
DtModelSetEntry::setForces
(
const
DtRwForces
& f)
222
{
223
myForces
= f;
224
}
225
226
inline
const
DtRwForces
&
DtModelSetEntry::forces
()
const
227
{
228
return
myForces
;
229
}
230
231
inline
DtRwForces
&
DtModelSetEntry::forces
()
232
{
233
return
myForces
;
234
}
235
236
inline
void
DtModelSetEntry::setCategories
(
const
DtRwNLengthStringVector
& c)
237
{
238
myCategories
= c;
239
}
240
241
inline
const
DtRwNLengthStringVector
&
DtModelSetEntry::categories
()
const
242
{
243
return
myCategories
;
244
}
245
246
inline
void
DtModelSetEntry::setOnPalettes
(
const
DtRwNLengthStringVector
& c)
247
{
248
myOnPalettes
= c;
249
}
250
251
inline
const
DtRwNLengthStringVector
&
DtModelSetEntry::onPalettes
()
const
252
{
253
return
myOnPalettes
;
254
}
255
256
inline
void
DtModelSetEntry::setDeployableCountries
(
const
DtRwNLengthStringVector
& c)
257
{
258
myDeployableCountries
= c;
259
}
260
261
inline
const
DtRwNLengthStringVector
&
DtModelSetEntry::deployableCountries
()
const
262
{
263
return
myDeployableCountries
;
264
}
265
266
inline
void
DtModelSetEntry::setIncludeInBVSPCalcs
(
bool
b)
267
{
268
myIncludeInBVSPCalcs
= b;
269
}
270
271
inline
bool
DtModelSetEntry::includeInBVSPCalcs
()
const
272
{
273
return
myIncludeInBVSPCalcs
;
274
}
275
276
inline
void
DtModelSetEntry::setIsRandomized
(
bool
b)
277
{
278
myIsRandomized
= b;
279
}
280
281
inline
bool
DtModelSetEntry::isRandomized
()
const
282
{
283
return
myIsRandomized
;
284
}
Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (
www.mak.com
)