VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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  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,
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:
129 };
130 
131 inline void DtModelSetEntry::setLabel(const DtString& s)
132 {
133  myLabel = s;
134 }
135 
137 {
138  return myLabel;
139 }
140 
142 {
143  myPlatform = s;
144 }
145 
147 {
148  return myPlatform;
149 }
150 
152 {
153  myMenuIcon = s;
154 }
155 
157 {
158  return myMenuIcon;
159 }
160 
162 {
163  myKeywords = s;
164 }
165 
167 {
168  return myKeywords;
169 }
170 
172 {
174 }
175 
177 {
178  return myDefaultOverlayLayer;
179 }
180 
182 {
183  myUniqueID = s;
184 }
185 
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 
202 {
203  myCanAggregate = b;
204 }
205 
206 inline bool DtModelSetEntry::canAggregate() const
207 {
208  return myCanAggregate;
209 }
210 
212 {
213  myObjectType = o;
214 }
215 
217 {
218  return myObjectType;
219 }
220 
222 {
223  myForces = f;
224 }
225 
226 inline const DtRwForces& DtModelSetEntry::forces() const
227 {
228  return myForces;
229 }
230 
232 {
233  return myForces;
234 }
235 
237 {
238  myCategories = c;
239 }
240 
242 {
243  return myCategories;
244 }
245 
247 {
248  myOnPalettes = c;
249 }
250 
252 {
253  return myOnPalettes;
254 }
255 
257 {
259 }
260 
262 {
263  return myDeployableCountries;
264 }
265 
267 {
269 }
270 
272 {
273  return myIncludeInBVSPCalcs;
274 }
275 
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)