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