TrinityCore
ProtobufJSON.cpp File Reference
#include "ProtobufJSON.h"
#include "Errors.h"
#include "Log.h"
#include "StringFormat.h"
#include <google/protobuf/message.h>
#include <rapidjson/writer.h>
#include <rapidjson/reader.h>
#include <rapidjson/stringbuffer.h>
#include <stack>
+ Include dependency graph for ProtobufJSON.cpp:

Go to the source code of this file.

Classes

class  Serializer
 
class  Deserializer
 

Macros

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

Macro Definition Documentation

◆ SET_FIELD

#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)

Definition at line 248 of file ProtobufJSON.cpp.