feisty meow concerns codebase
2.140
|
Provides an abstract base for logging mechanisms. More...
#include <eol_aware.h>
Public Member Functions | |
virtual textual::parser_bits::line_ending | eol () |
observes how line endings are to be printed. More... | |
virtual void | eol (textual::parser_bits::line_ending to_set) |
modifies how line endings are to be printed. More... | |
virtual basis::astring | get_ending () |
returns a string for the current ending. More... | |
virtual void | get_ending (basis::astring &to_end) |
appends a string for the current ending to "to_end". More... | |
Provides an abstract base for logging mechanisms.
This assists greatly in generating diagnostic entries polymorphically and in enabling different logging mechanisms to be plugged in easily. Note that all of the functions are defined virtually which enables overriding pretty much all of the base functionality. Use this wisely, if ever.
Definition at line 31 of file eol_aware.h.
|
inlinevirtual |
observes how line endings are to be printed.
Definition at line 34 of file eol_aware.h.
Referenced by loggers::combo_logger::eol().
|
inlinevirtual |
modifies how line endings are to be printed.
Reimplemented in loggers::combo_logger.
Definition at line 37 of file eol_aware.h.
|
inlinevirtual |
returns a string for the current ending.
Definition at line 40 of file eol_aware.h.
References textual::parser_bits::eol_to_chars().
|
inlinevirtual |
appends a string for the current ending to "to_end".
Definition at line 43 of file eol_aware.h.
References textual::parser_bits::eol_to_chars().