otsdaq  v2_05_02_indev
ARTDAQSupervisorTRACEController.h
1 #ifndef OTSDAQ_ARTDAQSUPERVISOR_ARTDAQSUPERVISORTRACECONTROLLER_H
2 #define OTSDAQ_ARTDAQSUPERVISOR_ARTDAQSUPERVISORTRACECONTROLLER_H
3 
4 #include "otsdaq/ARTDAQSupervisor/ARTDAQSupervisor.hh"
5 #include "otsdaq/MessageFacility/ITRACEController.h"
6 
7 namespace ots
8 {
10 {
11  public:
13  virtual ~ARTDAQSupervisorTRACEController() { theSupervisor_ = nullptr; }
14 
15  HostTraceLevelMap GetTraceLevels() final;
16  void SetTraceLevelMask(std::string trace_name, TraceMasks const& lvl, std::string host = "localhost") final;
17 
18  void SetSupervisorPtr(ARTDAQSupervisor* ptr) { theSupervisor_ = ptr; }
19 
20  private:
21  ARTDAQSupervisor* theSupervisor_;
22 };
23 } // namespace ots
24 
25 #endif // OTSDAQ_ARTDAQSUPERVISOR_ARTDAQSUPERVISORTRACECONTROLLER_H