VR-Forces Developer's Guide
 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 
67  {
68  public:
70 
72 
73  virtual ~DtTDLPPLIMessage() override;
74 
77  virtual void setGeocentricLocation(const DtVector&);
78  const DtVector& geocentricLocation() const;
79 
81  virtual void setOrientation(const DtTaitBryan&);
82  const DtTaitBryan& orientation() const;
83 
85  virtual void setVelocity(const DtVector&);
86  const DtVector& velocity() const;
87 
90  virtual void setEntityType(const DtEntityType&);
91  const DtEntityType& entityType() const;
92 
94  virtual void setForce(int);
95  int force() const;
96 
98  virtual void setTimeOfReceipt(unsigned int);
99  unsigned int timeOfReceipt() const;
100 
102  virtual void setDomain(const std::string&);
103  const std::string& domain() const;
104 
105  protected:
107  DtTaitBryan myOrientation;
108  DtVector myVelocity;
109  DtEntityType myEntityType;
110  int myForce;
111  unsigned int myTimeOfReceipt;
112  };
113 }
114 
115 namespace makVrv
116 {
117  class DtMessage;
118 
119  DT_DLL_VRFGUICORE DtMessage& operator>>( DtMessage& msg, makVrf::DtTDLGenericNetworkMessage& );
120  DT_DLL_VRFGUICORE DtMessage& operator<<( DtMessage& msg, const makVrf::DtTDLGenericNetworkMessage& );
121 
122  DT_DLL_VRFGUICORE DtMessage& operator>>( DtMessage& msg, makVrf::DtTDLPPLIMessage& );
123  DT_DLL_VRFGUICORE DtMessage& operator<<( DtMessage& msg, const makVrf::DtTDLPPLIMessage& );
124 }
bool myIsLastMessage
Definition: tdlGenericNetworkMessage.h:58
unsigned int myTimeOfReceipt
Definition: tdlGenericNetworkMessage.h:111
DT_DLL_VRFGUICORE makVrv::DtMessage & operator<<(DtMessage &msg, const makVrf::DtNetworkMessageAgentInterface &)
#define DT_DLL_VRFGUICORE
Contains DLL export macros.
Definition: vrfGuiCore.h:25
int myForce
Definition: tdlGenericNetworkMessage.h:110
DtVector myVelocity
Definition: tdlGenericNetworkMessage.h:108
std::string myUniqueIdentifier
Definition: tdlGenericNetworkMessage.h:56
There are certain TDL messages that are indicators of locational display and symbol creation...
Definition: tdlGenericNetworkMessage.h:66
Definition: tdlGenericNetworkMessage.h:20
DtEntityType myEntityType
Definition: tdlGenericNetworkMessage.h:109
DtVector myGeocentricLocation
Definition: tdlGenericNetworkMessage.h:106
DtTaitBryan myOrientation
Definition: tdlGenericNetworkMessage.h:107
DT_DLL_VRFGUICORE makVrv::DtMessage & operator>>(DtMessage &msg, makVrf::DtNetworkMessageAgentInterface &)
std::map< std::string, std::string > myDataMap
Definition: tdlGenericNetworkMessage.h:57

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)