![]() |
MySQL 9.5.0
Source Code Documentation
|
This class is a adapter for Reader from RapidJson. More...
#include <rapid_json_to_map.h>
Classes | |
| struct | KeyValue |
Public Types | |
| using | Map = std::map< std::string, std::string > |
| using | Result = Map |
Public Member Functions | |
| RapidReaderHandlerToMapOfSimpleValues (int allowed_levels=1) | |
| const Map & | get_result () const |
| bool | Null () |
| bool | Bool (bool value) |
| bool | String (const Ch *ch, rapidjson::SizeType size, bool) |
| bool | Int (int v) |
| bool | Uint (unsigned v) |
| bool | Int64 (int64_t v) |
| bool | Uint64 (uint64_t v) |
| bool | Double (double v) |
| bool | RawNumber (const Ch *str, rapidjson::SizeType len, bool copy) |
| enabled via kParseNumbersAsStringsFlag, string is not null-terminated (use length) More... | |
| bool | StartObject () |
| bool | EndObject (rapidjson::SizeType) |
| bool | Key (const Ch *str, rapidjson::SizeType len, bool) |
| bool | StartArray () |
| bool | EndArray (rapidjson::SizeType) |
Static Public Attributes | |
| constexpr static rapidjson::ParseFlag | k_parse_flags |
Private Member Functions | |
| std::string | get_current_key () const |
Private Attributes | |
| int | allowed_levels_ |
| std::list< KeyValue > | keys_ |
| KeyValue | key_ |
| Map | result_ |
| int | level_ {0} |
| int | arrays_ {0} |
This class is a adapter for Reader from RapidJson.
This class adapts std::map of strings (keys and values are strings) to be destination of text document conversion done be rapidjson::Reader. There are some constrains to what is converted:
| using helper::json::RapidReaderHandlerToMapOfSimpleValues::Map = std::map<std::string, std::string> |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineprivate |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
enabled via kParseNumbersAsStringsFlag, string is not null-terminated (use length)
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
|
private |
|
staticconstexpr |
|
private |
|
private |
|
private |
|
private |