#include "cetlib/BasicPluginFactory.h"
#include "cetlib/compiler_macros.h"
#include "ers/Issue.hpp"
#include "logging/Logging.hpp"
#include <optional>
Go to the source code of this file.
|
namespace | dunedaq |
| Including Qt Headers.
|
|
|
| dunedaq::ERS_DECLARE_ISSUE (detchannelmaps, ChannelMapCreationFailed, "Failed to create TPCChannelMap of type "<< plugin_name,((std::string) plugin_name)) ERS_DECLARE_ISSUE(detchannelmaps |
| A ERS Issue for TPCChannelMap creation failure.
|
|
◆ DEFINE_DUNE_DET_TPCCHANNEL_MAP
#define DEFINE_DUNE_DET_TPCCHANNEL_MAP |
( |
| klass | ) |
|
Value: EXTERN_C_FUNC_DECLARE_START \
std::shared_ptr<dunedaq::detchannelmaps::TPCChannelMap> make() \
{ \
return std::shared_ptr<dunedaq::detchannelmaps::TPCChannelMap>(new klass()); \
} \
}
Declare the function that will be called by the plugin loader.
- Parameters
-
klass | Class to be defined as a DUNE DAQ Module |
Definition at line 22 of file TPCChannelMap.hpp.
22#define DEFINE_DUNE_DET_TPCCHANNEL_MAP(klass) \
23 EXTERN_C_FUNC_DECLARE_START \
24 std::shared_ptr<dunedaq::detchannelmaps::TPCChannelMap> make() \
25 { \
26 return std::shared_ptr<dunedaq::detchannelmaps::TPCChannelMap>(new klass()); \
27 } \
28 }
◆ EXTERN_C_FUNC_DECLARE_START
#define EXTERN_C_FUNC_DECLARE_START |
Value:
Definition at line 13 of file TPCChannelMap.hpp.
13#define EXTERN_C_FUNC_DECLARE_START \
14 extern "C" \
15 {