00001 #ifndef _ots_ControlsPluginMacro_h_
00002 #define _ots_ControlsPluginMacro_h_
00003
00004 #include "otsdaq-core/ControlsCore/ControlsVInterface.h"
00005 #include <memory>
00006
00007 #define DEFINE_OTS_CONTROLS(klass) \
00008 extern "C" \
00009 ots::ControlsVInterface* \
00010 make(const std::string& controlsUID, const ConfigurationTree& configurationTree, const std::string& pathToControlsConfiguration) \
00011 {\
00012 return new klass(controlsUID, configurationTree, pathToControlsConfiguration); \
00013 }
00014
00015 #endif
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033