otsdaq  v2_05_02_indev
XDAQApplicationMacros.h
1 #ifndef OTSDAQ_CORE_MACROS_XDAQAPPLICATIONMACROS_H
2 #define OTSDAQ_CORE_MACROS_XDAQAPPLICATIONMACROS_H
3 
4 #undef XDAQ_INSTANTIATOR
5 #undef XDAQ_INSTANTIATOR_IMPL
6 
9 #define XDAQ_INSTANTIATOR() static xdaq::Application* instantiate(xdaq::ApplicationStub* s)
10 
13 #define XDAQ_INSTANTIATOR_IMPL(QUALIFIED_CLASS_NAME) \
14  xdaq::Application* QUALIFIED_CLASS_NAME::instantiate(xdaq::ApplicationStub* stub) { return new QUALIFIED_CLASS_NAME(stub); }
15 
16 #endif