VR-Forces Developer's Guide
 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>
27 
28 namespace makVrf
29 {
30  static const char DtThisIsTDLData[] = "DtThisIsTDLData";
31 
35  {
36  public:
37 
41 
43  virtual ~DtVrfTDLMessageDataState();
44 
45  virtual std::string dataHandlerType() const;
46  virtual std::string visualHandlerType() const;
47 
48  bool operator==(const DtVrfTDLMessageDataState&) const;
49 
50  void setProtocol(const std::string& s)
51  {
52  myDictionary.setValue("Protocol", s);
53  }
54 
55  std::string protocol() const
56  {
57  return myDictionary.value("Protocol");
58  }
59 
60  void setDomain(const std::string& s)
61  {
62  myDictionary.setValue("Domain", s);
63  }
64 
65  std::string domain() const
66  {
67  return myDictionary.value("Domain");
68  }
69 
70  void addObservedBy(const std::string& s, double simTime)
71  {
72  myObservedBy[s] = simTime;
73  }
74 
75  void removeObservedBy(const std::string& s)
76  {
77  std::map<std::string, double>::iterator iter = myObservedBy.find(s);
78 
79  if (iter != myObservedBy.end())
80  {
81  myObservedBy.erase(iter);
82  }
83  }
84 
85  bool isObservedBy(const std::string& s) const
86  {
87  return (myObservedBy.find(s) != myObservedBy.end());
88  }
89 
90  const std::map<std::string, double>& observedBy() const
91  {
92  return myObservedBy;
93  }
94 
95  public:
96  std::string myUniqueIdentifier;
99  DtTaitBryan myOrientation;
101  std::map<std::string, double> myObservedBy;
102  };
103 
106 
109 
112 
115  {
116  public:
118  makVrv::DtStateViewCollection<DtVrfTDLMessageDataState>(de, makVrv::DtSimEntryUpdater::AnyUpdates)
119  {
120  }
121  };
122 }
std::string myUniqueIdentifier
Definition: vrfTDLMessageDataState.h:96
DtVrfTDLMessageDataStateViewCollection(makVrv::DtDe &de)
Definition: vrfTDLMessageDataState.h:117
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
DT_DLL_VRFGUICORE makVrv::DtMessage & operator>>(makVrv::DtMessage &msg, DtVrlinkSimulatedAerodromeState &state)
Decode a DtVrlinkSimulatedAerodromeState from a DtMessage.
void addObservedBy(const std::string &s, double simTime)
Definition: vrfTDLMessageDataState.h:70
DT_DLL_VRFGUICORE bool operator==(const std::vector< makArchives::DtEnvironmentRecord::DtElevationalConfigurationRecord > &lhs, const std::vector< makArchives::DtEnvironmentRecord::DtElevationalConfigurationRecord > &rhs)
#define DT_DLL_VRFGUICORE
Contains DLL export macros.
Definition: vrfGuiCore.h:25
DtTaitBryan myOrientation
Definition: vrfTDLMessageDataState.h:99
int myDateTimeOfData
Definition: vrfTDLMessageDataState.h:100
Note that the &quot;protocol&quot; keyword is used by by the TDL manager to allow users to filter out messages ...
Definition: vrfTDLMessageDataState.h:34
void setDomain(const std::string &s)
Definition: vrfTDLMessageDataState.h:60
A DtStateView is a the interface to simulation state information. Users can create DtStateViews for s...
Definition: DtStateView.h:49
A DtStateViewCollection is a collection of DtStateViews of a specific state.
Definition: DtStateViewCollection.h:27
DtVector myVelocity
Definition: vrfTDLMessageDataState.h:98
State view collection for TDL data.
Definition: vrfTDLMessageDataState.h:114
void setProtocol(const std::string &s)
Definition: vrfTDLMessageDataState.h:50
bool isObservedBy(const std::string &s) const
Definition: vrfTDLMessageDataState.h:85
static const char DtThisIsTDLData[]
Definition: vrfTDLMessageDataState.h:30
std::string protocol() const
Definition: vrfTDLMessageDataState.h:55
DT_DLL_VRFGUICORE makVrv::DtMessage & operator<<(makVrv::DtMessage &msg, const DtVrlinkSimulatedAerodromeState &state)
Encode a DtVrlinkSimulatedAerodromeState 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:72
const std::map< std::string, double > & observedBy() const
Definition: vrfTDLMessageDataState.h:90
std::map< std::string, double > myObservedBy
Definition: vrfTDLMessageDataState.h:101
makVrv::DtStateView< DtVrfTDLMessageDataState > DtVrfTDLMessageDataStateView
Create a DtStateView templated on DtVrfTDLMessageDataState.
Definition: vrfTDLMessageDataState.h:111
std::string domain() const
Definition: vrfTDLMessageDataState.h:65
DtVector myLocation
Definition: vrfTDLMessageDataState.h:97
void removeObservedBy(const std::string &s)
Definition: vrfTDLMessageDataState.h:75

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)