one nesting level on a stream carrying an dx::redirect::indent::streambuf, taken for the object's scope: every line written inside it is prefixed. Levels nest LIFO per thread
More...
#include <dx_redirect.h>
|
| struct | dflt |
| class | streambuf |
| | a stream's distributor: over the stream's own buffer while a sink is joined, the stream's own restored once the last one left - every write to each sink, a line's start prefixed by the writing thread's indent, a line sink given each line whole. Every distributor joins the stream's own buffer: the stream stays where it was, indented - a sink wanting the stream for itself leaves it (leave(*origin)). std::cout, std::clog and std::cerr get theirs at their first indent level or sink. A buffer joined twice is written once. Joining and leaving take the lock the writes take (io_mutex). More...
|
one nesting level on a stream carrying an dx::redirect::indent::streambuf, taken for the object's scope: every line written inside it is prefixed. Levels nest LIFO per thread
◆ indent() [1/3]
| dx::redirect::indent::indent |
( |
| ) |
|
|
default |
◆ indent() [2/3]
| dx::redirect::indent::indent |
( |
std::ostream & | ostream | ) |
|
|
inline |
◆ indent() [3/3]
| dx::redirect::indent::indent |
( |
std::ostream & | ostream, |
|
|
int | amount, |
|
|
std::string | pattern = dflt::pattern ) |
|
inline |
◆ ~indent()
| dx::redirect::indent::~indent |
( |
| ) |
|
|
inline |
◆ initialize() [1/2]
| void dx::redirect::indent::initialize |
( |
std::ostream & | ostream | ) |
|
|
inline |
◆ initialize() [2/2]
| void dx::redirect::indent::initialize |
( |
std::ostream & | ostream, |
|
|
int | amount, |
|
|
std::string | pattern = dflt::pattern ) |
|
inline |
◆ streambuf
| dx::redirect::indent::streambuf* dx::redirect::indent::streambuf |
The documentation for this class was generated from the following file: