artdaq  v2_03_02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
xmlrpc_commander.hh
1 /* DarkSide 50 DAQ program
2  * This file add the xmlrpc commander as a client to the SC
3  * Author: Alessandro Razeto <Alessandro.Razeto@ge.infn.it>
4  */
5 #ifndef artdaq_ExternalComms_xmlrpc_commander_hh
6 #define artdaq_ExternalComms_xmlrpc_commander_hh
7 
8 #include <mutex>
9 #include "artdaq/Application/Commandable.hh"
10 
11 namespace artdaq
12 {
13  class xmlrpc_commander;
14 }
15 
20 {
21 public:
27  xmlrpc_commander(int port, artdaq::Commandable& commandable);
28 
32  void run();
33 
34 private:
35  xmlrpc_commander(const xmlrpc_commander&) = delete;
36 
38 
39  int _port;
40 
41 public:
43  std::mutex mutex_;
44 };
45 
46 #endif /* artdaq_ExternalComms_xmlrpc_commander_hh */
Commandable is the base class for all artdaq components which implement the artdaq state machine...
Definition: Commandable.hh:20
The xmlrpc_commander class serves as the XMLRPC server run in each artdaq application.
artdaq::Commandable & _commandable
The artdaq::Commandable object that this xmlrpc_commander sends commands to.
xmlrpc_commander(int port, artdaq::Commandable &commandable)
xmlrpc_commander Constructor
void run()
Run the XMLRPC server.
std::mutex mutex_
XMLRPC mutex.