DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
TriggerActivityFactory.hpp
Go to the documentation of this file.
1/* @file: TriggerActivityFactory.hpp
2 *
3 * This is part of the DUNE DAQ Application Framework, copyright 2023.
4 * Licensing/copyright details are in the COPYING file that you should have
5 * received with this code.
6 */
7
8#ifndef TRIGGERALGS_TRIGGER_ACTIVITY_FACTORY_HPP_
9#define TRIGGERALGS_TRIGGER_ACTIVITY_FACTORY_HPP_
10
13
14#define REGISTER_TRIGGER_ACTIVITY_MAKER(tam_name, tam_class) \
15 static struct tam_class##Registrar { \
16 tam_class##Registrar() { \
17 TriggerActivityFactory::register_creator(tam_name, []() -> std::unique_ptr<TriggerActivityMaker> {return std::make_unique<tam_class>();}); \
18 } \
19 } tam_class##_registrar;
20
21namespace triggeralgs {
22
23class TriggerActivityFactory : public AbstractFactory<TriggerActivityMaker> {};
24
25} /* namespace triggeralgs */
26
27#endif // TRIGGERALGS_TRIGGER_ACTIVITY_FACTORY_HPP_