CoolProp
4.2.5
An open-source fluid property and humid air property database
|
JSON writer. More...
#include <writer.h>
Classes | |
struct | Level |
Information for each nested level. More... | |
Public Types | |
typedef Encoding::Ch | Ch |
Public Member Functions | |
Writer (Stream &stream, Allocator *allocator=0, size_t levelDepth=kDefaultLevelDepth) | |
Writer & | String (const Ch *str) |
Simpler but slower overload. More... | |
Writer & | Null () |
Writer & | Bool (bool b) |
Writer & | Int (int i) |
Writer & | Uint (unsigned u) |
Writer & | Int64 (int64_t i64) |
Writer & | Uint64 (uint64_t u64) |
Writer & | Double (double d) |
Writer & | String (const Ch *str, SizeType length, bool copy=false) |
Writer & | StartObject () |
Writer & | EndObject (SizeType memberCount=0) |
Writer & | StartArray () |
Writer & | EndArray (SizeType elementCount=0) |
Protected Member Functions | |
void | WriteNull () |
void | WriteBool (bool b) |
void | WriteInt (int i) |
void | WriteUint (unsigned u) |
void | WriteInt64 (int64_t i64) |
void | WriteUint64 (uint64_t u64) |
void | WriteDouble (double d) |
void | WriteString (const Ch *str, SizeType length) |
void | WriteStartObject () |
void | WriteEndObject () |
void | WriteStartArray () |
void | WriteEndArray () |
void | Prefix (Type type) |
Protected Attributes | |
Stream & | stream_ |
internal::Stack< Allocator > | level_stack_ |
Static Protected Attributes | |
static const size_t | kDefaultLevelDepth = 32 |
JSON writer.
Writer implements the concept Handler. It generates JSON text by events to an output stream.
User may programmatically calls the functions of a writer to generate JSON text.
On the other side, a writer can also be passed to objects that generates events,
for example Reader::Parse() and Document::Accept().
typedef Encoding::Ch rapidjson::Writer< Stream, Encoding, Allocator >::Ch |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
staticprotected |
|
protected |
|
protected |