VR-Forces 4.7 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 }

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)