SEGS  0.4.2
Super Entity Game Server
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Namespaces | Functions
serialization_common.h File Reference
#include "Colors.h"
#include "Logging.h"
#include <glm/vec3.hpp>
#include <glm/vec2.hpp>
#include <cereal/archives/json.hpp>
#include <cereal/archives/binary.hpp>
#include <cereal/types/vector.hpp>
#include <cereal/types/array.hpp>
#include <cereal/types/string.hpp>
#include <cereal/cereal.hpp>
#include <QtCore/QString>
#include <QtCore/QFile>
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.

Namespaces

 cereal
 

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)
 
void cereal::epilogue (BinaryOutputArchive &, QString const &)
 
void cereal::epilogue (BinaryInputArchive &, QString const &)
 
void cereal::epilogue (JSONOutputArchive &, QString const &)
 
void cereal::epilogue (JSONInputArchive &, QString const &)
 
void cereal::prologue (JSONOutputArchive &, QString const &)
 
void cereal::prologue (JSONInputArchive &, QString const &)
 
void cereal::prologue (BinaryOutputArchive &, QString const &)
 
void cereal::prologue (BinaryInputArchive &, QString const &)
 
template<class Archive >
void cereal::CEREAL_SAVE_FUNCTION_NAME (Archive &ar,::QString const &str)
 
template<class Archive >
void cereal::CEREAL_LOAD_FUNCTION_NAME (Archive &ar,::QString &str)
 Serialization for basic_string types, if binary data is supported. More...
 
template<class Archive >
void cereal::serialize (Archive &archive, glm::vec3 &m)
 
template<class Archive >
void cereal::serialize (Archive &archive, glm::vec2 &m)
 
template<class Archive >
void cereal::serialize (Archive &archive, RGBA &m)
 

Function Documentation

template<class T >
bool commonReadFrom ( const QString &  crl_path,
const char *  classname,
T &  target 
)

Here is the caller graph for this function:

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:

template<class T >
void serializeFromQString ( T &  data,
const QString &  src 
)

Here is the caller graph for this function:

template<class T >
void serializeToQString ( const T &  data,
QString &  tgt 
)

Here is the caller graph for this function: