Omnidome
Fulldome Mapping Software Toolkit
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Data Structures | Namespaces | Typedefs | Functions
Id.h File Reference
#include <set>
#include <QString>
#include <QDataStream>
#include <boostx/type_info.hpp>
#include <boostx/factory.hpp>
Include dependency graph for Id.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  omni::Id
 Id type for classes An Id must only contain alpha numerical characters and must begin with a letter. More...
 
struct  std::hash< omni::Id >
 Template specialization for Id to make it hashable. More...
 

Namespaces

 omni
 Header to document namespaces.
 

Typedefs

using omni::AbstractFactory = boostx::factory< INTERFACE, TypeInfo, ARGS...>
 
typedef std::set< Id > omni::IdSet
 Id set typedef. More...
 

Functions

 omni::BOOSTX_DECL_TYPE_INFO (TypeInfo, Id, typeId, getTypeId) template< typename INTERFACE
 Alias template for factories. More...
 
QDataStream & operator<< (QDataStream &, omni::Id const &)
 Serialize omni::Id to stream. More...
 
QDataStream & operator>> (QDataStream &, omni::Id &)
 Deserialize omni::Id from stream. More...
 

Function Documentation

QDataStream& operator<< ( QDataStream &  ,
omni::Id const &   
)

Serialize omni::Id to stream.

92 {
93  omni::serialization::serialize(_stream,_id.str());
94  return _stream;
95 }
STREAM & serialize(STREAM &_stream, T const &_t)
Serialize object to stream.
Definition: traits.h:140
QDataStream& operator>> ( QDataStream &  ,
omni::Id  
)

Deserialize omni::Id from stream.

98 {
99  QString _str;
100  omni::serialization::deserialize(_stream,_str);
101  _id = omni::Id(_str);
102  return _stream;
103 }
Id type for classes An Id must only contain alpha numerical characters and must begin with a letter...
Definition: Id.h:34
STREAM & deserialize(STREAM &_stream, T &_t, ARGS &&..._args)
Deserialize object of type T from stream with optional additional arguments.
Definition: traits.h:125