artdaq
v3_02_01
Main Page
Namespaces
Classes
Files
File List
File Members
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
#include "cetlib/compiler_macros.h"
7
8
#include <memory>
9
10
namespace
artdaq
11
{
17
typedef
std::unique_ptr<artdaq::RoutingMasterPolicy>
makeFunc_t
(fhicl::ParameterSet
const
& ps);
18
}
19
20
#ifndef EXTERN_C_FUNC_DECLARE_START
21
#define EXTERN_C_FUNC_DECLARE_START extern "C" {
22
#endif
23
24
#define DEFINE_ARTDAQ_ROUTING_POLICY(klass) \
25
EXTERN_C_FUNC_DECLARE_START \
26
std::unique_ptr<artdaq::RoutingMasterPolicy> \
27
make(fhicl::ParameterSet const & ps) { \
28
return std::unique_ptr<artdaq::RoutingMasterPolicy>(new klass(ps)); \
29
}}
30
31
#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:17
src
artdaq
Application
Routing
PolicyMacros.hh
Generated on Wed Jun 6 2018 11:36:55 for artdaq by
1.8.5