|
ACTS
Experiment-independent tracking
|
base class for decorating the debug output More...
#include <Acts/Utilities/Logger.hpp>
Public Member Functions | |
| OutputDecorator (std::unique_ptr< OutputPrintPolicy > wrappee) | |
| constructor wrapping actual output print policy | |
| void | flush (const Level &lvl, const std::string &input) override |
| flush the debug message to the destination stream | |
| const std::string & | name () const override |
| Return the name of the output decorator (forwards to wrappee). | |
| Public Member Functions inherited from Acts::Logging::OutputPrintPolicy | |
| virtual | ~OutputPrintPolicy ()=default |
| virtual default destructor | |
| virtual std::unique_ptr< OutputPrintPolicy > | clone (const std::string &name) const =0 |
| Make a copy of this print policy with a new name. | |
Protected Attributes | |
| std::unique_ptr< OutputPrintPolicy > | m_wrappee |
| wrapped object for printing the debug message | |
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.
|
explicit |
constructor wrapping actual output print policy
| [in] | wrappee | output print policy object which is wrapped by this decorator object |
|
overridevirtual |
flush the debug message to the destination stream
| [in] | lvl | debug level of debug message |
| [in] | input | text of debug message |
This function delegates the flushing of the debug message to its wrapped object.
Implements Acts::Logging::OutputPrintPolicy.
Reimplemented in Acts::Logging::ThreadOutputDecorator, and Acts::Logging::TimedOutputDecorator.
|
overridevirtual |
Return the name of the output decorator (forwards to wrappee).
Implements Acts::Logging::OutputPrintPolicy.
|
protected |
wrapped object for printing the debug message