Class Acts::Logging::DefaultPrintPolicy¶
-
class DefaultPrintPolicy : public Acts::Logging::OutputPrintPolicy¶
default print policy for debug messages
This class allows to print debug messages without further modifications to a specified output stream.
Public Functions
-
inline explicit DefaultPrintPolicy(std::ostream *out = &std::cout)¶
constructor
- Parameters
out – [in] pointer to output stream object
- Pre
out
is non-zero
-
inline virtual std::unique_ptr<OutputPrintPolicy> clone(const std::string &name) const override¶
Make a copy of this print policy with a new name.
- Parameters
name – the new name
- Returns
the copy
-
inline virtual void flush(const Level &lvl, const std::string &input) final¶
flush the debug message to the destination stream
- Parameters
lvl – [in] debug level of debug message
input – [in] text of debug message
-
inline virtual const std::string &name() const override¶
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
-
inline explicit DefaultPrintPolicy(std::ostream *out = &std::cout)¶