VR-Forces 4.2 Class Documentation
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"
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 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:
101 };
102 
103 inline void DtModelSetEntry::setLabel(const DtString& s)
104 {
105  myLabel = s;
106 }
107 
109 {
110  return myLabel;
111 }
112 
114 {
115  myMenuIcon = s;
116 }
117 
119 {
120  return myMenuIcon;
121 }
122 
124 {
125  myKeywords = s;
126 }
127 
129 {
130  return myKeywords;
131 }
132 
134 {
135  myUniqueID = s;
136 }
137 
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 
154 {
155  myCanAggregate = b;
156 }
157 
158 inline bool DtModelSetEntry::canAggregate() const
159 {
160  return myCanAggregate;
161 }
162 
164 {
165  myOnOverlayPalette = b;
166 }
167 
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 
184 {
185  myForces = f;
186 }
187 
188 inline const DtRwForces& DtModelSetEntry::forces() const
189 {
190  return myForces;
191 }
192 
194 {
195  return myForces;
196 }
197 
199 {
200  myCategories = c;
201 }
202 
204 {
205  return myCategories;
206 }
207 
209 {
211 }
212 
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)