ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
FW::BareService Class Reference

#include <acts/blob/master/Examples/Framework/include/ACTFW/Framework/BareService.hpp>

+ Inheritance diagram for FW::BareService:
+ Collaboration diagram for FW::BareService:

Public Member Functions

 BareService (std::string name, Acts::Logging::Level level=Acts::Logging::INFO)
 
std::string name () const finaloverride
 The service name.
 
void startRun () override
 Default noop implementation for the start-of-run hook.
 
void prepare (AlgorithmContext &ctx) override
 Default noop implementation for the per-event prepare hook.
 
- Public Member Functions inherited from FW::IService
virtual ~IService ()=default
 

Protected Member Functions

const Acts::Loggerlogger () const
 

Private Attributes

std::string m_name
 
std::unique_ptr< const
Acts::Logger
m_logger
 

Detailed Description

A helper class for users to implement framework services.

This class provides default implementations for all interface methods and and adds a default logger that can be used directly in subclasses. Service implementations only need to implement the method that are actually doing something.

Definition at line 29 of file BareService.hpp.

View newest version in sPHENIX GitHub at line 29 of file BareService.hpp

Constructor & Destructor Documentation

FW::BareService::BareService ( std::string  name,
Acts::Logging::Level  level = Acts::Logging::INFO 
)

Definition at line 13 of file BareService.cpp.

View newest version in sPHENIX GitHub at line 13 of file BareService.cpp

Member Function Documentation

const Acts::Logger& FW::BareService::logger ( ) const
inlineprotected

Definition at line 44 of file BareService.hpp.

View newest version in sPHENIX GitHub at line 44 of file BareService.hpp

References m_logger.

std::string FW::BareService::name ( ) const
finaloverridevirtual

The service name.

Implements FW::IService.

Definition at line 17 of file BareService.cpp.

View newest version in sPHENIX GitHub at line 17 of file BareService.cpp

References m_name.

void FW::BareService::prepare ( AlgorithmContext ctx)
overridevirtual

Default noop implementation for the per-event prepare hook.

Implements FW::IService.

Reimplemented in FW::HelloService.

Definition at line 25 of file BareService.cpp.

View newest version in sPHENIX GitHub at line 25 of file BareService.cpp

void FW::BareService::startRun ( )
overridevirtual

Default noop implementation for the start-of-run hook.

Implements FW::IService.

Reimplemented in FW::HelloService.

Definition at line 21 of file BareService.cpp.

View newest version in sPHENIX GitHub at line 21 of file BareService.cpp

Member Data Documentation

std::unique_ptr<const Acts::Logger> FW::BareService::m_logger
private

Definition at line 48 of file BareService.hpp.

View newest version in sPHENIX GitHub at line 48 of file BareService.hpp

Referenced by logger().

std::string FW::BareService::m_name
private

Definition at line 47 of file BareService.hpp.

View newest version in sPHENIX GitHub at line 47 of file BareService.hpp

Referenced by name().


The documentation for this class was generated from the following files: