VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
externalDataState.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2017 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
12 
13 #pragma once
14 
15 #include <vrfGuiCore/vrfGuiCore.h>
17 #include <vrvCore/DtEntityState.h>
18 #include <vrvUtil/DtMessage.h>
20 
21 namespace makVrf
22 {
26  {
27  public:
28 
32 
34  virtual ~DtExternalDataState();
35 
37  {
38  return myDictionary;
39  }
40 
42  {
43  return myDictionary;
44  }
45 
46  virtual std::string dataHandlerType() const = 0;
47  virtual std::string visualHandlerType() const = 0;
48 
49  bool operator==(const DtExternalDataState&) const;
50 
51  public:
53  };
54 
57 
60 
61  template <typename T>
62  makVrv::DtMessage& operator>>( makVrv::DtMessage& msg, std::set<T>& state )
63  {
64  int size;
65  msg >> size;
66 
67  int i;
68 
69  for (i = 0; i < size; i++)
70  {
71  T t;
72  msg >> t;
73 
74  state.insert(t);
75  }
76 
77  return msg;
78  }
79 
80  template <typename T>
81  makVrv::DtMessage& operator<<( makVrv::DtMessage& msg, const std::set<T>& state )
82  {
83  int size = state.size();
84  msg << size;
85 
86  typename std::set<T>::const_iterator iter = state.begin();
87  while (iter != state.end())
88  {
89  msg << *iter;
90  ++iter;
91  }
92 
93  return msg;
94  }
95 
99  {
100  public:
102  makVrv::DtStateViewCollection<DtExternalDataState>(de, makVrv::DtSimEntryUpdater::AnyUpdates)
103  {
104  }
105  };
106 }
DtSimpleTypedDictionary myDictionary
Definition: externalDataState.h:52
Contains makVrv::DtStateViewCollection class.
The IGI Message. Is easily encoded and decoding using stream operators. It also provides validation d...
Definition: DtMessage.h:30
General dictionary of values that state can subclass from to hold information that is considered &quot;ext...
Definition: externalDataState.h:25
DtExternalDataStateViewCollection(makVrv::DtDe &de)
Definition: externalDataState.h:101
DT_DLL_VRFGUICORE bool operator==(const std::vector< makArchives::DtEnvironmentRecord::DtElevationalConfigurationRecord > &lhs, const std::vector< makArchives::DtEnvironmentRecord::DtElevationalConfigurationRecord > &rhs)
voidpf void uLong size
Definition: ioapi.h:39
State view collection for external data. This is just a collection that can be used by other classes ...
Definition: externalDataState.h:98
const DtSimpleTypedDictionary & dictionary() const
Definition: externalDataState.h:36
#define DT_DLL_VRFGUICORE
Contains DLL export macros.
Definition: vrfGuiCore.h:25
DtSimpleTypedDictionary & dictionary()
Definition: externalDataState.h:41
Definition: simpleTypedDictionary.h:36
A DtStateViewCollection is a collection of DtStateViews of a specific state.
Definition: DtStateViewCollection.h:27
Contains makVrv::DtVrlinkSimulatedEntityState class.
size_t size() const
Get the current size of the message in bytes.
DT_DLL_VRFGUICORE makVrv::DtMessage & operator<<(makVrv::DtMessage &msg, const DtVrlinkSimulatedAggregateState &state)
Encode a DtVrlinkSimulatedEnvironmentState into a DtMessage.
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
DT_DLL_VRFGUICORE makVrv::DtMessage & operator>>(makVrv::DtMessage &msg, DtVrlinkSimulatedAggregateState &state)
Decode a DtVrlinkSimulatedEnvironmentState from a DtMessage.

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)