VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
vrfObjectDataState.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 
10 
11 #pragma once
12 
13 #include <vrfGuiCore/vrfGuiCore.h>
15 
16 #include <vrvCore/DtSimState.h>
17 #include <vrvCore/DtStateView.h>
20 #include <vrvUtil/DtMessage.h>
22 #include <vlutil/vlString.h>
23 #include <matrix/vlVector.h>
25 #include <vector>
26 #include <string>
27 
28 namespace makVrv
29 {
30  class DtMessage;
31 }
32 
33 namespace makVrf
34 {
37  {
38  public:
42 
45 
46  bool operator==(const DtVrfNetworkUpdateObjectDataState& rhs) const;
47 
49  {
50  return !(*this == rhs);
51  }
52 
53  public:
54  typedef std::map<std::string, std::string> ExtendedData;
55 
56  std::string myObjectLabel;
57  std::string myEchelonIdString;
58  std::string myOverlayParent;
59  std::string myUUID;
60  std::string myEntityType;
67  bool myHasPlan;
70  std::string myRulesOfEngagement;
73  std::vector<DtRangeItem> myRangeItems;
74  std::string myStatePropertiesName;
75  std::string myDIGuyAnimation;
76  std::string myDIGuyHandItem;
77  std::string myDIGuyHead;
78 
82  };
83 
88  {
89 
90  public:
91 
95 
97  virtual ~DtVrfObjectDataState();
98 
99  DtVrfObjectDataState& operator=(const DtVrfObjectDataState&);
101  bool operator==(const DtVrfObjectDataState&) const;
102  bool operator!=(const DtVrfObjectDataState& rhs) const
103  {
104  return !(*this == rhs);
105  }
106 
107  public:
110  };
111 
114 
117 
120 
123 
124  DT_DLL_VRFGUICORE makVrv::DtMessage& operator<<( makVrv::DtMessage& msg, const DtNetU32& state );
126 
127  DT_DLL_VRFGUICORE makVrv::DtMessage& operator<<( makVrv::DtMessage& msg, const DtNetInt32& state );
129 
130  DT_DLL_VRFGUICORE makVrv::DtMessage& operator<<( makVrv::DtMessage& msg, const DtNetFloat32& state );
131  DT_DLL_VRFGUICORE makVrv::DtMessage& operator>>( makVrv::DtMessage& msg, DtNetFloat32& state );
132 
133  DT_DLL_VRFGUICORE makVrv::DtMessage& operator<<( makVrv::DtMessage& msg, const DtNet64Vector& state );
134  DT_DLL_VRFGUICORE makVrv::DtMessage& operator>>( makVrv::DtMessage& msg, DtNet64Vector& state );
135 
136  template <typename T> makVrv::DtMessage& operator << (makVrv::DtMessage& msg, const std::vector<T>& t)
137  {
138  msg << t.size();
139 
140  typename std::vector<T>::const_iterator iter = t.begin();
141 
142  while (iter != t.end())
143  {
144  msg << (*iter);
145  ++iter;
146  }
147 
148  return msg;
149  }
150 
151  template <typename K, typename V> makVrv::DtMessage& operator << (makVrv::DtMessage& msg, const std::map<K, V>& t)
152  {
153  msg << t.size();
154 
155  typename std::map<K, V>::const_iterator iter = t.begin();
156 
157  while (iter != t.end())
158  {
159  msg << iter->first;
160  msg << iter->second;
161  ++iter;
162  }
163 
164  return msg;
165  }
166 
167  template <typename T> makVrv::DtMessage& operator >> (makVrv::DtMessage& msg, std::vector<T>& t)
168  {
169  size_t iLimit;
170  size_t i;
171  msg >> iLimit;
172 
173  for (i = 0; i < iLimit; i++)
174  {
175  T item;
176 
177  msg >> item;
178  t.push_back(item);
179  }
180 
181  return msg;
182  }
183 
184  template <typename K, typename V> makVrv::DtMessage& operator >> (makVrv::DtMessage& msg, std::map<K, V>& t)
185  {
186  size_t iLimit;
187  size_t i;
188  msg >> iLimit;
189 
190  for (i = 0; i < iLimit; i++)
191  {
192  K key;
193  V value;
194 
195  msg >> key;
196  msg >> value;
197  t[key] = value;
198  }
199 
200  return msg;
201  }
202 
205 
208 
212  {
213  public:
215  makVrv::DtStateViewCollection<DtVrfObjectDataState>(de, makVrv::DtSimEntryUpdater::NoUpdates)
216  {
217  }
218  };
219 }
bool myVrfSimulated
Definition: vrfObjectDataState.h:66
bool operator!=(const DtVrfObjectDataState &rhs) const
Definition: vrfObjectDataState.h:102
std::string myDIGuyHandItem
Definition: vrfObjectDataState.h:76
std::string myEntityType
Definition: vrfObjectDataState.h:60
Contains makVrv::DtStateViewCollection class.
The IGI Message. Is easily encoded and decoding using stream operators. It also provides validation d...
Definition: DtMessage.h:30
A DtSimObjectEntryCollection is a collection of DtSimObjectEntry&#39;s that have a specific state...
Definition: DtSimObjectEntryCollection.h:25
DtVrfObjectDataStateViewCollection(makVrv::DtDe &de)
Definition: vrfObjectDataState.h:214
Contains DtSimObjectEntryCollection class.
bool myStatePropertiesUpdated
Definition: vrfObjectDataState.h:109
std::vector< DtRangeItem > myRangeItems
Definition: vrfObjectDataState.h:73
DT_DLL_VRFGUICORE bool operator==(const std::vector< makArchives::DtEnvironmentRecord::DtElevationalConfigurationRecord > &lhs, const std::vector< makArchives::DtEnvironmentRecord::DtElevationalConfigurationRecord > &rhs)
Contains makVrv::DtStateView class.
The class that is the interface between the GUI and the back-end.
Definition: vrfObjectDataState.h:36
std::map< std::string, std::string > ExtendedData
Definition: vrfObjectDataState.h:54
std::string myObjectLabel
Definition: vrfObjectDataState.h:56
std::string myStatePropertiesName
Definition: vrfObjectDataState.h:74
#define DT_DLL_VRFGUICORE
Contains DLL export macros.
Definition: vrfGuiCore.h:25
bool myExecutingPlan
Definition: vrfObjectDataState.h:68
std::string myDIGuyHead
Definition: vrfObjectDataState.h:77
std::string myDIGuyAnimation
Definition: vrfObjectDataState.h:75
Definition: rangeItem.h:149
DtVector myBoundingVolumeOffset
Definition: vrfObjectDataState.h:72
bool myIndependentlyTasked
Definition: vrfObjectDataState.h:64
bool myIsSubordinateOfForce
Definition: vrfObjectDataState.h:63
bool myUnderFire
Definition: vrfObjectDataState.h:65
bool operator!=(const DtVrfNetworkUpdateObjectDataState &rhs) const
Definition: vrfObjectDataState.h:48
A DtStateViewCollection is a collection of DtStateViews of a specific state.
Definition: DtStateViewCollection.h:27
std::string myEchelonIdString
Definition: vrfObjectDataState.h:57
makVrv::DtSimObjectEntryCollection< DtVrfNetworkUpdateObjectDataState > DtVrfObjectDataStateCollection
Create a DtSimObjectEntryCollection templated on DtVrfNetworkUpdateObjectDataState.
Definition: vrfObjectDataState.h:207
Collection of VRF Object specific state data. Use this state view to get information such as labels...
Definition: vrfObjectDataState.h:211
bool myHasPlan
Definition: vrfObjectDataState.h:67
std::string myRulesOfEngagement
Definition: vrfObjectDataState.h:70
ExtendedData myExtendedData
Definition: vrfObjectDataState.h:61
double myLastTimePropertiesCached
Definition: vrfObjectDataState.h:81
makVrv::DtStateView< DtVrfObjectDataState > DtVrfObjectDataStateView
Create a DtStateView templated on DtVrfNetworkUpdateObjectDataState.
Definition: vrfObjectDataState.h:204
DtVector myBoundingVolume
Definition: vrfObjectDataState.h:71
size_t size() const
Get the current size of the message in bytes.
DtRwProperties * myPropertiesToCopy
This will be merged into the myStateProperties and must be deleted after merge.
Definition: vrfObjectDataState.h:80
DtRwProperties myStateProperties
Definition: vrfObjectDataState.h:108
DT_DLL_VRFGUICORE makVrv::DtMessage & operator<<(makVrv::DtMessage &msg, const DtVrlinkSimulatedAggregateState &state)
Encode a DtVrlinkSimulatedEnvironmentState into a DtMessage.
A DtSimState is the base class for all state objects. Derived instances of DtSimState will be created...
Definition: DtSimState.h:19
A list of properties. A DtPropertyInterface object that is a specialized version of DtRwVariableBindi...
Definition: rwProperties.h:126
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:70
std::string myUUID
Definition: vrfObjectDataState.h:59
Contains makVrv::DtSimState class.
std::string myOverlayParent
Definition: vrfObjectDataState.h:58
int myVrfSessionId
Definition: vrfObjectDataState.h:62
bool myIsCurrentlyTasked
Definition: vrfObjectDataState.h:69
DT_DLL_VRFGUICORE makVrv::DtMessage & operator>>(makVrv::DtMessage &msg, DtVrlinkSimulatedAggregateState &state)
Decode a DtVrlinkSimulatedEnvironmentState from a DtMessage.
Definition: vrfObjectDataState.h:87

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)