VR-Forces 4.3.1 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 
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,
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:
117 };
118 
119 inline void DtModelSetEntry::setLabel(const DtString& s)
120 {
121  myLabel = s;
122 }
123 
125 {
126  return myLabel;
127 }
128 
130 {
131  myPlatform = s;
132 }
133 
135 {
136  return myPlatform;
137 }
138 
140 {
141  myMenuIcon = s;
142 }
143 
145 {
146  return myMenuIcon;
147 }
148 
150 {
151  myKeywords = s;
152 }
153 
155 {
156  return myKeywords;
157 }
158 
160 {
162 }
163 
165 {
166  return myDefaultOverlayLayer;
167 }
168 
170 {
171  myUniqueID = s;
172 }
173 
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 
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 
210 {
211  myForces = f;
212 }
213 
214 inline const DtRwForces& DtModelSetEntry::forces() const
215 {
216  return myForces;
217 }
218 
220 {
221  return myForces;
222 }
223 
225 {
226  myCategories = c;
227 }
228 
230 {
231  return myCategories;
232 }
233 
235 {
236  myOnPalettes = c;
237 }
238 
240 {
241  return myOnPalettes;
242 }
243 
245 {
247 }
248 
250 {
251  return myDeployableCountries;
252 }

Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)