|
ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
|
#include <ERF_DescriptionWriter.H>

Public Member Functions | |
| Writer (std::ostream &output, Format format) | |
| void | begin_object (const char *name) |
| void | end_object () |
| void | finish (bool newline=true) |
| void | value (const char *name, std::nullptr_t) |
| void | value (const char *name, bool v) |
| void | value (const char *name, int v) |
| void | value (const char *name, const char *v) |
| void | optional_string (const char *name, const char *v) |
| void | strings (const char *name, const std::vector< std::string > &values) |
| template<class T , class Emit > | |
| void | objects (const char *name, const std::vector< T > &values, Emit emit) |
Private Member Functions | |
| void | key (const char *name, bool object=false) |
| void | end_value () |
| void | quoted (const char *value) |
Private Attributes | |
| std::ostream & | os |
| bool | yaml |
| std::vector< bool > | first {true} |
Fixed-structure JSON/YAML writer with no parser dependency. YAML output uses block mappings, JSON flow arrays and double-quoted keys and strings, so YAML 1.1 parsers never read them as booleans or numbers.
|
inline |
|
inline |

|
inline |
|
inlineprivate |
|
inline |
|
inlineprivate |
Referenced by begin_object(), objects(), strings(), and value().


|
inline |

|
inline |

|
inlineprivate |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
Referenced by begin_object(), end_object(), finish(), and key().
|
private |
Referenced by begin_object(), end_object(), end_value(), finish(), key(), objects(), quoted(), strings(), value(), and Writer().
|
private |
Referenced by begin_object(), end_object(), end_value(), finish(), key(), and Writer().