artdaq
v2_02_03
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Pages
src
artdaq
Application
Routing
PolicyMacros.hh
1
#ifndef artdaq_Application_Routing_PolicyMacros_hh
2
#define artdaq_Application_Routing_PolicyMacros_hh
3
4
#include "artdaq/Application/Routing/RoutingMasterPolicy.hh"
5
#include "fhiclcpp/fwd.h"
6
7
#include <memory>
8
9
namespace
artdaq
10
{
16
typedef
std::unique_ptr<artdaq::RoutingMasterPolicy>
makeFunc_t
(fhicl::ParameterSet
const
& ps);
17
}
18
19
#define DEFINE_ARTDAQ_ROUTING_POLICY(klass) \
20
extern "C" \
21
std::unique_ptr<artdaq::RoutingMasterPolicy> \
22
make(fhicl::ParameterSet const & ps) { \
23
return std::unique_ptr<artdaq::RoutingMasterPolicy>(new klass(ps)); \
24
}
25
26
#endif
/* artdaq_Application_Routing_PolicyMacros_hh */
artdaq::makeFunc_t
std::unique_ptr< artdaq::CommandableFragmentGenerator > makeFunc_t(fhicl::ParameterSet const &ps)
Constructs a CommandableFragmentGenerator instance, and returns a pointer to it.
Definition:
GeneratorMacros.hh:16
Generated on Tue May 23 2017 11:54:47 for artdaq by
1.8.5