|
| GenericDocument (Type type, Allocator *allocator=0, size_t stackCapacity=kDefaultStackCapacity, StackAllocator *stackAllocator=0) |
| Constructor. More...
|
|
| GenericDocument (Allocator *allocator=0, size_t stackCapacity=kDefaultStackCapacity, StackAllocator *stackAllocator=0) |
| Constructor. More...
|
|
GenericDocument & | Swap (GenericDocument &rhs) RAPIDJSON_NOEXCEPT |
| Exchange the contents of this document with those of another. More...
|
|
template<typename Generator > |
GenericDocument & | Populate (Generator &g) |
| Populate this document by a generator which produces SAX events. More...
|
|
Allocator & | GetAllocator () |
| Get the allocator of this document.
|
|
size_t | GetStackCapacity () const |
| Get the capacity of stack in bytes.
|
|
bool | Null () |
|
bool | Bool (bool b) |
|
bool | Int (int i) |
|
bool | Uint (unsigned i) |
|
bool | Int64 (int64_t i) |
|
bool | Uint64 (uint64_t i) |
|
bool | Double (double d) |
|
bool | RawNumber (const Ch *str, SizeType length, bool copy) |
|
bool | String (const Ch *str, SizeType length, bool copy) |
|
bool | StartObject () |
|
bool | Key (const Ch *str, SizeType length, bool copy) |
|
bool | EndObject (SizeType memberCount) |
|
bool | StartArray () |
|
bool | EndArray (SizeType elementCount) |
|
|
template<unsigned parseFlags, typename SourceEncoding , typename InputStream > |
GenericDocument & | ParseStream (InputStream &is) |
| Parse JSON text from an input stream (with Encoding conversion) More...
|
|
template<unsigned parseFlags, typename InputStream > |
GenericDocument & | ParseStream (InputStream &is) |
| Parse JSON text from an input stream. More...
|
|
template<typename InputStream > |
GenericDocument & | ParseStream (InputStream &is) |
| Parse JSON text from an input stream (with kParseDefaultFlags) More...
|
|
|
template<unsigned parseFlags> |
GenericDocument & | ParseInsitu (Ch *str) |
| Parse JSON text from a mutable string. More...
|
|
GenericDocument & | ParseInsitu (Ch *str) |
| Parse JSON text from a mutable string (with kParseDefaultFlags) More...
|
|
|
template<unsigned parseFlags, typename SourceEncoding > |
GenericDocument & | Parse (const typename SourceEncoding::Ch *str) |
| Parse JSON text from a read-only string (with Encoding conversion) More...
|
|
template<unsigned parseFlags> |
GenericDocument & | Parse (const Ch *str) |
| Parse JSON text from a read-only string. More...
|
|
GenericDocument & | Parse (const Ch *str) |
| Parse JSON text from a read-only string (with kParseDefaultFlags) More...
|
|
template<unsigned parseFlags, typename SourceEncoding > |
GenericDocument & | Parse (const typename SourceEncoding::Ch *str, size_t length) |
|
template<unsigned parseFlags> |
GenericDocument & | Parse (const Ch *str, size_t length) |
|
GenericDocument & | Parse (const Ch *str, size_t length) |
|
template<unsigned parseFlags, typename SourceEncoding > |
GenericDocument & | Parse (const std::basic_string< typename SourceEncoding::Ch > &str) |
|
template<unsigned parseFlags> |
GenericDocument & | Parse (const std::basic_string< Ch > &str) |
|
GenericDocument & | Parse (const std::basic_string< Ch > &str) |
|
|
bool | HasParseError () const |
| Whether a parse error has occured in the last parsing.
|
|
ParseErrorCode | GetParseError () const |
| Get the ParseErrorCode of last parsing.
|
|
size_t | GetErrorOffset () const |
| Get the position of last parsing error in input, 0 otherwise.
|
|
| operator ParseResult () const |
| Implicit conversion to get the last parse result. More...
|
|
template<typename Encoding, typename Allocator = MemoryPoolAllocator<>, typename StackAllocator = CrtAllocator>
class rapidjson::GenericDocument< Encoding, Allocator, StackAllocator >
A document for parsing JSON text as DOM.
- Note
- implements Handler concept
- Template Parameters
-
- Warning
- Although GenericDocument inherits from GenericValue, the API does not provide any virtual functions, especially no virtual destructor. To avoid memory leaks, do not
delete
a GenericDocument object via a pointer to a GenericValue.