![]() |
VR-Vantage 2.4 API Documentation
|
Writer with indentation and spacing. More...

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. | |
| PrettyWriter & | SetIndent (Ch indentChar, unsigned indentCharCount) |
| Set custom indentation. | |
| PrettyWriter & | String (const Ch *str) |
| Simpler but slower overload. | |
| 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) | |
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.
| typedef Writer<Stream, Encoding, Allocator> rapidjson::PrettyWriter< Stream, Encoding, Allocator >::Base |
| typedef Base::Ch rapidjson::PrettyWriter< Stream, Encoding, Allocator >::Ch |
|
inline |
Constructor.
| stream | Output stream. |
| allocator | User supplied allocator. If it is null, it will create a private one. |
| levelDepth | Initial capacity of |
|
inline |
Set custom indentation.
| indentChar | Character for indentation. Must be whitespace character (' ', '', ' ', ''). |
| indentCharCount | Number of indent characters for each indentation level. |
References rapidjson::PrettyWriter< Stream, Encoding, Allocator >::indentChar_, rapidjson::PrettyWriter< Stream, Encoding, Allocator >::indentCharCount_, and RAPIDJSON_ASSERT.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Reimplemented from rapidjson::Writer< Stream, Encoding, Allocator >.
References rapidjson::kObjectType, rapidjson::Writer< Stream, Encoding, Allocator >::level_stack_, rapidjson::PrettyWriter< Stream, Encoding, Allocator >::PrettyPrefix(), and rapidjson::Writer< Stream, Encoding, Allocator >::WriteStartObject().
|
inline |
Reimplemented from rapidjson::Writer< Stream, Encoding, Allocator >.
References rapidjson::Writer< Stream, Encoding, Allocator >::level_stack_, RAPIDJSON_ASSERT, rapidjson::Writer< Stream, Encoding, Allocator >::stream_, rapidjson::Writer< Stream, Encoding, Allocator >::WriteEndObject(), and rapidjson::PrettyWriter< Stream, Encoding, Allocator >::WriteIndent().
|
inline |
Reimplemented from rapidjson::Writer< Stream, Encoding, Allocator >.
References rapidjson::kArrayType, rapidjson::Writer< Stream, Encoding, Allocator >::level_stack_, rapidjson::PrettyWriter< Stream, Encoding, Allocator >::PrettyPrefix(), and rapidjson::Writer< Stream, Encoding, Allocator >::WriteStartArray().
|
inline |
Reimplemented from rapidjson::Writer< Stream, Encoding, Allocator >.
References rapidjson::Writer< Stream, Encoding, Allocator >::level_stack_, RAPIDJSON_ASSERT, rapidjson::Writer< Stream, Encoding, Allocator >::stream_, rapidjson::Writer< Stream, Encoding, Allocator >::WriteEndArray(), and rapidjson::PrettyWriter< Stream, Encoding, Allocator >::WriteIndent().
|
inline |
Simpler but slower overload.
Reimplemented from rapidjson::Writer< Stream, Encoding, Allocator >.
References rapidjson::PrettyWriter< Stream, Encoding, Allocator >::String(), and rapidjson::internal::StrLen().
Referenced by rapidjson::PrettyWriter< Stream, Encoding, Allocator >::String().
|
inlineprotected |
References rapidjson::Writer< Stream, Encoding, Allocator >::Level::inArray, rapidjson::kArrayType, rapidjson::kObjectType, rapidjson::kStringType, rapidjson::Writer< Stream, Encoding, Allocator >::level_stack_, RAPIDJSON_ASSERT, rapidjson::Writer< Stream, Encoding, Allocator >::stream_, rapidjson::Writer< Stream, Encoding, Allocator >::Level::valueCount, and rapidjson::PrettyWriter< Stream, Encoding, Allocator >::WriteIndent().
Referenced by rapidjson::PrettyWriter< Stream, Encoding, Allocator >::Bool(), rapidjson::PrettyWriter< Stream, Encoding, Allocator >::Double(), rapidjson::PrettyWriter< Stream, Encoding, Allocator >::Int(), rapidjson::PrettyWriter< Stream, Encoding, Allocator >::Int64(), rapidjson::PrettyWriter< Stream, Encoding, Allocator >::Null(), rapidjson::PrettyWriter< Stream, Encoding, Allocator >::StartArray(), rapidjson::PrettyWriter< Stream, Encoding, Allocator >::StartObject(), rapidjson::PrettyWriter< Stream, Encoding, Allocator >::String(), rapidjson::PrettyWriter< Stream, Encoding, Allocator >::Uint(), and rapidjson::PrettyWriter< Stream, Encoding, Allocator >::Uint64().
|
inlineprotected |
References rapidjson::PrettyWriter< Stream, Encoding, Allocator >::indentChar_, rapidjson::PrettyWriter< Stream, Encoding, Allocator >::indentCharCount_, rapidjson::Writer< Stream, Encoding, Allocator >::level_stack_, rapidjson::PutN(), and rapidjson::Writer< Stream, Encoding, Allocator >::stream_.
Referenced by rapidjson::PrettyWriter< Stream, Encoding, Allocator >::EndArray(), rapidjson::PrettyWriter< Stream, Encoding, Allocator >::EndObject(), and rapidjson::PrettyWriter< Stream, Encoding, Allocator >::PrettyPrefix().
|
protected |
|
protected |