TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
ProtobufJSON.cpp File Reference
#include "ProtobufJSON.h"
#include "StringFormat.h"
#include "Common.h"
#include "Log.h"
#include <rapidjson/writer.h>
#include <rapidjson/reader.h>
#include <rapidjson/stringbuffer.h>
#include <stack>
+ Include dependency graph for ProtobufJSON.cpp:

Classes

class  Serializer
 
class  Deserializer
 

Macros

#define SET_FIELD(message, field, Type, val)
 

Macro Definition Documentation

#define SET_FIELD (   message,
  field,
  Type,
  val 
)
Value:
do { \
if (!field->is_repeated()) \
message->GetReflection()->Set ## Type(message, field, val); \
else \
message->GetReflection()->Add ## Type(message, field, val); \
_state.pop(); \
} while (0)
Type
Type of JSON value.
Definition: rapidjson.h:642