Writer with indentation and spacing.
More...
#include <prettywriter.h>
Protected Member Functions |
void | PrettyPrefix (Type type) |
void | WriteIndent () |
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) |
Additional Inherited Members |
static const size_t | kDefaultLevelDepth = 32 |
Detailed Description
template<typename Stream, typename Encoding = UTF8<>, typename Allocator = MemoryPoolAllocator<>>
class rapidjson::PrettyWriter< Stream, Encoding, Allocator >
Writer with indentation and spacing.
- Template Parameters
-
Constructor & Destructor Documentation
template<typename Stream , typename Encoding = UTF8<>, typename Allocator = MemoryPoolAllocator<>>
Constructor.
- Parameters
-
stream | Output stream. |
allocator | User supplied allocator. If it is null, it will create a private one. |
levelDepth | Initial capacity of |
Member Function Documentation
template<typename Stream , typename Encoding = UTF8<>, typename Allocator = MemoryPoolAllocator<>>
Set custom indentation.
- Parameters
-
indentChar | Character for indentation. Must be whitespace character (' ', '', '
', ''). |
indentCharCount | Number of indent characters for each indentation level. |
- Note
- The default indentation is 4 spaces.
The documentation for this class was generated from the following file: