VR-Forces 4.6.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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"
16 #include "mtl/envValue.h"
17 #include "vrfXmlTypes.h"
18 
23 {
24 public:
27 
29  DtModelSetEntry(const DtString& name, DtReaderWriterRegistry* const parentRegistry = NULL);
30 
32  DtModelSetEntry(const DtModelSetEntry& orig, DtReaderWriterRegistry* const parentRegistry = NULL);
33 
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,
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:
136 
138 };
139 
140 inline void DtModelSetEntry::setLabel(const DtString& s)
141 {
142  myLabel = s;
143 }
144 
146 {
147  return myLabel;
148 }
149 
151 {
152  myPlatform = s;
153 }
154 
156 {
157  return myPlatform;
158 }
159 
161 {
162  myMenuIcon = s;
163 }
164 
166 {
167  return myMenuIcon;
168 }
169 
171 {
172  myKeywords = s;
173 }
174 
176 {
177  return myKeywords;
178 }
179 
181 {
183 }
184 
186 {
187  return myDefaultOverlayLayer;
188 }
189 
191 {
192  myUniqueID = s;
193 }
194 
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 
211 {
212  myCanAggregate = b;
213 }
214 
215 inline bool DtModelSetEntry::canAggregate() const
216 {
217  return myCanAggregate;
218 }
219 
221 {
222  myObjectType = o;
223 }
224 
226 {
227  return myObjectType;
228 }
229 
231 {
232  myMatchType = o;
233 }
234 
236 {
237  return myMatchType;
238 }
239 
241 {
242  myForces = f;
243 }
244 
245 inline const DtRwForces& DtModelSetEntry::forces() const
246 {
247  return myForces;
248 }
249 
251 {
252  return myForces;
253 }
254 
256 {
257  myCategories = c;
258 }
259 
261 {
262  return myCategories;
263 }
264 
266 {
267  myOnPalettes = c;
268 }
269 
271 {
272  return myOnPalettes;
273 }
274 
276 {
278 }
279 
281 {
282  return myDeployableCountries;
283 }
284 
286 {
288 }
289 
291 {
292  return myIncludeInBVSPCalcs;
293 }
294 
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)