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