00001 #ifndef _ots_TablePluginMacro_h_
00002 #define _ots_TablePluginMacro_h_
00003
00004 #include "otsdaq-core/TableCore/TableBase.h"
00005
00006 namespace ots
00007 {
00008 typedef TableBase*(cbmakeFunc_t)();
00009 }
00010
00011 #define DEFINE_OTS_TABLE(klass) \
00012 extern "C" TableBase* make() { return new klass(); }
00013 #endif