default print policy for debug messages
More...
#include <SpdlogToActs.h>
|
| | 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 |
| |
default print policy for debug messages
This class allows to print debug messages without further modifications to a specified output stream.
◆ SpdlogPrintPolicy()
| eicrecon::SpdlogPrintPolicy::SpdlogPrintPolicy |
( |
std::shared_ptr< spdlog::logger > |
out | ) |
|
|
inlineexplicit |
constructor
- Parameters
-
| [in] | out | pointer to output stream object |
- Precondition
out is non-zero
◆ ~SpdlogPrintPolicy()
| eicrecon::SpdlogPrintPolicy::~SpdlogPrintPolicy |
( |
| ) |
|
|
default |
◆ 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
-
- 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] | lvl | debug level of debug message |
| [in] | input | text 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: