tdaq-develop-2025-02-12
RunInfoPluginMacros.h
1 #ifndef _ots_RunInfoPluginMacro_h_
2 #define _ots_RunInfoPluginMacro_h_
3 
4 #include <string>
5 #include "cetlib/compiler_macros.h"
6 #include "otsdaq/FiniteStateMachine/RunInfoVInterface.h" // for Run Info plugins
7 
8 namespace ots
9 {
10 typedef RunInfoVInterface*(dpvimakeFunc_t)();
11 }
12 /*
13 , \
14  const ConfigurationTree& configurationTree, \
15  const std::string& pathToInterfaceConfiguration) \
16 
17  , configurationTree, pathToInterfaceConfiguration); \
18 */
19 
20 #define DEFINE_OTS_PROCESSOR(klass) \
21  extern "C" ots::RunInfoVInterface* make(std::string const& interfaceUID) \
22  { \
23  return new klass(interfaceUID); \
24  }
25 
26 #endif /* _ots_RunInfoPluginMacro_h_ */