tdaq-develop-2025-02-12
SlowControlsPluginMacros.h
1 #ifndef _ots_SlowControlsPluginMacro_h_
2 #define _ots_SlowControlsPluginMacro_h_
3 
4 #include <memory>
5 
6 #include "otsdaq/SlowControlsCore/SlowControlsVInterface.h"
7 
8 #define DEFINE_OTS_SLOW_CONTROLS(klass) \
9  extern "C" ots::SlowControlsVInterface* make( \
10  const std::string& pluginType, \
11  const std::string& slowControlsUID, \
12  const ConfigurationTree& configurationTree, \
13  const std::string& pathToControlsConfiguration) \
14  { \
15  return new klass(pluginType, \
16  slowControlsUID, \
17  configurationTree, \
18  pathToControlsConfiguration); \
19  }
20 
21 #endif /* _ots_SlowControlsPluginMacro_h_ */