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