ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Acts::Logging::MirrorOutputDecorator Exception Referencefinal

mirror debug message More...

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

Public Member Functions

 MirrorOutputDecorator (std::unique_ptr< OutputPrintPolicy > wrappee, unsigned int maxWidth=180)
 constructor
 
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::OutputDecorator
 OutputDecorator (std::unique_ptr< OutputPrintPolicy > wrappee)
 constructor wrapping actual output print policy
 
- Public Member Functions inherited from Acts::Logging::OutputPrintPolicy
virtual ~OutputPrintPolicy ()=default
 virtual default destructor
 

Private Attributes

unsigned int m_maxWidth
 maximum width of field for printing the name
 

Detailed Description

mirror debug message

This is just a fun example decorator which mirrors the debug message.

Definition at line 20 of file CustomDefaultLogger.cpp.

View newest version in sPHENIX GitHub at line 20 of file CustomDefaultLogger.cpp

Constructor & Destructor Documentation

Acts::Logging::MirrorOutputDecorator::MirrorOutputDecorator ( std::unique_ptr< OutputPrintPolicy wrappee,
unsigned int  maxWidth = 180 
)
inline

constructor

Parameters
[in]wrappeeoutput print policy object to be wrapped
[in]maxWidthmaximum width of field used for name

Definition at line 26 of file CustomDefaultLogger.cpp.

View newest version in sPHENIX GitHub at line 26 of file CustomDefaultLogger.cpp

Member Function Documentation

void Acts::Logging::MirrorOutputDecorator::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 inverts the given string and flushes it to the right.

Reimplemented from Acts::Logging::OutputDecorator.

Definition at line 36 of file CustomDefaultLogger.cpp.

View newest version in sPHENIX GitHub at line 36 of file CustomDefaultLogger.cpp

References Acts::Logging::OutputDecorator::flush(), m_maxWidth, reverse, and right.

+ Here is the call graph for this function:

Member Data Documentation

unsigned int Acts::Logging::MirrorOutputDecorator::m_maxWidth
private

maximum width of field for printing the name

Definition at line 46 of file CustomDefaultLogger.cpp.

View newest version in sPHENIX GitHub at line 46 of file CustomDefaultLogger.cpp

Referenced by flush().


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