File tree Expand file tree Collapse file tree 4 files changed +10
-10
lines changed
Expand file tree Collapse file tree 4 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 2424#include " appmodel/DataReaderModule.hpp"
2525#include " appmodel/DataReaderConf.hpp"
2626
27- #include " appfwk/ModuleConfiguration .hpp"
27+ #include " appfwk/ConfigurationManager .hpp"
2828
2929#include " utilities/ReusableThread.hpp"
3030#include " datahandlinglibs/utils/FileSourceBuffer.hpp"
@@ -58,7 +58,7 @@ class FakeCardReaderBase
5858 FakeCardReaderBase (FakeCardReaderBase&&) = delete ; // /< FakeCardReaderBase is not move-constructible
5959 FakeCardReaderBase& operator =(FakeCardReaderBase&&) = delete ; // /< FakeCardReaderBase is not move-assignable
6060
61- void init (std::shared_ptr<appfwk::ModuleConfiguration > cfg);
61+ void init (std::shared_ptr<appfwk::ConfigurationManager > cfg);
6262
6363 // To be implemented by final module
6464 virtual std::shared_ptr<datahandlinglibs::SourceEmulatorConcept>
@@ -76,7 +76,7 @@ class FakeCardReaderBase
7676 // Configuration
7777 bool m_configured;
7878 std::string m_name;
79- std::shared_ptr<appfwk::ModuleConfiguration > m_cfg;
79+ std::shared_ptr<appfwk::ConfigurationManager > m_cfg;
8080
8181 std::map<std::string, std::shared_ptr<datahandlinglibs::SourceEmulatorConcept>> m_source_emus;
8282
Original file line number Diff line number Diff line change 2020#include " nlohmann/json.hpp"
2121#include " rcif/cmd/Nljs.hpp"
2222
23- #include " appfwk/ModuleConfiguration .hpp"
23+ #include " appfwk/ConfigurationManager .hpp"
2424#include " appmodel/DataHandlerModule.hpp"
2525
2626#include < chrono>
@@ -46,7 +46,7 @@ class RawDataHandlerBase
4646 RawDataHandlerBase (RawDataHandlerBase&&) = delete ; // /< RawDataHandlerBase is not move-constructible
4747 RawDataHandlerBase& operator =(RawDataHandlerBase&&) = delete ; // /< RawDataHandlerBase is not move-assignable
4848
49- void init (std::shared_ptr<appfwk::ModuleConfiguration > cfg);
49+ void init (std::shared_ptr<appfwk::ConfigurationManager > cfg);
5050 // void get_info(opmonlib::InfoCollector& ci, int level);
5151
5252 virtual std::shared_ptr<dunedaq::datahandlinglibs::DataHandlingConcept>
Original file line number Diff line number Diff line change @@ -9,12 +9,12 @@ FakeCardReaderBase::FakeCardReaderBase(const std::string& name)
99}
1010
1111void
12- FakeCardReaderBase::init (std::shared_ptr<appfwk::ModuleConfiguration > cfg)
12+ FakeCardReaderBase::init (std::shared_ptr<appfwk::ConfigurationManager > cfg)
1313{
1414 m_cfg = cfg;
1515 TLOG_DEBUG (dunedaq::datahandlinglibs::logging::TLVL_ENTER_EXIT_METHODS) << get_fcr_name () << " : Entering init() method" ;
1616 // auto ini = args.get<appfwk::app::ModInit>();
17- auto ini = cfg->module <appmodel::DataReaderModule>(m_name);
17+ auto ini = cfg->get_dal <appmodel::DataReaderModule>(m_name);
1818 if (ini != nullptr && ini->get_configuration ()->get_emulation_mode ()) {
1919
2020 for (auto qi : ini->get_outputs ()) {
@@ -47,7 +47,7 @@ FakeCardReaderBase::do_conf(const nlohmann::json& /*args*/)
4747 if (m_configured) {
4848 TLOG_DEBUG (dunedaq::datahandlinglibs::logging::TLVL_WORK_STEPS) << " This module is already configured!" ;
4949 } else {
50- auto cfg = m_cfg->module <appmodel::DataReaderModule>(get_fcr_name ());
50+ auto cfg = m_cfg->get_dal <appmodel::DataReaderModule>(get_fcr_name ());
5151
5252 std::map<uint32_t , const confmodel::DetectorStream*> streams;
5353 for (const auto & det_connections : cfg->get_connections ()) {
Original file line number Diff line number Diff line change @@ -18,11 +18,11 @@ RawDataHandlerBase::RawDataHandlerBase(const std::string& name)
1818
1919
2020void
21- RawDataHandlerBase::init (std::shared_ptr<appfwk::ModuleConfiguration > cfg)
21+ RawDataHandlerBase::init (std::shared_ptr<appfwk::ConfigurationManager > cfg)
2222{
2323
2424 TLOG_DEBUG (dunedaq::datahandlinglibs::logging::TLVL_ENTER_EXIT_METHODS) << get_dlh_name () << " : Entering init() method" ;
25- const appmodel::DataHandlerModule* modconf = cfg->module <appmodel::DataHandlerModule>(get_dlh_name ());
25+ const appmodel::DataHandlerModule* modconf = cfg->get_dal <appmodel::DataHandlerModule>(get_dlh_name ());
2626 if (modconf == nullptr ) {
2727 throw dunedaq::datahandlinglibs::FailedReadoutInitialization (ERS_HERE, get_dlh_name (), " not a DataHandlerModule" );
2828 }
You can’t perform that action at this time.
0 commit comments