EICrecon
JANA based reconstruction for the EPIC detector
Loading...
Searching...
No Matches
Public Member Functions | List of all members
eicrecon::SpdlogPrintPolicy Class Referencefinal

default print policy for debug messages More...

#include <SpdlogToActs.h>

Inheritance diagram for eicrecon::SpdlogPrintPolicy:
Inheritance graph
[legend]
Collaboration diagram for eicrecon::SpdlogPrintPolicy:
Collaboration graph
[legend]

Public Member Functions

 SpdlogPrintPolicy (std::shared_ptr< spdlog::logger > out)
 constructor
 
 ~SpdlogPrintPolicy ()=default
 destructor
 
void flush (const Level &lvl, const std::string &input) final
 flush the debug message to the destination stream
 
const std::string & name () const override
 
std::unique_ptr< OutputPrintPolicy > clone (const std::string &name) const override
 

Detailed Description

default print policy for debug messages

This class allows to print debug messages without further modifications to a specified output stream.

Constructor & Destructor Documentation

◆ SpdlogPrintPolicy()

eicrecon::SpdlogPrintPolicy::SpdlogPrintPolicy ( std::shared_ptr< spdlog::logger >  out)
inlineexplicit

constructor

Parameters
[in]outpointer to output stream object
Precondition
out is non-zero

◆ ~SpdlogPrintPolicy()

eicrecon::SpdlogPrintPolicy::~SpdlogPrintPolicy ( )
default

destructor

Member Function Documentation

◆ clone()

std::unique_ptr< OutputPrintPolicy > eicrecon::SpdlogPrintPolicy::clone ( const std::string &  name) const
inlineoverride

Make a copy of this print policy with a new name

Parameters
namethe new name
Returns
the copy

◆ flush()

void eicrecon::SpdlogPrintPolicy::flush ( const Level &  lvl,
const std::string &  input 
)
inlinefinal

flush the debug message to the destination stream

Parameters
[in]lvldebug level of debug message
[in]inputtext of debug message

◆ name()

const std::string & eicrecon::SpdlogPrintPolicy::name ( ) const
inlineoverride

Fulfill OutputPrintPolicy interface. This policy doesn't actually have a name, so the assumption is that somewhere in the decorator hierarchy, there is something that returns a name without delegating to a wrappee, before reaching this overload.

Note
This method will throw an exception
Returns
the name, but it never returns

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