DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
dunedaq
sourcecode
tpglibs
include
tpglibs
NaiveFactory.hpp
Go to the documentation of this file.
1
8
9
#ifndef TPGLIBS_NAIVEFACTORY_HPP_
10
#define TPGLIBS_NAIVEFACTORY_HPP_
11
12
#include "
tpglibs/AbstractFactory.hpp
"
13
#include "
tpglibs/NaiveProcessor.hpp
"
14
16
#define REGISTER_NAIVEPROCESSOR_CREATOR(processor_name, processor_class) \
17
static struct processor_class##Registrar { \
18
processor_class##Registrar() { \
19
tpglibs::NaiveFactory::register_creator(processor_name, []() -> std::shared_ptr<tpglibs::NaiveProcessor> {return std::make_shared<processor_class>();}); \
20
} \
21
} processor_class##_registrar;
22
23
namespace
tpglibs
{
24
26
class
NaiveFactory
:
public
AbstractFactory
<NaiveProcessor> {};
27
28
}
// namespace tpglibs
29
30
#endif
// TPGLIBS_NAIVEFACTORY_HPP_
NaiveProcessor.hpp
tpglibs::AbstractFactory< NaiveProcessor >::AbstractFactory
AbstractFactory()
Definition
AbstractFactory.hpp:33
tpglibs::NaiveFactory
Naive typed abstract factory.
Definition
NaiveFactory.hpp:26
tpglibs
Definition
AbstractFactory.hpp:20
AbstractFactory.hpp
Generated on
for DUNE-DAQ by
1.16.1