MySQL 9.1.0
Source Code Documentation
|
This class implements rapidjson's Handler concept to make our own handler which will construct our DOM from the parsing of the JSON text. More...
Public Member Functions | |
Rapid_json_handler (JsonErrorHandler m_depth_handler) | |
Json_dom_ptr | get_built_doc () |
bool | Null () |
bool | Bool (bool b) |
bool | Int (int i) |
bool | Uint (unsigned u) |
bool | Int64 (int64_t i) |
bool | Uint64 (uint64_t ui64) |
bool | Double (double d) |
bool | RawNumber (const char *, rapidjson::SizeType, bool) |
bool | String (const char *str, rapidjson::SizeType length, bool) |
bool | StartObject () |
bool | EndObject (rapidjson::SizeType) |
bool | StartArray () |
bool | EndArray (rapidjson::SizeType) |
bool | Key (const char *str, rapidjson::SizeType len, bool) |
Private Types | |
enum | enum_state { expect_anything , expect_array_value , expect_object_key , expect_object_value , expect_eof } |
Private Member Functions | |
bool | seeing_value (Json_dom_ptr value) |
Function which is called on each value found in the JSON document being parsed. More... | |
bool | start_object_or_array (Json_dom_ptr value, enum_state next_state) |
void | end_object_or_array () |
Private Attributes | |
enum_state | m_state |
Tells what kind of value to expect next. More... | |
Json_dom_ptr | m_dom_as_built |
Root of the DOM being built. More... | |
Json_dom * | m_current_element |
The current object/array being parsed. More... | |
size_t | m_depth |
The depth at which parsing currently happens. More... | |
std::string | m_key |
The name of the current member of an object. More... | |
JsonErrorHandler | m_depth_handler {nullptr} |
This class implements rapidjson's Handler concept to make our own handler which will construct our DOM from the parsing of the JSON text.
bool Null() { } bool Bool(bool) { } bool Int(int) { } bool Uint(unsigned) { } bool Int64(int64_t) { } bool Uint64(uint64_t) { } bool Double(double) { } bool RawNumber(const Ch*, SizeType, bool) { } bool String(const Ch*, SizeType, bool) { } bool StartObject() { } bool Key() { } bool EndObject(SizeType) { } bool StartArray() { } bool EndArray(SizeType) { }
|
private |
|
inlineexplicit |
|
inline |
|
inline |
|
inlineprivate |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineprivate |
Function which is called on each value found in the JSON document being parsed.
[in] | value | the value that was seen |
|
inlineprivate |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
The current object/array being parsed.
|
private |
The depth at which parsing currently happens.
|
private |
|
private |
Root of the DOM being built.
|
private |
The name of the current member of an object.
|
private |
Tells what kind of value to expect next.