Macros
ServiceMacros.h File Reference
#include "art/Framework/Services/Registry/ServiceTable.h"
#include "art/Framework/Services/Registry/detail/ServiceHandleAllowed.h"
#include "art/Framework/Services/Registry/detail/helper_macros.h"
#include "cetlib/ProvideFilePathMacro.h"
#include "fhiclcpp/types/AllowedConfigurationMacro.h"

Go to the source code of this file.

Macros

#define DECLARE_ART_SERVICE(svc, scope)   DECLARE_ART_SERVICE_DETAIL(svc, scope)
 
#define DEFINE_ART_SERVICE(svc)
 
#define DECLARE_ART_SERVICE_INTERFACE(svc, scope)
 
#define DECLARE_ART_SERVICE_INTERFACE_IMPL(svc, iface, scope)
 
#define DEFINE_ART_SERVICE_INTERFACE_IMPL(svc, iface)
 
#define DECLARE_ART_SYSTEM_SERVICE(svc, scope)    DECLARE_ART_SYSTEM_SERVICE_DETAIL(svc, scope)
 

Macro Definition Documentation

#define DECLARE_ART_SERVICE (   svc,
  scope 
)    DECLARE_ART_SERVICE_DETAIL(svc, scope)
#define DECLARE_ART_SERVICE_INTERFACE (   svc,
  scope 
)
Value:
static_assert( \
art::detail::handle_allowed_v<svc>, \
"\n\nart-error: You cannot create a service interface for type " \
"'" ART_DETAIL_STRINGIZED_TYPE(svc) "'.\n" \
" There is a base class of " \
"this type for which a ServiceHandle " \
"cannot\n" \
" be constructed. Please " \
"contact artists@fnal.gov for " \
"guidance.\n"); \
#define ART_DETAIL_STRINGIZED_TYPE(svc)
Definition: helper_macros.h:22
#define DECLARE_ART_SERVICE_INTERFACE_DETAIL(iface, scopeArg)

Definition at line 99 of file ServiceMacros.h.

#define DECLARE_ART_SERVICE_INTERFACE_IMPL (   svc,
  iface,
  scope 
)
Value:
static_assert( \
art::detail::handle_allowed_v<svc>, \
"\n\nart-error: You cannot create a service implementation for type " \
"'" ART_DETAIL_STRINGIZED_TYPE(svc) "'.\n" \
" There is a base class of " \
"this type for which a ServiceHandle " \
"cannot\n" \
" be constructed. Please " \
"contact artists@fnal.gov for " \
"guidance.\n"); \
#define ART_DETAIL_STRINGIZED_TYPE(svc)
Definition: helper_macros.h:22
#define DECLARE_ART_SERVICE_INTERFACE_IMPL_DETAIL(svc, iface, scopeArg)

Definition at line 113 of file ServiceMacros.h.

#define DECLARE_ART_SYSTEM_SERVICE (   svc,
  scope 
)    DECLARE_ART_SYSTEM_SERVICE_DETAIL(svc, scope)
#define DEFINE_ART_SERVICE (   svc)
Value:
#define CET_PROVIDE_FILE_PATH()
#define FHICL_PROVIDE_ALLOWED_CONFIGURATION(klass)
#define DEFINE_ART_SH_CREATE(svc)

Definition at line 93 of file ServiceMacros.h.

Referenced by art::FileCatalogMetadata::addMetadata(), beamlinegeo::BeamlineGeometry::BeamlineComponentPos(), beamlineutil::BeamlineChannelMap::ChannelIDs(), nutools::dbi::DBIService::CreateTable(), util::HoughCalc::DistHit(), geo::LiveGeometry::DistToClosestBadRegion(), calib::Calibrator::EnsureTimingCacheVldTime(), beamlineutil::BeamlineMagneticField::FieldFromCurrent(), ifbeam_ns::IFBeam::getBeamFolder(), nucondb_ns::nucondbService::getFolder(), rwgt::MCReweight::GetGENIEWeight(), novaddt::ChannelMapService::GetWMap(), ds::DetectorService::HandleRun(), ifdh_ns::IFDH::IFDH(), novaddt::WaveformProcessor::initdcs(), cheat::BackTracker::InterceptsDetector(), cmap::CMap::LoadExceptions(), art::TimeTracker::logToDestination_(), art::MemoryAdjuster::MemoryAdjuster(), art::MemoryTracker::MemoryTracker(), evd::RawDrawingOptions::ParseModuleInstanceString(), evd::RecoDrawingOptions::ParseModuleInstanceString(), art::Tracer::postModuleEndJob(), evdb::EventDisplay::postProcessEvent(), photrans::FiberBrightness::preBeginRun(), nova::dbi::RunHistoryService::preBeginSubrun(), novaddt::StaticMapService::readMapFromFile(), lem::LEMLibrary::reconfigure(), evd::PlotDrawingOptions::reconfigure(), evd::SimulationDrawingOptions::reconfigure(), evd::GeometryDrawingOptions::reconfigure(), art::TFileService::requestsToCloseFile_(), calib::CDPStorage::RetrieveDriftCalFromFile(), locator::CelestialLocator::SetDetector(), geo::Geometry::setDetectorID(), evdb::Colors::SetStyle(), art::MemoryTracker::summary_(), beamlineutil::BeamlineCalibration::TimeCorrection(), red::OverburdenCalculator::trace(), and evdb::ScanOptions::~ScanOptions().

#define DEFINE_ART_SERVICE_INTERFACE_IMPL (   svc,
  iface 
)