rapidjson::PrettyWriter
Engine/source/persistence/rapidjson/prettywriter.h
Writer with indentation and spacing.
Protected Attributes
unsigned
Public Functions
Protected Functions
PrettyPrefix(Type type)
Detailed Description
Writer with indentation and spacing.
Parameters:
| OutputStream | Type of ouptut os. |
Encoding of both source strings and output. | |
Type of allocator for allocating memory of stack. |
Public Types
typedef Writer< OutputStream, SourceEncoding, TargetEncoding, Allocator > Base
typedef Base::Ch Ch
Protected Attributes
Ch indentChar_
unsigned indentCharCount_
Public Functions
PrettyWriter(OutputStream & os, Allocator * allocator, size_t levelDepth)
Constructor.
Parameters:
| os | Output os. |
| allocator | User supplied allocator. If it is null, it will create a private one. |
| levelDepth | Initial capacity of |
Bool(bool b)
Double(double d)
EndArray(SizeType memberCount)
EndObject(SizeType memberCount)
Int(int i)
Int64(int64_t i64)
Null()
SetIndent(Ch indentChar, unsigned indentCharCount)
Set custom indentation.
Parameters:
| indentChar | Character for indentation. Must be whitespace character (' ', '\t', ' |
| indentCharCount | Number of indent characters for each indentation level. |
note:The default indentation is 4 spaces.
StartArray()
StartObject()
String(const Ch * str)
Simpler but slower overload.
String(const Ch * str, SizeType length, bool copy)
Uint(unsigned u)
Uint64(uint64_t u64)
