![]() |
TrinityCore
|
Inheritance diagram for Deserializer:Public Member Functions | |
| bool | ReadMessage (std::string_view json, google::protobuf::Message *message) |
| bool | Key (Ch const *str, rapidjson::SizeType length, bool copy) |
| bool | Null () |
| bool | Bool (bool b) |
| bool | Int (int32 i) |
| bool | Uint (uint32 i) |
| bool | Int64 (int64 i) |
| bool | Uint64 (uint64 i) |
| bool | Double (double d) |
| bool | String (Ch const *str, rapidjson::SizeType length, bool copy) |
| bool | StartObject () |
| bool | EndObject (rapidjson::SizeType memberCount) |
| bool | StartArray () |
| bool | EndArray (rapidjson::SizeType memberCount) |
| std::vector< std::string > const & | GetErrors () const |
Private Member Functions | |
| bool | CheckType (google::protobuf::FieldDescriptor::CppType expectedType) |
Private Attributes | |
| rapidjson::Reader | _reader |
| std::stack< google::protobuf::FieldDescriptor const * > | _state |
| std::stack< google::protobuf::Message * > | _objectState |
| std::vector< std::string > | _errors |
Definition at line 185 of file ProtobufJSON.cpp.
| bool Deserializer::Bool | ( | bool | b | ) |
Definition at line 256 of file ProtobufJSON.cpp.
References _objectState, _state, Bool(), CheckType(), and SET_FIELD.
Referenced by Bool().
|
private |
Definition at line 419 of file ProtobufJSON.cpp.
References _errors, _state, and Trinity::StringFormat().
| bool Deserializer::Double | ( | double | d | ) |
Definition at line 321 of file ProtobufJSON.cpp.
References _errors, _objectState, _state, Double, Float, SET_FIELD, and Trinity::StringFormat().
| bool Deserializer::EndArray | ( | rapidjson::SizeType | memberCount | ) |
Definition at line 431 of file ProtobufJSON.cpp.
References _state.
| bool Deserializer::EndObject | ( | rapidjson::SizeType | memberCount | ) |
Definition at line 393 of file ProtobufJSON.cpp.
References _objectState, and _state.
|
inline |
Definition at line 204 of file ProtobufJSON.cpp.
References _errors.
Referenced by JSON::Deserialize().
| bool Deserializer::Int | ( | int32 | i | ) |
Definition at line 265 of file ProtobufJSON.cpp.
References _objectState, _state, CheckType(), Int32, and SET_FIELD.
| bool Deserializer::Int64 | ( | int64 | i | ) |
Definition at line 303 of file ProtobufJSON.cpp.
References _objectState, _state, CheckType(), Int64, and SET_FIELD.
| bool Deserializer::Key | ( | Ch const * | str, |
| rapidjson::SizeType | length, | ||
| bool | copy | ||
| ) |
Definition at line 229 of file ProtobufJSON.cpp.
References _errors, _objectState, _state, and Trinity::StringFormat().
| bool Deserializer::Null | ( | ) |
Definition at line 242 of file ProtobufJSON.cpp.
References _state.
| bool Deserializer::ReadMessage | ( | std::string_view | json, |
| google::protobuf::Message * | message | ||
| ) |
Definition at line 215 of file ProtobufJSON.cpp.
References _errors, _objectState, _reader, _state, and ASSERT.
Referenced by JSON::Deserialize().
| bool Deserializer::StartArray | ( | ) |
Definition at line 402 of file ProtobufJSON.cpp.
References _errors, _state, and Trinity::StringFormat().
| bool Deserializer::StartObject | ( | ) |
Definition at line 370 of file ProtobufJSON.cpp.
References _errors, _objectState, _state, and Trinity::StringFormat().
| bool Deserializer::String | ( | Ch const * | str, |
| rapidjson::SizeType | length, | ||
| bool | copy | ||
| ) |
Definition at line 341 of file ProtobufJSON.cpp.
References _errors, _objectState, _state, SET_FIELD, String(), and Trinity::StringFormat().
Referenced by String().
| bool Deserializer::Uint | ( | uint32 | i | ) |
Definition at line 274 of file ProtobufJSON.cpp.
References _errors, _objectState, _state, SET_FIELD, Trinity::StringFormat(), and UInt32.
| bool Deserializer::Uint64 | ( | uint64 | i | ) |
Definition at line 312 of file ProtobufJSON.cpp.
References _objectState, _state, CheckType(), SET_FIELD, and UInt64.
|
private |
Definition at line 212 of file ProtobufJSON.cpp.
Referenced by CheckType(), Double(), GetErrors(), Key(), ReadMessage(), StartArray(), StartObject(), String(), and Uint().
|
private |
Definition at line 211 of file ProtobufJSON.cpp.
Referenced by Bool(), Double(), EndObject(), Int(), Int64(), Key(), ReadMessage(), StartObject(), String(), Uint(), and Uint64().
|
private |
Definition at line 209 of file ProtobufJSON.cpp.
Referenced by ReadMessage().
|
private |
Definition at line 210 of file ProtobufJSON.cpp.
Referenced by Bool(), CheckType(), Double(), EndArray(), EndObject(), Int(), Int64(), Key(), Null(), ReadMessage(), StartArray(), StartObject(), String(), Uint(), and Uint64().