otsdaq  v1_01_03
 All Classes Namespaces Functions
ControlsPluginMacros.h
1 #ifndef _ots_ControlsPluginMacro_h_
2 #define _ots_ControlsPluginMacro_h_
3 
4 #include "otsdaq-core/ControlsCore/ControlsVInterface.h"
5 #include <memory>
6 
7 #define DEFINE_OTS_CONTROLS(klass) \
8  extern "C" \
9  ots::ControlsVInterface* \
10  make(const std::string& controlsUID, const ConfigurationTree& configurationTree, const std::string& pathToControlsConfiguration) \
11  {\
12  return new klass(controlsUID, configurationTree, pathToControlsConfiguration); \
13  }
14 
15 #endif /* _ots_ControlsPluginMacro_h_ */
16 
17 
18 
19 
20 
21 
22 
23 
24 
25 
26 
27 
28 
29 
30 
31 
32 
33