tdaq-develop-2025-02-12
MakeTable.cc
1 #include <cetlib/BasicPluginFactory.h>
2 
3 #include "otsdaq/TableCore/MakeTable.h"
4 #include "otsdaq/TableCore/TableBase.h"
5 
6 namespace ots
7 {
8 TableBase* makeTable(std::string const& tablePluginName)
9 {
10  static cet::BasicPluginFactory basicPluginInterfaceFactory("table", "make");
11 
12  // TLOG_DEBUG(30) << "Making TablePlugin " << tablePluginName;
13  auto ptr = basicPluginInterfaceFactory.makePlugin<TableBase*>(tablePluginName);
14 
15  // TLOG_DEBUG(30) << "Table Plugin " << tablePluginName << " is at " << static_cast<void*>(ptr);
16  return ptr;
17 }
18 } // namespace ots