DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
dunedaq::appfwk Namespace Reference

Namespaces

namespace  cmd
 
namespace  dal
 
namespace  opmon
 

Classes

struct  CommandLineInterpreter
 CommandLineInterpreter parses the command-line options given to the application and stores the results as validated data members. More...
 
class  ConfigurationManagerOwner
 

Functions

std::shared_ptr< DAQModule > make_module (std::string const &plugin_name, std::string const &instance_name)
 Load a DAQModule plugin and return a shared_ptr to the contained DAQModule class.
 

Function Documentation

◆ make_module()

std::shared_ptr< DAQModule > dunedaq::appfwk::make_module ( std::string const & plugin_name,
std::string const & instance_name )
inline

Load a DAQModule plugin and return a shared_ptr to the contained DAQModule class.

Parameters
plugin_nameName of the plugin, e.g. DebugLoggingDAQModule
instance_nameName of the returned DAQModule instance, e.g. DebugLogger1
Returns
shared_ptr to created DAQModule instance

Definition at line 35 of file DAQModule.hxx.

36{
37 static cet::BasicPluginFactory bpf("duneDAQModule", "make");
38
39 std::shared_ptr<DAQModule> mod_ptr;
40 try {
41 mod_ptr = bpf.makePlugin<std::shared_ptr<DAQModule>>(plugin_name, instance_name);
42 } catch (const cet::exception& cexpt) {
43 throw DAQModuleCreationFailed(ERS_HERE, plugin_name, instance_name, cexpt);
44 }
45 return mod_ptr;
46}
#define ERS_HERE