|
Evo C++ Library v0.5.1
|
#include <evo/fmt.h>
Used to write formatted output with caching (used internally).
Public Types | |
| typedef List< String > | StringList |
| List of String values. More... | |
Public Member Functions | |
| CachedWriter (FmtTable &table, Type type=tTEXT) | |
| Constructor. More... | |
| template<class T > | |
| T & | write_endrow (T &out) |
| Write end to current row. More... | |
| template<class T > | |
| T & | write_finished (T &out) |
| Finish writing table. More... | |
| template<class T > | |
| T & | write_header (T &out) |
| Write header output. More... | |
| template<class T , class U > | |
| T & | write_value (T &out, const U &fmtval) |
| Write next value. More... | |
Public Attributes | |
| StringList * | current_row |
| Pointer to current row, NULL if about to start a new row. More... | |
| List< StringList > | rowcache |
| List of cached rows. More... | |
| bool | started |
| True when writing has started, false when finished. More... | |
| Writer | writer |
| Writer for actual writing. More... | |
| typedef List<String> StringList |
|
inline |
Constructor.
| table | Table info to use |
| type | Output type |
|
inline |
Write end to current row.
| T | String or stream type to use, inferred from out argument |
| out | String or stream to write to |
|
inline |
Finish writing table.
| T | String or stream type to use, inferred from out argument |
| out | String or stream to write to |
|
inline |
Write header output.
| T | String or stream type to use, inferred from argument |
| out | String or stream to write to |
|
inline |
Write next value.
| T | String or stream type to use, inferred from out argument |
| U | Type of value to format, inferred from fmtval – must be one of: String, FmtString, FmtFieldNum, FmtFieldFloat |
| out | String or stream to write to |
| fmtval | Value to format |
| StringList* current_row |
Pointer to current row, NULL if about to start a new row.
| List<StringList> rowcache |
List of cached rows.
| bool started |
True when writing has started, false when finished.
1.8.13