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