Orxonox: src/util/Serialise.h File Reference

# Serialise.h File Reference

Functions to serialise most of the types/classed used in Orxonox. More...

`#include <cstring>`
`#include "util/Math.h"`

## Namespaces

namespace | orxonox

## Functions

template<>
bool | orxonox::checkEquality (const Radian &variable, uint8_t *mem)
template<>
bool | orxonox::checkEquality (const Degree &variable, uint8_t *mem)
template<>
bool | orxonox::checkEquality (const std::string &variable, uint8_t *mem)
template<>
bool | orxonox::checkEquality (const long double &variable, uint8_t *mem)
template<>
bool | orxonox::checkEquality (const double &variable, uint8_t *mem)
template<>
bool | orxonox::checkEquality (const float &variable, uint8_t *mem)
template<>
bool | orxonox::checkEquality (const unsigned long long &variable, uint8_t *mem)
template<>
bool | orxonox::checkEquality (const long long &variable, uint8_t *mem)
template<>
bool | orxonox::checkEquality (const unsigned long &variable, uint8_t *mem)
template<>
bool | orxonox::checkEquality (const long &variable, uint8_t *mem)
template<>
bool | orxonox::checkEquality (const unsigned int &variable, uint8_t *mem)
template<>
bool | orxonox::checkEquality (const int &variable, uint8_t *mem)
template<>
bool | orxonox::checkEquality (const unsigned short &variable, uint8_t *mem)
template<>
bool | orxonox::checkEquality (const short &variable, uint8_t *mem)
template<>
bool | orxonox::checkEquality (const unsigned char &variable, uint8_t *mem)
template<>
bool | orxonox::checkEquality (const char &variable, uint8_t *mem)
template<>
bool | orxonox::checkEquality (const bool &variable, uint8_t *mem)
template<class T>
bool | orxonox::checkEquality (const T &, uint8_t *)
| checks whether the variable of type T is the same as in the bytestream
template<>
void | orxonox::loadAndIncrease (const Radian &variable, uint8_t *&mem)
template<>
void | orxonox::loadAndIncrease (const Degree &variable, uint8_t *&mem)
template<>
void | orxonox::loadAndIncrease (const std::string &variable, uint8_t *&mem)
template<>
void | orxonox::loadAndIncrease (const long double &variable, uint8_t *&mem)
template<>
void | orxonox::loadAndIncrease (const double &variable, uint8_t *&mem)
template<>
void | orxonox::loadAndIncrease (const float &variable, uint8_t *&mem)
template<>
void | orxonox::loadAndIncrease (const unsigned long long &variable, uint8_t *&mem)
template<>
void | orxonox::loadAndIncrease (const long long &variable, uint8_t *&mem)
template<>
void | orxonox::loadAndIncrease (const unsigned long &variable, uint8_t *&mem)
template<>
void | orxonox::loadAndIncrease (const long &variable, uint8_t *&mem)
template<>
void | orxonox::loadAndIncrease (const unsigned int &variable, uint8_t *&mem)
template<>
void | orxonox::loadAndIncrease (const int &variable, uint8_t *&mem)
template<>
void | orxonox::loadAndIncrease (const unsigned short &variable, uint8_t *&mem)
template<>
void | orxonox::loadAndIncrease (const short &variable, uint8_t *&mem)
template<>
void | orxonox::loadAndIncrease (const unsigned char &variable, uint8_t *&mem)
template<>
void | orxonox::loadAndIncrease (const char &variable, uint8_t *&mem)
template<>
void | orxonox::loadAndIncrease (const bool &variable, uint8_t *&mem)
template<class T>
void | orxonox::loadAndIncrease (const T &, uint8_t *&)
| loads the value of a variable out of the bytestream and increases the mem pointer
template<>
uint32_t | orxonox::returnSize (const Radian &variable)
template<>
uint32_t | orxonox::returnSize (const Degree &variable)
template<>
uint32_t | orxonox::returnSize (const std::string &variable)
template<>
uint32_t | orxonox::returnSize (const long double &variable)
template<>
uint32_t | orxonox::returnSize (const double &variable)
template<>
uint32_t | orxonox::returnSize (const float &variable)
template<>
uint32_t | orxonox::returnSize (const unsigned long long &variable)
template<>
uint32_t | orxonox::returnSize (const long long &variable)
template<>
uint32_t | orxonox::returnSize (const unsigned long &variable)
template<>
uint32_t | orxonox::returnSize (const long &variable)
template<>
uint32_t | orxonox::returnSize (const unsigned int &variable)
template<>
uint32_t | orxonox::returnSize (const int &variable)
template<>
uint32_t | orxonox::returnSize (const unsigned short &variable)
template<>
uint32_t | orxonox::returnSize (const short &variable)
template<>
uint32_t | orxonox::returnSize (const unsigned char &variable)
template<>
uint32_t | orxonox::returnSize (const char &variable)
template<>
uint32_t | orxonox::returnSize (const bool &variable)
template<class T>
uint32_t | orxonox::returnSize (const T &)
| returns the size of the variable in a datastream
template<>
void | orxonox::saveAndIncrease (const Radian &variable, uint8_t *&mem)
template<>
void | orxonox::saveAndIncrease (const Degree &variable, uint8_t *&mem)
template<>
void | orxonox::saveAndIncrease (const std::string &variable, uint8_t *&mem)
template<>
void | orxonox::saveAndIncrease (const long double &variable, uint8_t *&mem)
template<>
void | orxonox::saveAndIncrease (const double &variable, uint8_t *&mem)
template<>
void | orxonox::saveAndIncrease (const float &variable, uint8_t *&mem)
template<>
void | orxonox::saveAndIncrease (const unsigned long long &variable, uint8_t *&mem)
template<>
void | orxonox::saveAndIncrease (const long long &variable, uint8_t *&mem)
template<>
void | orxonox::saveAndIncrease (const unsigned long &variable, uint8_t *&mem)
template<>
void | orxonox::saveAndIncrease (const long &variable, uint8_t *&mem)
template<>
void | orxonox::saveAndIncrease (const unsigned int &variable, uint8_t *&mem)
template<>
void | orxonox::saveAndIncrease (const int &variable, uint8_t *&mem)
template<>
void | orxonox::saveAndIncrease (const unsigned short &variable, uint8_t *&mem)
template<>
void | orxonox::saveAndIncrease (const short &variable, uint8_t *&mem)
template<>
void | orxonox::saveAndIncrease (const unsigned char &variable, uint8_t *&mem)
template<>
void | orxonox::saveAndIncrease (const char &variable, uint8_t *&mem)
template<>
void | orxonox::saveAndIncrease (const bool &variable, uint8_t *&mem)
template<class T>
void | orxonox::saveAndIncrease (const T &, uint8_t *&)
| saves the value of a variable into the bytestream and increases the mem pointer

## Detailed Description

Functions to serialise most of the types/classed used in Orxonox.