DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
TPCChannelMap.hpp File Reference
#include "cetlib/BasicPluginFactory.h"
#include "cetlib/compiler_macros.h"
#include "ers/Issue.hpp"
#include "logging/Logging.hpp"
#include <optional>
Include dependency graph for TPCChannelMap.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  dunedaq
 Including Qt Headers.
 

Macros

#define EXTERN_C_FUNC_DECLARE_START
 
#define DEFINE_DUNE_DET_TPCCHANNEL_MAP(klass)
 Declare the function that will be called by the plugin loader.
 

Functions

 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.
 

Variables

 dunedaq::InvalidStreamID
 < Namespace
 

Macro Definition Documentation

◆ 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
klassClass 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:
extern "C" \
{

Definition at line 13 of file TPCChannelMap.hpp.

13#define EXTERN_C_FUNC_DECLARE_START \
14 extern "C" \
15 {