Elementa v8.0.0
Minimalistic library for any C++ application (C++11 and up)
Loading...
Searching...
No Matches
serializers.h File Reference
#include "elementa/license.inc"
#include "elementa/checks.inc"
#include <type_traits>
#include <utility>
#include "elementa/base/fundamentaltypes.h"
#include "elementa/base/strings.h"
#include "elementa/base/exceptions.h"
#include "elementa/base/serial_channels.h"
Include dependency graph for serializers.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  elementa::base::SzerError
 Base class for all errors thrown by serializers. More...
 
class  elementa::base::Serializer< Sble, ReturnDeserType, ReturnSerType >
 Base abstract class / interface for any serializer. More...
 
class  elementa::base::Serializable< DeserReturnType, SerReturnType >
 Base class for any object that includes an implicit serializer. More...
 
class  elementa::base::Szer_Char
 Serializer of a single char. Not very useful, but sometimes it is needed. More...
 
class  elementa::base::Szer_String
 Serializer of std::string into fixed or non-fixed size. More...
 
class  elementa::base::Szer_NatBin< NatType >
 Serializer of natural numbers in fixed or non-fixed size. More...
 
class  elementa::base::Szer_IntText
 Serializer of integer numbers as text in fixed or non-fixed size. More...
 
class  elementa::base::Szer_RealText
 Serializer of real numbers as text in fixed or dynamic size. More...
 
class  elementa::base::Szer_StringToken
 Serializer of a std::string as a token (useful for lexers). More...
 

Typedefs

template<class Sble , class DeserReturnType = void, class SerReturnType = void>
using elementa::base::ClassSzer = ClassSzer_< Sble, DeserReturnType, SerReturnType >
 Objects of this class act as Serializer's for Serializable objects. More...
 

Functions

template<class DeserReturnType , class SerReturnType >
OutSerCh & elementa::base::operator<< (OutSerCh &chout, const Serializable< DeserReturnType, SerReturnType > &o)
 Operator for serializing Serializable objects directly on a channel. More...
 
template<class DeserReturnType , class SerReturnType >
InSerCh & elementa::base::operator>> (InSerCh &chin, Serializable< DeserReturnType, SerReturnType > &o)
 Operator for deserializing Serializable objects directly from a channel. More...