artdaq  v3_12_02
MakeTransferPlugin.hh
1 #ifndef artdaq_TransferPlugins_MakeTransferPlugin_hh
2 #define artdaq_TransferPlugins_MakeTransferPlugin_hh
3 
4 // JCF, Sep-6-2016
5 
6 // MakeTransferPlugin expects the following arguments:
7 
8 // A FHiCL parameter set which contains within it a table defining a
9 // transfer plugin
10 
11 // The name of that table
12 
13 // The send/receive role of the plugin
14 
15 #include "artdaq/TransferPlugins/TransferInterface.hh"
16 
17 #include <memory>
18 
19 namespace artdaq {
27 std::unique_ptr<TransferInterface>
28 MakeTransferPlugin(const fhicl::ParameterSet& pset,
29  const std::string& plugin_label,
31 } // namespace artdaq
32 
33 #endif
std::unique_ptr< artdaq::TransferInterface > MakeTransferPlugin(const fhicl::ParameterSet &pset, const std::string &plugin_label, TransferInterface::Role role)
Load a TransferInterface plugin.
Role
Used to determine if a TransferInterface is a Sender or Receiver.