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

base class for decorating the debug output More...

#include <acts/blob/master/Core/include/Acts/Utilities/Logger.hpp>

+ Inheritance diagram for Acts::Logging::OutputDecorator:
+ Collaboration diagram for Acts::Logging::OutputDecorator:

Public Member Functions

 OutputDecorator (std::unique_ptr< OutputPrintPolicy > wrappee)
 constructor wrapping actual output print policy
 
void flush (const Level &lvl, const std::ostringstream &input) override
 flush the debug message to the destination stream
 
- Public Member Functions inherited from Acts::Logging::OutputPrintPolicy
virtual ~OutputPrintPolicy ()=default
 virtual default destructor
 

Private Attributes

std::unique_ptr
< OutputPrintPolicy
m_wrappee
 wrapped object for printing the debug message
 

Detailed Description

base class for decorating the debug output

Derived classes may augment the debug message with additional information. Chaining different decorators is possible to customize the output to your needs.

Definition at line 288 of file Logger.hpp.

View newest version in sPHENIX GitHub at line 288 of file Logger.hpp

Constructor & Destructor Documentation

Acts::Logging::OutputDecorator::OutputDecorator ( std::unique_ptr< OutputPrintPolicy wrappee)
inlineexplicit

constructor wrapping actual output print policy

Parameters
[in]wrappeeoutput print policy object which is wrapped by this decorator object

Definition at line 294 of file Logger.hpp.

View newest version in sPHENIX GitHub at line 294 of file Logger.hpp

Member Function Documentation

void Acts::Logging::OutputDecorator::flush ( const Level lvl,
const std::ostringstream &  input 
)
inlineoverridevirtual

flush the debug message to the destination stream

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

This function delegates the flushing of the debug message to its wrapped object.

Implements Acts::Logging::OutputPrintPolicy.

Reimplemented in Acts::Logging::LevelOutputDecorator, Acts::Logging::ThreadOutputDecorator, Acts::Logging::TimedOutputDecorator, Acts::Logging::NamedOutputDecorator, and Acts::Logging::MirrorOutputDecorator.

Definition at line 304 of file Logger.hpp.

View newest version in sPHENIX GitHub at line 304 of file Logger.hpp

References m_wrappee.

Referenced by Acts::Logging::MirrorOutputDecorator::flush(), Acts::Logging::NamedOutputDecorator::flush(), Acts::Logging::TimedOutputDecorator::flush(), Acts::Logging::ThreadOutputDecorator::flush(), and Acts::Logging::LevelOutputDecorator::flush().

+ Here is the caller graph for this function:

Member Data Documentation

std::unique_ptr<OutputPrintPolicy> Acts::Logging::OutputDecorator::m_wrappee
private

wrapped object for printing the debug message

Definition at line 310 of file Logger.hpp.

View newest version in sPHENIX GitHub at line 310 of file Logger.hpp

Referenced by flush().


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