VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
remoteControlSystemListRequestor.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2026 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
7 
8 #pragma once
9 
13 
14 #include <vrfutil/vrfSingleton.h>
15 
16 #include <vector>
17 #include <list>
18 
19 #include <boost/signals2.hpp>
20 
21 class DtVrfObjectMessage;
22 class DtEntityType;
23 class DtString;
24 class DtUUID;
25 class DtAdminMessage;
26 
29 {
30  REGISTER_SINGLETON("DtRemoteControlSystemListRequestor")
31 
32 public:
34  virtual ~DtRemoteControlSystemListRequestor() override;
35 
37 
40  virtual const DtSystemVector& systemsForEntityType(const DtEntityType&) const;
41 
43  virtual bool hasSystemsForEntityType(const DtEntityType&) const;
44 
46  virtual void systems(const std::vector<DtEntityType>& types, DtSystemVector& systems) const;
47 
49  virtual void updateSystems(const DtUUID&, DtSystemListRequestSubscriptionType subscribe);
50  virtual void updateSystems(const std::list<DtUUID>& name);
51 
55  virtual void clearEntityTypeEntry(const DtEntityType&);
56 
57  boost::signals2::signal<void(const DtUUID&)> signal_systemListReceived;
58  boost::signals2::signal<void(const DtUUID&, const DtSystemVector&)> signal_systemListAndStateReceived;
59 
60 protected:
61  virtual void sendMessage(const DtAdminMessage&);
62 
63  static void SensorListCallback(const DtVrfObjectMessage* msg, void* usr);
64 
69  virtual void processSystemListResponse(const DtVrfObjectMessage* msg);
70 
71 protected:
73 
74  typedef std::map<DtEntityType, DtSystemVector> SystemsListTable;
75 
77 
79 };
UUID is a unique ID wrapper class.
Definition: uuid.h:59
Definition: scenarioManager.h:40
boost::signals2::signal< void(const DtUUID &)> signal_systemListReceived
Definition: remoteControlSystemListRequestor.h:57
#define DT_DLL_vrfcontrol
This file is used to determine how to build.
Definition: vrfcontrolDefines.h:28
SystemsListTable myTable
Definition: remoteControlSystemListRequestor.h:76
static const DtSystemVector theEmptySystemVector
Definition: remoteControlSystemListRequestor.h:78
std::map< DtEntityType, DtSystemVector > SystemsListTable
Definition: remoteControlSystemListRequestor.h:74
The class that is the interface between the GUI and the back-end.
Definition: remoteControlSystemListRequestor.h:28
static DtScenarioManager & NullManager()
Definition: scenarioManager.h:72
DtVrfSingleton is a class that all singletons that can be registered with the DtVrfSingletonRoot are ...
Definition: vrfSingleton.h:15
#define REGISTER_SINGLETON(cName)
Definition: vrfSingleton.h:30
boost::signals2::signal< void(const DtUUID &, const DtSystemVector &)> signal_systemListAndStateReceived
Definition: remoteControlSystemListRequestor.h:58
std::vector< ComponentSystem > DtSystemVector
Definition: systemListResponseAdmin.h:42
The base class for all messages to/from a specific DtVrfObject. Various subclasses of this class will...
Definition: vrfObjectMessage.h:30
DtScenarioManager & myScenarioManager
Definition: remoteControlSystemListRequestor.h:72
DtSystemListRequestSubscriptionType
Definition: systemListRequestAdmin.h:22
Definition: adminMessage.h:20

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)