VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtLosResponder.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2018 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvCigi/vrvCigi.h>
13 #include <vrvCore/DtUniqueID.h>
15 
16 #include <matrix/geodeticCoord.h>
17 
18 #include <boost/signal.hpp>
19 
20 class CigiLosSegReqV3_2;
21 class CigiLosVectReqV3_2;
22 
23 namespace makVrv
24 {
25  class DtCigiConnection;
26  class DtCigiLosRequest;
27  class DtCigiLosBasicResponse;
28  class DtCigiLosExtendedResponse;
29 
35  {
36  public:
37  friend class DtLosResponderCreator;
38 
40  virtual ~DtLosResponder();
41 
43  virtual void generateLosBasicResponse(DtCigiLosBasicResponse* losResponse);
44 
46  virtual void generateLosExtendedResponse(DtCigiLosExtendedResponse* losResponse);
47 
50  virtual void processLosRequests();
51 
53  boost::signal<void (DtCigiLosRequest*, bool takeOwnership)> signal_losCheckRequested;
54 
55  protected:
57  DtLosResponder(DtCigiConnection& connection);
58 
60  virtual void processLosSegmentRequest(const CigiLosSegReqV3_2& losSegReq);
61 
63  virtual void processLosVectorRequest(CigiLosVectReqV3_2& losVecReq);
64 
66  virtual void setDatabaseCoordinateFromGeodetic(const DtGeodeticCoord& from,
67  DtVector& to);
68 
70  virtual void addPeriodicLosRequest(DtCigiLosRequest* request);
71 
73  virtual void sendLosRequest(DtCigiLosRequest* request, bool takeOwnership);
74 
75 
76  protected:
78  std::map<int, DtCigiLosRequest*> myLosIdToRequestMap;
79  };
80 
83  {
84  public:
87 
89  virtual ~DtLosResponderCreator();
90 
92  static DtLosResponderCreator& instance( DtDe& de );
93 
95  static DtLosResponderCreator& instance( DtCigiConnection& con );
96 
98  static void copyInstance(DtCigiConnection& con, DtDe& de);
99 
101  virtual DtLosResponder* create( DtCigiConnection& connection ) const;
102  };
103 }
104 

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)