CoolProp
4.2.5
An open-source fluid property and humid air property database
|
Writer with indentation and spacing. More...
#include <prettywriter.h>
Public Types | |
typedef Writer< Stream, Encoding, Allocator > | Base |
typedef Base::Ch | Ch |
Public Types inherited from rapidjson::Writer< Stream, Encoding, Allocator > | |
typedef Encoding::Ch | Ch |
Public Member Functions | |
PrettyWriter (Stream &stream, Allocator *allocator=0, size_t levelDepth=Base::kDefaultLevelDepth) | |
Constructor. More... | |
PrettyWriter & | SetIndent (Ch indentChar, unsigned indentCharCount) |
Set custom indentation. More... | |
PrettyWriter & | String (const Ch *str) |
Simpler but slower overload. More... | |
PrettyWriter & | Null () |
PrettyWriter & | Bool (bool b) |
PrettyWriter & | Int (int i) |
PrettyWriter & | Uint (unsigned u) |
PrettyWriter & | Int64 (int64_t i64) |
PrettyWriter & | Uint64 (uint64_t u64) |
PrettyWriter & | Double (double d) |
PrettyWriter & | String (const Ch *str, SizeType length, bool copy=false) |
PrettyWriter & | StartObject () |
PrettyWriter & | EndObject (SizeType memberCount=0) |
PrettyWriter & | StartArray () |
PrettyWriter & | EndArray (SizeType memberCount=0) |
Public Member Functions inherited from rapidjson::Writer< Stream, Encoding, Allocator > | |
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 | PrettyPrefix (Type type) |
void | WriteIndent () |
Protected Member Functions inherited from rapidjson::Writer< Stream, Encoding, Allocator > | |
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 | |
Ch | indentChar_ |
unsigned | indentCharCount_ |
Protected Attributes inherited from rapidjson::Writer< Stream, Encoding, Allocator > | |
Stream & | stream_ |
internal::Stack< Allocator > | level_stack_ |
Additional Inherited Members | |
Static Protected Attributes inherited from rapidjson::Writer< Stream, Encoding, Allocator > | |
static const size_t | kDefaultLevelDepth = 32 |
Writer with indentation and spacing.
Stream | Type of ouptut stream. |
Encoding | Encoding of both source strings and output. |
Allocator | Type of allocator for allocating memory of stack. |
Definition at line 15 of file prettywriter.h.
typedef Writer<Stream, Encoding, Allocator> rapidjson::PrettyWriter< Stream, Encoding, Allocator >::Base |
Definition at line 17 of file prettywriter.h.
typedef Base::Ch rapidjson::PrettyWriter< Stream, Encoding, Allocator >::Ch |
Definition at line 18 of file prettywriter.h.
|
inline |
Constructor.
stream | Output stream. |
allocator | User supplied allocator. If it is null, it will create a private one. |
levelDepth | Initial capacity of |
Definition at line 25 of file prettywriter.h.
|
inline |
Definition at line 44 of file prettywriter.h.
|
inline |
Definition at line 49 of file prettywriter.h.
|
inline |
Definition at line 86 of file prettywriter.h.
|
inline |
Definition at line 65 of file prettywriter.h.
|
inline |
Definition at line 45 of file prettywriter.h.
|
inline |
Definition at line 47 of file prettywriter.h.
|
inline |
Definition at line 43 of file prettywriter.h.
|
inlineprotected |
Definition at line 106 of file prettywriter.h.
|
inline |
Set custom indentation.
indentChar | Character for indentation. Must be whitespace character (' ', '', ' ', ''). |
indentCharCount | Number of indent characters for each indentation level. |
Definition at line 33 of file prettywriter.h.
|
inline |
Definition at line 79 of file prettywriter.h.
|
inline |
Definition at line 58 of file prettywriter.h.
|
inline |
Definition at line 51 of file prettywriter.h.
|
inline |
Simpler but slower overload.
Definition at line 103 of file prettywriter.h.
|
inline |
Definition at line 46 of file prettywriter.h.
|
inline |
Definition at line 48 of file prettywriter.h.
|
inlineprotected |
Definition at line 145 of file prettywriter.h.
|
protected |
Definition at line 150 of file prettywriter.h.
|
protected |
Definition at line 151 of file prettywriter.h.