artdaq  v3_01_00
DataLoggerApp.hh
1 #ifndef artdaq_Application_MPI2_DataLoggerApp_hh
2 #define artdaq_Application_MPI2_DataLoggerApp_hh
3 
4 #include <future>
5 
6 #include "artdaq/Application/DataLoggerCore.hh"
7 #include "artdaq/Application/Commandable.hh"
8 
9 namespace artdaq
10 {
11  class DataLoggerApp;
12 }
13 
18 {
19 public:
23  DataLoggerApp();
24 
28  DataLoggerApp(DataLoggerApp const&) = delete;
29 
33  virtual ~DataLoggerApp() = default;
34 
39  DataLoggerApp& operator=(DataLoggerApp const&) = delete;
40 
41  // these methods provide the operations that are used by the state machine
47  bool do_initialize(fhicl::ParameterSet const& pset, uint64_t, uint64_t) override;
48 
54  bool do_start(art::RunID id, uint64_t, uint64_t) override;
55 
60  bool do_stop(uint64_t, uint64_t) override;
61 
66  bool do_pause(uint64_t, uint64_t) override;
67 
72  bool do_resume(uint64_t, uint64_t) override;
73 
78  bool do_shutdown(uint64_t) override;
79 
84  bool do_soft_initialize(fhicl::ParameterSet const&, uint64_t, uint64_t) override;
85 
90  bool do_reinitialize(fhicl::ParameterSet const&, uint64_t, uint64_t) override;
91 
97  std::string report(std::string const& which) const override;
98 
99 
100 private:
101  std::unique_ptr<DataLoggerCore> DataLogger_ptr_;
102 };
103 
104 #endif
bool do_initialize(fhicl::ParameterSet const &pset, uint64_t, uint64_t) override
Initialize the DataLoggerCore.
DataLoggerApp()
DataLoggerApp Constructor.
Definition: DataLoggerApp.cc:7
Commandable is the base class for all artdaq components which implement the artdaq state machine...
Definition: Commandable.hh:20
bool do_shutdown(uint64_t) override
Shutdown the DataLoggerCore.
bool do_soft_initialize(fhicl::ParameterSet const &, uint64_t, uint64_t) override
Soft-initialize the DataLoggerCore. No-Op.
DataLoggerApp is an artdaq::Commandable derived class which controls the DataLoggerCore.
bool do_resume(uint64_t, uint64_t) override
Resume the DataLoggerCore.
bool do_pause(uint64_t, uint64_t) override
Pause the DataLoggerCore.
std::string report(std::string const &which) const override
If which is &quot;transition_status&quot;, report the status of the last transition. Otherwise pass through to ...
DataLoggerApp & operator=(DataLoggerApp const &)=delete
Copy Assignment operator is Deleted.
bool do_reinitialize(fhicl::ParameterSet const &, uint64_t, uint64_t) override
Reinitialize the DataLoggerCore. No-Op.
bool do_start(art::RunID id, uint64_t, uint64_t) override
Start the DataLoggerCore.
virtual ~DataLoggerApp()=default
Default virtual destructor.
bool do_stop(uint64_t, uint64_t) override
Stop the DataLoggerCore.