Skip to content

Commit fb404ea

Browse files
authored
Merge pull request #319 from DUNE-DAQ/gcrone/private-session
Gcrone/private session
2 parents ba6e7c7 + fc62aed commit fb404ea

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

include/appfwk/ConfigurationManager.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
#include "appfwk/ValidationReport.hpp"
1616

17+
#include "appmodel/ConfigurationHelper.hpp"
1718
#include "conffwk/Configuration.hpp"
1819
#include "confmodel/ActionPlan.hpp"
1920
#include "confmodel/DaqApplication.hpp"
@@ -96,6 +97,7 @@ class ConfigurationManager
9697

9798
private:
9899
std::shared_ptr<conffwk::Configuration> m_confdb;
100+
std::shared_ptr<appmodel::ConfigurationHelper> m_helper;
99101
std::string m_app_name;
100102
std::string m_session_name;
101103

src/ConfigurationManager.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ ConfigurationManager::ConfigurationManager(std::string const& config_spec,
5151
TLOG() << "Failed to get session " << session_name;
5252
throw MissingComponent(ERS_HERE, "Session " + session_name);
5353
}
54+
m_helper = std::make_shared<appmodel::ConfigurationHelper>(m_session);
5455
}
5556

5657
std::vector<ValidationReport>
@@ -68,14 +69,14 @@ ConfigurationManager::initialize(bool throw_on_fatal)
6869
}
6970

7071
TLOG_DBG(TLVL_APP) << "getting modules for app " << m_app_name;
71-
auto smart_daq_app = m_application->cast<appmodel::SmartDaqApplication>();
7272
auto daq_app = m_application->cast<confmodel::DaqApplication>();
73-
if(!daq_app && !smart_daq_app) {
73+
if(daq_app == nullptr) {
7474
throw(NotADaqApplication(ERS_HERE, m_application->UID()));
7575
}
7676

77-
if (smart_daq_app) {
78-
smart_daq_app->generate_modules(m_session);
77+
auto smart_daq_app = m_application->cast<appmodel::SmartDaqApplication>();
78+
if (smart_daq_app != nullptr) {
79+
smart_daq_app->generate_modules(m_helper);
7980
}
8081

8182
m_modules = m_application->get_modules();

0 commit comments

Comments
 (0)