SEGS  0.6.1-develop [39915b3b]
Super Entity Game Server
Macros | Functions
serialization_common.h File Reference
#include <cereal/archives/json.hpp>
#include <cereal/archives/binary.hpp>
#include <cereal/types/vector.hpp>
#include <cereal/types/deque.hpp>
#include <cereal/types/array.hpp>
#include <cereal/types/string.hpp>
#include <cereal/cereal.hpp>
#include <QtCore/QString>
#include <QtCore/QDir>
#include <QtCore/QFile>
#include <QtCore/QDebug>
Include dependency graph for serialization_common.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define SPECIALIZE_SERIALIZATIONS(type)
 
#define SPECIALIZE_VERSIONED_SERIALIZATIONS(type)
 
#define SPECIALIZE_CLASS_VERSIONED_SERIALIZATIONS(type)
 
#define SPECIALIZE_SPLIT_SERIALIZATIONS(type)
 

Functions

template<class T >
void commonSaveTo (const T &target, const char *classname, const QString &baseName, bool text_format)
 
template<class T >
bool commonReadFrom (const QString &crl_path, const char *classname, T &target)
 
template<class T >
void serializeToQString (const T &data, QString &tgt)
 
template<class T >
void serializeFromQString (T &data, const QString &src)
 

Macro Definition Documentation

◆ SPECIALIZE_CLASS_VERSIONED_SERIALIZATIONS

#define SPECIALIZE_CLASS_VERSIONED_SERIALIZATIONS (   type)
Value:
template \
void type::serialize<cereal::JSONOutputArchive>(cereal::JSONOutputArchive & archive, uint32_t const version);\
template \
void type::serialize<cereal::JSONInputArchive>(cereal::JSONInputArchive & archive, uint32_t const version);\
template \
void type::serialize<cereal::BinaryInputArchive>(cereal::BinaryInputArchive & archive, uint32_t const version);\
template \
void type::serialize<cereal::BinaryOutputArchive>(cereal::BinaryOutputArchive & archive, uint32_t const version);
archive(cereal::make_nvp("OriginIdx", ed.m_origin_idx))
EntityData uint32_t const version
Definition: entitydata_serializers.cpp:25

◆ SPECIALIZE_SERIALIZATIONS

#define SPECIALIZE_SERIALIZATIONS (   type)
Value:
template \
void type::serialize<cereal::JSONOutputArchive>(cereal::JSONOutputArchive & archive);\
template \
void type::serialize<cereal::JSONInputArchive>(cereal::JSONInputArchive & archive);\
template \
void type::serialize<cereal::BinaryInputArchive>(cereal::BinaryInputArchive & archive);\
template \
void type::serialize<cereal::BinaryOutputArchive>(cereal::BinaryOutputArchive & archive);
archive(cereal::make_nvp("OriginIdx", ed.m_origin_idx))

◆ SPECIALIZE_SPLIT_SERIALIZATIONS

#define SPECIALIZE_SPLIT_SERIALIZATIONS (   type)
Value:
template \
void CEREAL_SAVE_FUNCTION_NAME<cereal::JSONOutputArchive>(cereal::JSONOutputArchive & archive, const type & m);\
template \
void CEREAL_SAVE_FUNCTION_NAME<cereal::BinaryOutputArchive>(cereal::BinaryOutputArchive & archive, const type & m);\
template \
void CEREAL_LOAD_FUNCTION_NAME<cereal::JSONInputArchive>(cereal::JSONInputArchive & archive, type & m);\
template \
void CEREAL_LOAD_FUNCTION_NAME<cereal::BinaryInputArchive>(cereal::BinaryInputArchive & archive, type & m);
archive(cereal::make_nvp("OriginIdx", ed.m_origin_idx))

◆ SPECIALIZE_VERSIONED_SERIALIZATIONS

#define SPECIALIZE_VERSIONED_SERIALIZATIONS (   type)
Value:
template \
void serialize<cereal::JSONOutputArchive>(cereal::JSONOutputArchive & archive, type & m, uint32_t const version);\
template \
void serialize<cereal::JSONInputArchive>(cereal::JSONInputArchive & archive, type & m, uint32_t const version);\
template \
void serialize<cereal::BinaryInputArchive>(cereal::BinaryInputArchive & archive, type & m, uint32_t const version);\
template \
void serialize<cereal::BinaryOutputArchive>(cereal::BinaryOutputArchive & archive, type & m, uint32_t const version);
archive(cereal::make_nvp("OriginIdx", ed.m_origin_idx))
EntityData uint32_t const version
Definition: entitydata_serializers.cpp:25

Function Documentation

◆ commonReadFrom()

template<class T >
bool commonReadFrom ( const QString &  crl_path,
const char *  classname,
T &  target 
)
Here is the caller graph for this function:

◆ commonSaveTo()

template<class T >
void commonSaveTo ( const T &  target,
const char *  classname,
const QString &  baseName,
bool  text_format 
)
Here is the caller graph for this function:

◆ serializeFromQString()

template<class T >
void serializeFromQString ( T &  data,
const QString &  src 
)
Here is the caller graph for this function:

◆ serializeToQString()

template<class T >
void serializeToQString ( const T &  data,
QString &  tgt 
)
Here is the caller graph for this function: