tdaq-develop-2025-02-12
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  const ITRACEController::HostTraceLevelMap& getTraceLevels(void) final;
16  virtual void setTraceLevelMask(std::string const& label,
17  TraceMasks const& lvl,
18  std::string const& hostname = "localhost",
19  std::string const& mode = "ALL") final;
20 
21  void setSupervisorPtr(ARTDAQSupervisor* ptr) { theSupervisor_ = ptr; }
22 
24  virtual bool getIsTriggered(void) { return false; }
25  virtual void setTriggerEnable(size_t) {}
26 
27  virtual void resetTraceBuffer(void) {}
28  virtual void enableTrace(bool enable = true)
29  {
30  if(enable)
31  std::cout << "using enable" << std::endl;
32  } // FIXME
33 
34  private:
35  ARTDAQSupervisor* theSupervisor_;
36 };
37 } // namespace ots
38 
39 #endif // OTSDAQ_ARTDAQSUPERVISOR_ARTDAQSUPERVISORTRACECONTROLLER_H
const ITRACEController::HostTraceLevelMap & getTraceLevels(void) final
pure virtual
virtual bool getIsTriggered(void)
These functions are defaulted because ARTDAQSupervisorTRACEController doesn't have direct access to t...
virtual void enableTrace(bool enable=true)
pure virtual
virtual void setTriggerEnable(size_t)
pure virtual
virtual void setTraceLevelMask(std::string const &label, TraceMasks const &lvl, std::string const &hostname="localhost", std::string const &mode="ALL") final
pure virtual