Base class for data dumpers. More...
#include <DumperBase.h>
Classes | |
| struct | IndentSettings |
Public Member Functions | |
| DumperBase () | |
| Default constructor: no indentation. More... | |
| template<typename Stream > | |
| decltype(auto) | indenter (Stream &&out) const |
Returns an Indenter object tied to this dumper and out stream. More... | |
Protected Member Functions | |
| IndentSettings & | indentSettings () |
| IndentSettings const & | indentSettings () const |
| IndentSettings & | saveIndentSettings () |
| Stacks a copy of the current settings, and returns the "new" ones. More... | |
| IndentSettings & | restoreIndentSettings () |
| Restores and returns the last saved settings. More... | |
Private Attributes | |
| std::vector< IndentSettings > | fIndentSettings |
| All indentation settings. More... | |
Base class for data dumpers.
This class provides some basic and common infrastructure:
Definition at line 39 of file DumperBase.h.
|
inline |
Default constructor: no indentation.
Definition at line 61 of file DumperBase.h.
|
inline |
Returns an Indenter object tied to this dumper and out stream.
Definition at line 202 of file DumperBase.h.
|
inlineprotected |
Definition at line 207 of file DumperBase.h.
|
inlineprotected |
Definition at line 208 of file DumperBase.h.
|
inlineprotected |
Restores and returns the last saved settings.
Definition at line 220 of file DumperBase.h.
|
inlineprotected |
Stacks a copy of the current settings, and returns the "new" ones.
Definition at line 212 of file DumperBase.h.
|
private |
All indentation settings.
Definition at line 56 of file DumperBase.h.
1.8.5