|
carl
25.04
Computer ARithmetic Library
|
Logging sink that wraps an arbitrary std::ostream.
More...
#include <Sink.h>


Public Member Functions | |
| StreamSink (std::ostream &_os) | |
| Create a StreamSink from some output stream. More... | |
| std::ostream & | log () noexcept override |
| Abstract logging interface. More... | |
Private Attributes | |
| std::ostream | os |
| Output stream. More... | |
Logging sink that wraps an arbitrary std::ostream.
It is meant to be used for streams like std::cout or std::cerr.
|
inlineexplicit |
Create a StreamSink from some output stream.
| _os | Output stream. |
|
inlineoverridevirtualnoexcept |
Abstract logging interface.
The intended usage is to write any log output to the output stream returned by this function.
Implements carl::logging::Sink.
|
private |