VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
tdlGenericNetworkMessage.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2017 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 
9 #pragma once
10 
11 #include <vrfGuiCore/vrfGuiCore.h>
12 #include <string>
13 #include <map>
14 #include <matrix/vlVector.h>
15 #include <matrix/vlTaitBryan.h>
16 #include <vlpi/entityType.h>
17 
18 namespace makVrf
19 {
21  {
22  public:
25 
27 
28  virtual ~DtTDLGenericNetworkMessage();
29 
33  virtual void setUniqueIdentifier(const std::string&);
34  const std::string& uniqueIdentifier() const;
35 
39  virtual void setDataMap(const std::map<std::string, std::string>&);
40  const std::map<std::string, std::string>& dataMap() const;
41 
43  virtual void addValue(const std::string& keyword, const std::string& value);
44  virtual std::string value(const std::string& key) const;
45 
47  virtual void setIsLastMessage(bool);
48  bool isLastMessage() const;
49 
52  virtual void setProtocol(const std::string&);
53  const std::string& protocol() const;
54 
55  protected:
56  std::string myUniqueIdentifier;
57  std::map<std::string, std::string> myDataMap;
59  };
60 
65  {
66  public:
68 
70 
71  virtual ~DtTDLPPLIMessage();
72 
75  virtual void setGeocentricLocation(const DtVector&);
76  const DtVector& geocentricLocation() const;
77 
79  virtual void setOrientation(const DtTaitBryan&);
80  const DtTaitBryan& orientation() const;
81 
83  virtual void setVelocity(const DtVector&);
84  const DtVector& velocity() const;
85 
88  virtual void setEntityType(const DtEntityType&);
89  const DtEntityType& entityType() const;
90 
92  virtual void setForce(int);
93  int force() const;
94 
96  virtual void setTimeOfReceipt(unsigned int);
97  unsigned int timeOfReceipt() const;
98 
100  virtual void setDomain(const std::string&);
101  const std::string& domain() const;
102 
103  protected:
105  DtTaitBryan myOrientation;
107  DtEntityType myEntityType;
108  int myForce;
109  unsigned int myTimeOfReceipt;
110  };
111 }
112 
113 namespace makVrv
114 {
115  class DtMessage;
116 
117  DT_DLL_VRFGUICORE DtMessage& operator>>( DtMessage& msg, makVrf::DtTDLGenericNetworkMessage& );
118  DT_DLL_VRFGUICORE DtMessage& operator<<( DtMessage& msg, const makVrf::DtTDLGenericNetworkMessage& );
119 
120  DT_DLL_VRFGUICORE DtMessage& operator>>( DtMessage& msg, makVrf::DtTDLPPLIMessage& );
121  DT_DLL_VRFGUICORE DtMessage& operator<<( DtMessage& msg, const makVrf::DtTDLPPLIMessage& );
122 }

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)