VR-Forces Development_Version 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 
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 
71  void setIncludeInBVSPCalcs(bool);
72  bool includeInBVSPCalcs() const;
73 
74  void setForces(const DtRwForces&);
75  const DtRwForces& forces() const;
76  DtRwForces& forces();
77 
78  void setCategories(const DtRwNLengthStringVector&);
79  const DtRwNLengthStringVector& categories() const;
80 
81  void addOnPalette(const DtString&);
82  void removeOnPalette(const DtString&);
83  void setOnlyOnPalette(const DtString&);
84 
85  void setOnPalettes(const DtRwNLengthStringVector&);
86  const DtRwNLengthStringVector& onPalettes() const;
87 
88  void setDefaultOverlayLayer(const DtString&);
89  DtString defaultOverlayLayer() const;
90 
91  void setDeployableCountries(const DtRwNLengthStringVector&);
92  const DtRwNLengthStringVector& deployableCountries() const;
93 
94  virtual bool operator==(const DtModelSetEntry&) const;
95  virtual bool operator!=(const DtModelSetEntry&) const;
96 
97  virtual void getSelf(DtlObjPtr args,
99  const DtVariableBindingsList& variableBindings = nullVariableReference());
100 
103  virtual void readFromEnvironment(DtEnvironmentSP, DtEnvValueSP objectNode);
104 
106  virtual void writeToEnvironment(DtEnvironmentSP, DtEnvValueSP objectNode) const;
107 
108 protected:
123 };
124 
125 inline void DtModelSetEntry::setLabel(const DtString& s)
126 {
127  myLabel = s;
128 }
129 
131 {
132  return myLabel;
133 }
134 
136 {
137  myPlatform = s;
138 }
139 
141 {
142  return myPlatform;
143 }
144 
146 {
147  myMenuIcon = s;
148 }
149 
151 {
152  return myMenuIcon;
153 }
154 
156 {
157  myKeywords = s;
158 }
159 
161 {
162  return myKeywords;
163 }
164 
166 {
168 }
169 
171 {
172  return myDefaultOverlayLayer;
173 }
174 
176 {
177  myUniqueID = s;
178 }
179 
181 {
182  return myUniqueID;
183 }
184 
185 inline void DtModelSetEntry::setCanCreate(bool b)
186 {
187  myCanCreate = b;
188 }
189 
190 inline bool DtModelSetEntry::canCreate() const
191 {
192  return myCanCreate;
193 }
194 
196 {
197  myCanAggregate = b;
198 }
199 
200 inline bool DtModelSetEntry::canAggregate() const
201 {
202  return myCanAggregate;
203 }
204 
206 {
207  myObjectType = o;
208 }
209 
211 {
212  return myObjectType;
213 }
214 
216 {
217  myForces = f;
218 }
219 
220 inline const DtRwForces& DtModelSetEntry::forces() const
221 {
222  return myForces;
223 }
224 
226 {
227  return myForces;
228 }
229 
231 {
232  myCategories = c;
233 }
234 
236 {
237  return myCategories;
238 }
239 
241 {
242  myOnPalettes = c;
243 }
244 
246 {
247  return myOnPalettes;
248 }
249 
251 {
253 }
254 
256 {
257  return myDeployableCountries;
258 }
259 
261 {
263 }
264 
266 {
267  return myIncludeInBVSPCalcs;
268 }

Document ID: Generated on Mon Jul 4 01:00:18 EDT 2016 from SVN revision 166489
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)