otsdaq  v2_05_02_indev
MakeInterface.cc
1 #include "otsdaq/PluginMakers/MakeInterface.h"
2 #include "otsdaq/FECore/FEVInterface.h"
3 
4 #include <cetlib/BasicPluginFactory.h>
5 
6 std::unique_ptr<ots::FEVInterface> ots::makeInterface(const std::string& interfacePluginName,
7  const std::string& interfaceUID,
8  const ots::ConfigurationTree& configuration,
9  const std::string& pathToInterfaceConfiguration)
10 
11 {
12  static cet::BasicPluginFactory basicPluginInterfaceFactory("interface", "make");
13 
14  return basicPluginInterfaceFactory.makePlugin<std::unique_ptr<ots::FEVInterface>, const std::string&, const ots::ConfigurationTree&, const std::string&>(
15  interfacePluginName, interfaceUID, configuration, pathToInterfaceConfiguration);
16 }