artdaq  v3_09_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/Commandable.hh"
7 #include "artdaq/Application/DataLoggerCore.hh"
8 
9 namespace artdaq {
10 class DataLoggerApp;
11 }
12 
17 {
18 public:
22  DataLoggerApp();
23 
27  DataLoggerApp(DataLoggerApp const&) = delete;
28 
32  virtual ~DataLoggerApp() = default;
33 
38  DataLoggerApp& operator=(DataLoggerApp const&) = delete;
39  DataLoggerApp(DataLoggerApp&&) = delete;
41 
42  // these methods provide the operations that are used by the state machine
48  bool do_initialize(fhicl::ParameterSet const& pset, uint64_t, uint64_t) override;
49 
55  bool do_start(art::RunID id, uint64_t, uint64_t) override;
56 
61  bool do_stop(uint64_t, uint64_t) override;
62 
67  bool do_pause(uint64_t, uint64_t) override;
68 
73  bool do_resume(uint64_t, uint64_t) override;
74 
79  bool do_shutdown(uint64_t) override;
80 
85  bool do_soft_initialize(fhicl::ParameterSet const&, uint64_t, uint64_t) override;
86 
91  bool do_reinitialize(fhicl::ParameterSet const&, uint64_t, uint64_t) override;
92 
98  std::string report(std::string const& which) const override;
99 
104  bool do_add_config_archive_entry(std::string const&, std::string const&) override;
105 
110  bool do_clear_config_archive() override;
111 
112 private:
113  std::unique_ptr<DataLoggerCore> DataLogger_ptr_;
114 };
115 
116 #endif
bool do_initialize(fhicl::ParameterSet const &pset, uint64_t, uint64_t) override
Initialize the DataLoggerCore.
DataLoggerApp()
DataLoggerApp Constructor.
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_clear_config_archive() override
Clear the configuration archive list in the DataLoggerCore.
bool do_start(art::RunID id, uint64_t, uint64_t) override
Start the DataLoggerCore.
virtual ~DataLoggerApp()=default
Default virtual destructor.
bool do_add_config_archive_entry(std::string const &, std::string const &) override
Add the specified configuration archive entry to the DataLoggerCore.
bool do_stop(uint64_t, uint64_t) override
Stop the DataLoggerCore.