DUNE-DAQ
DUNE Trigger and Data Acquisition software
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
7
8
10
template
<
class
T>
11
void
12
DalFactory::register_dal_class(
const
std::string & name)
13
{
14
std::lock_guard<std::mutex> scoped_lock(m_class_mutex);
15
16
TLOG_DEBUG
(50) <<
"register class "
<< name;
17
18
if
(m_creators.emplace(name, [](conffwk::DalRegistry& db,
const
conffwk::ConfigObject
& o){ return new T(db, o);}).second ==
false
)
19
{
20
TLOG
() <<
"class "
<< name <<
" was already registered"
;
21
}
22
}
23
24
}
// namespace conffwk
25
}
// namespace dunedaq
26
27
28
#endif
// __DUNEDAQ_CONFFWK_DALFACTORY_HXX__
TLOG_DEBUG
#define TLOG_DEBUG(lvl,...)
Definition
Logging.hpp:112
TLOG
#define TLOG(...)
Definition
macro.hpp:22
conffwk.ConfigObject
Definition
ConfigObject.py:1
conffwk
Definition
__init__.py:1
dunedaq
Including Qt Headers.
Definition
TimingController.hxx:1
Generated on Sat Jun 28 2025 for DUNE-DAQ by
1.12.0