VR-Forces 4.2 Class Documentation
activeSonarModeRequestor.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2012 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 
14 
15 #pragma once
16 
17 #include <vrvUtil/signalslib.h>
18 #include <vrfGuiCore/vrfGuiCore.h>
19 
20 #include <vrvUtil/DtVirtualBaseClass.h>
21 
22 #include <vrvCore/DtSimEntry.h>
23 
24 #include <vector>
25 
26 namespace makVrv
27 {
28  class DtDe;
29  class DtSimObjectEntry;
30 }
31 
32 class DtVrfObjectMessage;
33 
34 namespace makVrf
35 {
37  class DT_DLL_VRFGUICORE DtActiveSonarModeRequestor : public makVrv::DtVirtualBaseClass
38  {
39  protected:
42  {
43  std::map<int, std::string> activeSonarIdCurrentModeMap;
44  std::map<int, std::vector<std::string> > activeSonarIdModesMap;
45  };
46 
47  public:
49  virtual ~DtActiveSonarModeRequestor();
50 
52  static DtActiveSonarModeRequestor& instance(makVrv::DtDe& de);
53 
56  static void registerInstance(makVrv::DtDe& de, DtActiveSonarModeRequestor* object);
57 
59  virtual std::string currentModeFor(std::string entityName, int activeSonarId) const;
60 
62  virtual std::vector<int> activeSonarIdsFor(std::string entityName) const;
63 
65  virtual std::vector<std::string> activeSonarModesFor(std::string entityName, int activeSonarId) const;
66 
68  virtual bool hasActiveSonarModesFor(std::string entityName) const;
69 
73  virtual int groupIdsAndModes(std::vector<std::string> entities,
74  std::vector<int>& returnIds,
75  std::vector<std::string>& returnModes);
76 
80  virtual int groupModes(std::vector<std::string> entities,
81  int activeSonarId,
82  std::vector<std::string>& returnModes);
83 
85  virtual void updateActiveSonarModes(std::string entityName);
86 
89  boost::signal<void (std::string, int)> signal_activeSonarModesReceived;
90 
91 
92  protected:
94  DtActiveSonarModeRequestor(makVrv::DtDe&);
95 
97  virtual void slot_onSimDataRemoved(makVrv::DtSimObjectEntry&);
98 
101  virtual void processActiveSonarModes(const DtVrfObjectMessage* msg);
102 
103  makVrv::DtDe& myDe;
104  std::map<std::string, DtActiveSonarModeDataRecord> myEntitiesTable;
105  };
106 }

Document ID: Generated on Sun Nov 24 19:49:21 EST 2013 from SVN revision 133924
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)