All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
flashmatch::LoggerFeature Class Reference

#include <LoggerFeature.h>

Inheritance diagram for flashmatch::LoggerFeature:
flashmatch::BaseAlgorithm flashmatch::FlashMatchManager flashmatch::BaseFlashFilter flashmatch::BaseFlashHypothesis flashmatch::BaseFlashMatch flashmatch::BaseProhibitAlgo flashmatch::BaseTPCFilter flashmatch::LightPath flashmatch::MaxNPEWindow flashmatch::ChargeAnalytical flashmatch::PhotonLibHypothesis flashmatch::CommonAmps flashmatch::QLLMatch flashmatch::QWeightPoint flashmatch::TimeCompatMatch flashmatch::NPtFilter

Public Member Functions

 LoggerFeature (const std::string logger_name="LoggerFeature")
 Default constructor. More...
 
 LoggerFeature (const LoggerFeature &original)
 Default copy constructor. More...
 
virtual ~LoggerFeature ()
 Default destructor. More...
 
const flashmatch::loggerlogger () const
 Logger getter. More...
 
void set_verbosity (::flashmatch::msg::Level_t level)
 Verbosity level. More...
 
const std::string & name () const
 Name getter, defined in a logger instance attribute. More...
 

Private Attributes

flashmatch::logger_logger
 logger More...
 

Detailed Description

Framework base class equipped with a logger class

Definition at line 27 of file LoggerFeature.h.

Constructor & Destructor Documentation

flashmatch::LoggerFeature::LoggerFeature ( const std::string  logger_name = "LoggerFeature")
inline

Default constructor.

Definition at line 32 of file LoggerFeature.h.

33  : _logger(nullptr)
34  { _logger = &(::flashmatch::logger::get(logger_name)); }
flashmatch::logger * _logger
logger
Definition: LoggerFeature.h:56
static logger & get(const std::string name)
Getter of a message instance.
flashmatch::LoggerFeature::LoggerFeature ( const LoggerFeature original)
inline

Default copy constructor.

Definition at line 37 of file LoggerFeature.h.

37 : _logger(original._logger) {}
flashmatch::logger * _logger
logger
Definition: LoggerFeature.h:56
virtual flashmatch::LoggerFeature::~LoggerFeature ( )
inlinevirtual

Default destructor.

Definition at line 40 of file LoggerFeature.h.

40 {};

Member Function Documentation

const flashmatch::logger& flashmatch::LoggerFeature::logger ( ) const
inline

Logger getter.

Definition at line 43 of file LoggerFeature.h.

44  { return *_logger; }
flashmatch::logger * _logger
logger
Definition: LoggerFeature.h:56
const std::string& flashmatch::LoggerFeature::name ( ) const
inline

Name getter, defined in a logger instance attribute.

Definition at line 51 of file LoggerFeature.h.

52  { return logger().name(); }
const flashmatch::logger & logger() const
Logger getter.
Definition: LoggerFeature.h:43
const std::string & name() const
Logger&#39;s name.
void flashmatch::LoggerFeature::set_verbosity ( ::flashmatch::msg::Level_t  level)
inline

Verbosity level.

Definition at line 47 of file LoggerFeature.h.

48  { _logger->set(level); }
flashmatch::logger * _logger
logger
Definition: LoggerFeature.h:56
void set(const msg::Level_t level)
Verbosity level setter.

Member Data Documentation

flashmatch::logger* flashmatch::LoggerFeature::_logger
private

logger

Definition at line 56 of file LoggerFeature.h.


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