VR-Forces 4.2 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
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/rdrWritr.h
"
10
#include "
vrfutil/rwObjType.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
uniqueID()
const
;
49
void
setUniqueID(
const
DtString
&);
50
51
bool
canCreate()
const
;
52
void
setCanCreate(
bool
);
53
54
bool
onOverlayPalette()
const
;
55
void
setOnOverlayPalette(
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
setDeployableCountries(
const
DtRwNLengthStringVector
&);
77
const
DtRwNLengthStringVector
& deployableCountries()
const
;
78
79
virtual
bool
operator==
(
const
DtModelSetEntry
&)
const
;
80
virtual
bool
operator!=
(
const
DtModelSetEntry
&)
const
;
81
84
virtual
void
readFromEnvironment(
DtEnvironmentSP
, DtEnvValueSP objectNode);
85
87
virtual
void
writeToEnvironment(
DtEnvironmentSP
, DtEnvValueSP objectNode)
const
;
88
89
protected
:
90
DtRwBoolean
myCanCreate
;
91
DtRwBoolean
myCanAggregate
;
92
DtRwBoolean
myOnOverlayPalette
;
93
DtRwString
myLabel
;
94
DtRwString
myUniqueID
;
95
DtRwString
myKeywords
;
96
DtRwString
myMenuIcon
;
97
DtRwObjectType
myObjectType
;
98
DtRwForces
myForces
;
99
DtRwNLengthStringVector
myCategories
;
100
DtRwNLengthStringVector
myDeployableCountries
;
101
};
102
103
inline
void
DtModelSetEntry::setLabel
(
const
DtString
& s)
104
{
105
myLabel
= s;
106
}
107
108
inline
DtString
DtModelSetEntry::label
()
const
109
{
110
return
myLabel
;
111
}
112
113
inline
void
DtModelSetEntry::setMenuIcon
(
const
DtString
& s)
114
{
115
myMenuIcon
= s;
116
}
117
118
inline
DtString
DtModelSetEntry::menuIcon
()
const
119
{
120
return
myMenuIcon
;
121
}
122
123
inline
void
DtModelSetEntry::setKeywords
(
const
DtString
& s)
124
{
125
myKeywords
= s;
126
}
127
128
inline
DtString
DtModelSetEntry::keywords
()
const
129
{
130
return
myKeywords
;
131
}
132
133
inline
void
DtModelSetEntry::setUniqueID
(
const
DtString
& s)
134
{
135
myUniqueID
= s;
136
}
137
138
inline
DtString
DtModelSetEntry::uniqueID
()
const
139
{
140
return
myUniqueID
;
141
}
142
143
inline
void
DtModelSetEntry::setCanCreate
(
bool
b)
144
{
145
myCanCreate
= b;
146
}
147
148
inline
bool
DtModelSetEntry::canCreate
()
const
149
{
150
return
myCanCreate
;
151
}
152
153
inline
void
DtModelSetEntry::setCanAggregate
(
bool
b)
154
{
155
myCanAggregate
= b;
156
}
157
158
inline
bool
DtModelSetEntry::canAggregate
()
const
159
{
160
return
myCanAggregate
;
161
}
162
163
inline
void
DtModelSetEntry::setOnOverlayPalette
(
bool
b)
164
{
165
myOnOverlayPalette
= b;
166
}
167
168
inline
bool
DtModelSetEntry::onOverlayPalette
()
const
169
{
170
return
myOnOverlayPalette
;
171
}
172
173
inline
void
DtModelSetEntry::setObjectType
(
const
DtObjectType& o)
174
{
175
myObjectType
= o;
176
}
177
178
inline
DtObjectType
DtModelSetEntry::objectType
()
const
179
{
180
return
myObjectType
;
181
}
182
183
inline
void
DtModelSetEntry::setForces
(
const
DtRwForces
& f)
184
{
185
myForces
= f;
186
}
187
188
inline
const
DtRwForces
&
DtModelSetEntry::forces
()
const
189
{
190
return
myForces
;
191
}
192
193
inline
DtRwForces
&
DtModelSetEntry::forces
()
194
{
195
return
myForces
;
196
}
197
198
inline
void
DtModelSetEntry::setCategories
(
const
DtRwNLengthStringVector
& c)
199
{
200
myCategories
= c;
201
}
202
203
inline
const
DtRwNLengthStringVector
&
DtModelSetEntry::categories
()
const
204
{
205
return
myCategories
;
206
}
207
208
inline
void
DtModelSetEntry::setDeployableCountries
(
const
DtRwNLengthStringVector
& c)
209
{
210
myDeployableCountries
= c;
211
}
212
213
inline
const
DtRwNLengthStringVector
&
DtModelSetEntry::deployableCountries
()
const
214
{
215
return
myDeployableCountries
;
216
}
Document ID: Generated on Sun Nov 24 19:49:21 EST 2013 from SVN revision 133924
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)