artdaq_utilities  v1_05_00
makeMetricPlugin.hh
1 #ifndef artdaq_Plugins_makeMetricPlugin_hh
2 #define artdaq_Plugins_makeMetricPlugin_hh
3 // Using LibraryManager, find the correct library and return an instance
4 // of the specified generator.
5 
6 #include "fhiclcpp/fwd.h"
7 
8 #include <memory>
9 #include <string>
10 
14 namespace artdaq {
15 class MetricPlugin;
16 
24 std::unique_ptr<MetricPlugin>
25 makeMetricPlugin(std::string const& generator_plugin_spec,
26  fhicl::ParameterSet const& ps, std::string const& app_name);
27 } // namespace artdaq
28 #endif /* artdaq_Plugins_makeMetricPlugin_hh */
std::unique_ptr< MetricPlugin > makeMetricPlugin(std::string const &generator_plugin_spec, fhicl::ParameterSet const &ps, std::string const &app_name)
Load a given MetricPlugin and return a pointer to it.