otsdaq_components  v2_04_01
OtsSlowControlsInterface.h
1 #ifndef _ots_OtsSlowControlsInterface_h
2 #define _ots_OtsSlowControlsInterface_h
3 
4 #include <array>
5 #include <string>
6 
7 #include "otsdaq-core/NetworkUtilities/ReceiverSocket.h" // Make sure this is always first because <sys/types.h> (defined in Socket.h) must be first
8 #include "otsdaq-core/SlowControlsCore/SlowControlsVInterface.h"
9 using namespace ots;
10 //{
11 
12 class OtsSlowControlsInterface : public SlowControlsVInterface
13 {
14  public:
15  OtsSlowControlsInterface(const std::string& interfaceUID,
16  const ConfigurationTree& theXDAQContextConfigTree,
17  const std::string& controlsConfigurationPath);
19 
20  void initialize();
21  void destroy();
22 
23  std::string getList(std::string format);
24  void subscribe(std::string Name);
25  void subscribeJSON(std::string List);
26  void unsubscribe(std::string Name);
27  std::array<std::string, 4> getCurrentValue(std::string Name);
28  std::array<std::string, 9> getSettings(std::string Name);
29 };
30 
31 //}
32 
33 #endif