otsdaq  v2_05_02_indev
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(const std::string& pluginType, \
10  const std::string& slowControlsUID, \
11  const ConfigurationTree& configurationTree, \
12  const std::string& pathToControlsConfiguration) \
13  { \
14  return new klass(pluginType, slowControlsUID, configurationTree, pathToControlsConfiguration); \
15  }
16 
17 #endif /* _ots_SlowControlsPluginMacro_h_ */