|
dxd - dynax driver framework 3.0.2
cross platform open source driver development framework
|
#include "dx_ansi_colors.h"#include "dx_exception.h"#include "dx_log.h"#include <iostream>#include <fstream>#include <sstream>#include <map>#include <deque>#include <memory>#include <vector>#include <algorithm>#include <mutex>#include <cstddef>#include <cstdlib>#include <cstring>#include <string_view>Classes | |
| class | dx::redirect::file |
| a stream into a file, beside its other sinks: instances naming one path share its buffer - one per ASIO client, left in any order - and each line is written once More... | |
| class | dx::redirect::indent |
| 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... | |
| struct | dx::redirect::indent::dflt |
| class | dx::redirect::indent::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 line to each sink whole, its start prefixed by the writing thread's indent. A writer never waits: it gathers its line and puts it into the distributor's dx::log::circular at the line end (at sync() too, where the stream does not flush every insertion); whoever finds the sinks free (io_mutex) takes the ring into them. 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 io_mutex. More... | |
| class | dx::redirect::join |
| a buffer as a sink of a stream for the object's life - a sink's last member, so it leaves before the sink's own members go More... | |
| class | dx::redirect::line |
| a sink taking a stream's lines, each whole in one call, without its line end: what a system log, the debugger or an installation log keeps as an entry More... | |
| class | dx::redirect::screen |
| the terminal's live block below its scrolling text: a row per writer whose line stands open, as its own terminal would show it - a carriage return returns to the row's start, the text after it overwrites the row in place, a line end closes the row into the text above. Without an open row a line passes as it is. Every distributor on the terminal draws through the one screen, under io_mutex More... | |
Namespaces | |
| namespace | dx |
| dynax driver framework interface namespace | |
| namespace | dx::redirect |
| redirect std IO: a stream's distributor (dx::redirect::indent::streambuf) hands every write to the sinks joined to it - any std::streambuf: the stream's own, a file's, a line sink's (dx::redirect::line) - which join and leave in any order, each for its object's life (dx::redirect::join) | |