Omnidome
Fulldome Mapping Software Toolkit
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Data Structures | Namespaces | Macros | Typedefs
Interface.h File Reference
#include <omni/TypeIdInterface.h>
#include <omni/util.h>
Include dependency graph for Interface.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  omni::serialization::Interface
 Abstract interface for serialization Holds two member functions for serialization and deserialization. More...
 

Namespaces

 omni
 Header to document namespaces.
 
 omni::serialization
 Namespace for serialization functionality.
 

Macros

#define OMNI_DECL_STREAM_OPERATORS(CLASS)
 
#define OMNI_DECL_ENUM_STREAM_OPERATORS(ENUM)
 

Typedefs

typedef serialization::Interface omni::SerializationInterface
 

Macro Definition Documentation

#define OMNI_DECL_ENUM_STREAM_OPERATORS (   ENUM)
Value:
inline QDataStream &operator>>(QDataStream & _stream, ENUM & _enum) \
{ \
int _i = 0; \
_stream >> _i; \
_enum = omni::util::intToEnum<ENUM>(_enum); \
return _stream; \
} \
inline QDataStream& operator<<(QDataStream& _stream, ENUM const& _enum) \
{ \
_stream << omni::util::enumToInt(_enum); \
return _stream; \
}
QDataStream & operator>>(QDataStream &_is, omni::geometry::Angle &_angle)
Definition: Angle.cpp:100
auto enumToInt(ENUM const &_v) -> typename std::underlying_type< ENUM >::type
Converts an enum class to integer.
Definition: util.h:105
QDataStream & operator<<(QDataStream &_os, const omni::geometry::Angle &_angle)
Definition: Angle.cpp:94
#define OMNI_DECL_STREAM_OPERATORS (   CLASS)
Value:
inline QDataStream &operator>>(QDataStream & _stream, CLASS & _cls) \
{ \
_cls.fromStream(_stream); \
return _stream; \
} \
inline QDataStream& operator<<(QDataStream& _stream, CLASS const& _cls) \
{ \
_cls.toStream(_stream); \
return _stream; \
}
QDataStream & operator>>(QDataStream &_is, omni::geometry::Angle &_angle)
Definition: Angle.cpp:100
QDataStream & operator<<(QDataStream &_os, const omni::geometry::Angle &_angle)
Definition: Angle.cpp:94