VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
vrfTDLMessageDataState.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2017 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
19 
20 #pragma once
21 
22 #include <vrfGuiCore/vrfGuiCore.h>
25 #include <matrix/vlVector.h>
26 
27 namespace makVrf
28 {
29  static const char DtThisIsTDLData[] = "DtThisIsTDLData";
30 
34  {
35  public:
36 
40 
42  virtual ~DtVrfTDLMessageDataState();
43 
44  virtual std::string dataHandlerType() const;
45  virtual std::string visualHandlerType() const;
46 
47  bool operator==(const DtVrfTDLMessageDataState&) const;
48 
49  void setProtocol(const std::string& s)
50  {
51  myDictionary.setValue("Protocol", s);
52  }
53 
54  std::string protocol() const
55  {
56  return myDictionary.value("Protocol");
57  }
58 
59  void setDomain(const std::string& s)
60  {
61  myDictionary.setValue("Domain", s);
62  }
63 
64  std::string domain() const
65  {
66  return myDictionary.value("Domain");
67  }
68 
69  void addObservedBy(const std::string& s)
70  {
71  myObservedBy.insert(s);
72  }
73 
74  void removeObservedBy(const std::string& s)
75  {
76  myObservedBy.erase(s);
77  }
78 
79  bool isObservedBy(const std::string& s) const
80  {
81  return (myObservedBy.find(s) != myObservedBy.end());
82  }
83 
84  const std::set<std::string>& observedBy() const
85  {
86  return myObservedBy;
87  }
88 
89  public:
90  std::string myUniqueIdentifier;
93  DtTaitBryan myOrientation;
95  std::set<std::string> myObservedBy;
96  };
97 
100 
103 
106 
109  {
110  public:
112  makVrv::DtStateViewCollection<DtVrfTDLMessageDataState>(de, makVrv::DtSimEntryUpdater::AnyUpdates)
113  {
114  }
115  };
116 }
std::string myUniqueIdentifier
Definition: vrfTDLMessageDataState.h:90
DtVrfTDLMessageDataStateViewCollection(makVrv::DtDe &de)
Definition: vrfTDLMessageDataState.h:111
Contains makVrv::DtStateViewCollection class.
The IGI Message.
Definition: DtMessage.h:33
DT_DLL_VRFGUICORE makVrv::DtMessage & operator<<(makVrv::DtMessage &msg, const DtVrlinkNetworkUpdateSimulatedAggregateState &state)
Encode a DtVrlinkSimulatedEnvironmentState into a DtMessage.
General dictionary of values that state can subclass from to hold information that is considered &quot;ext...
Definition: externalDataState.h:25
DT_DLL_terrainCS bool operator==(const DtDegMinSec &lhs, const DtDegMinSec &rhs)
#define DT_DLL_VRFGUICORE
Contains DLL export macros.
Definition: vrfGuiCore.h:25
DtTaitBryan myOrientation
Definition: vrfTDLMessageDataState.h:93
int myDateTimeOfData
Definition: vrfTDLMessageDataState.h:94
Note that the &quot;protocol&quot; keyword is used by by the TDL manager to allow users to filter out messages ...
Definition: vrfTDLMessageDataState.h:33
void setDomain(const std::string &s)
Definition: vrfTDLMessageDataState.h:59
void addObservedBy(const std::string &s)
Definition: vrfTDLMessageDataState.h:69
A DtStateView is a the interface to simulation state information.
Definition: DtStateView.h:52
A DtStateViewCollection is a collection of DtStateViews of a specific state.
Definition: DtStateViewCollection.h:27
DtVector myVelocity
Definition: vrfTDLMessageDataState.h:92
State view collection for TDL data.
Definition: vrfTDLMessageDataState.h:108
void setProtocol(const std::string &s)
Definition: vrfTDLMessageDataState.h:49
bool isObservedBy(const std::string &s) const
Definition: vrfTDLMessageDataState.h:79
static const char DtThisIsTDLData[]
Definition: vrfTDLMessageDataState.h:29
const std::set< std::string > & observedBy() const
Definition: vrfTDLMessageDataState.h:84
std::string protocol() const
Definition: vrfTDLMessageDataState.h:54
std::set< std::string > myObservedBy
Definition: vrfTDLMessageDataState.h:95
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
makVrv::DtStateView< DtVrfTDLMessageDataState > DtVrfTDLMessageDataStateView
Create a DtStateView templated on DtVrfTDLMessageDataState.
Definition: vrfTDLMessageDataState.h:105
std::string domain() const
Definition: vrfTDLMessageDataState.h:64
DtVector myLocation
Definition: vrfTDLMessageDataState.h:91
void removeObservedBy(const std::string &s)
Definition: vrfTDLMessageDataState.h:74
DT_DLL_VRFGUICORE makVrv::DtMessage & operator>>(makVrv::DtMessage &msg, DtVrlinkSimulatedAggregateState &state)
Decode a DtVrlinkSimulatedEnvironmentState from a DtMessage.

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)