DUNE-DAQ
DUNE Trigger and Data Acquisition software
Toggle main menu visibility
Loading...
Searching...
No Matches
dunedaq
sourcecode
conffwk
include
conffwk
details
DalFactory.hxx
Go to the documentation of this file.
1
#if !defined(__DUNEDAQ_CONFFWK_DALFACTORY_HXX__)
2
#define __DUNEDAQ_CONFFWK_DALFACTORY_HXX__
3
4
namespace
dunedaq
{
5
namespace
conffwk
{
6
8
template
<
class
T>
9
void
10
DalFactory::register_dal_class(
const
std::string& name)
11
{
12
std::lock_guard<std::mutex> scoped_lock(m_class_mutex);
13
14
TLOG_DEBUG
(50) <<
"register class "
<< name;
15
16
if
(m_creators.emplace(name, [](conffwk::DalRegistry& db,
const
conffwk::ConfigObject& o) { return new T(db, o); })
17
.second ==
false
) {
18
TLOG
() <<
"class "
<< name <<
" was already registered"
;
19
}
20
}
21
22
}
// namespace conffwk
23
}
// namespace dunedaq
24
25
#endif
// __DUNEDAQ_CONFFWK_DALFACTORY_HXX__
TLOG_DEBUG
#define TLOG_DEBUG(lvl,...)
Definition
Logging.hpp:116
TLOG
#define TLOG(...)
Definition
macro.hpp:21
dunedaq::conffwk
Definition
test_circular_dependency.hpp:5
dunedaq
The DUNE-DAQ namespace.
Definition
cib_utilities.cpp:5
Generated on
for DUNE-DAQ by
1.18.0