TrinityCore
Deserializer Class Reference
+ Inheritance diagram for Deserializer:

Public Member Functions

bool ReadMessage (std::string const &json, google::protobuf::Message *message)
 
bool Key (const Ch *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 (const Ch *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
 

Detailed Description

Definition at line 186 of file ProtobufJSON.cpp.

Member Function Documentation

◆ Bool()

bool Deserializer::Bool ( bool  b)

Definition at line 256 of file ProtobufJSON.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CheckType()

bool Deserializer::CheckType ( google::protobuf::FieldDescriptor::CppType  expectedType)
private

Definition at line 419 of file ProtobufJSON.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Double()

bool Deserializer::Double ( double  d)

Definition at line 321 of file ProtobufJSON.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ EndArray()

bool Deserializer::EndArray ( rapidjson::SizeType  memberCount)

Definition at line 431 of file ProtobufJSON.cpp.

◆ EndObject()

bool Deserializer::EndObject ( rapidjson::SizeType  memberCount)

Definition at line 393 of file ProtobufJSON.cpp.

◆ GetErrors()

std::vector< std::string > const & Deserializer::GetErrors ( ) const
inline

Definition at line 205 of file ProtobufJSON.cpp.

+ Here is the caller graph for this function:

◆ Int()

bool Deserializer::Int ( int32  i)

Definition at line 265 of file ProtobufJSON.cpp.

+ Here is the call graph for this function:

◆ Int64()

bool Deserializer::Int64 ( int64  i)

Definition at line 303 of file ProtobufJSON.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Key()

bool Deserializer::Key ( const Ch *  str,
rapidjson::SizeType  length,
bool  copy 
)

Definition at line 229 of file ProtobufJSON.cpp.

+ Here is the call graph for this function:

◆ Null()

bool Deserializer::Null ( )

Definition at line 242 of file ProtobufJSON.cpp.

◆ ReadMessage()

bool Deserializer::ReadMessage ( std::string const &  json,
google::protobuf::Message *  message 
)

Definition at line 216 of file ProtobufJSON.cpp.

+ Here is the caller graph for this function:

◆ StartArray()

bool Deserializer::StartArray ( )

Definition at line 402 of file ProtobufJSON.cpp.

+ Here is the call graph for this function:

◆ StartObject()

bool Deserializer::StartObject ( )

Definition at line 370 of file ProtobufJSON.cpp.

+ Here is the call graph for this function:

◆ String()

bool Deserializer::String ( const Ch *  str,
rapidjson::SizeType  length,
bool  copy 
)

Definition at line 341 of file ProtobufJSON.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Uint()

bool Deserializer::Uint ( uint32  i)

Definition at line 274 of file ProtobufJSON.cpp.

+ Here is the call graph for this function:

◆ Uint64()

bool Deserializer::Uint64 ( uint64  i)

Definition at line 312 of file ProtobufJSON.cpp.

+ Here is the call graph for this function:

Member Data Documentation

◆ _errors

std::vector<std::string> Deserializer::_errors
private

Definition at line 213 of file ProtobufJSON.cpp.

◆ _objectState

std::stack<google::protobuf::Message*> Deserializer::_objectState
private

Definition at line 212 of file ProtobufJSON.cpp.

◆ _reader

rapidjson::Reader Deserializer::_reader
private

Definition at line 210 of file ProtobufJSON.cpp.

◆ _state

std::stack<google::protobuf::FieldDescriptor const*> Deserializer::_state
private

Definition at line 211 of file ProtobufJSON.cpp.


The documentation for this class was generated from the following file: