MeVisLab Toolbox Reference
DCMTree_SerializationHelper.h File Reference
#include "DCMTree_Serialization.h"
#include "DCMTree_Exception.h"
#include <boost/shared_ptr.hpp>
#include <string>
#include <map>
#include <vector>
#include <set>
#include <limits>
#include <cstdint>

Go to the source code of this file.

Namespaces

namespace  DCMTree_Serialization
 

Functions

template<typename T >
void DCMTree_Serialization::serializePrimitiveX (Sink &sink, T value)
 Serializes a primitive type like int, long.
 
template<typename T >
void DCMTree_Serialization::deserializePrimitiveX (Source &source, T &value)
 Deserializes a primitive type like int, long.
 
void DCMTree_Serialization::serializeX (Sink &sink, int value)
 Serializes an int.
 
void DCMTree_Serialization::deserializeX (Source &source, int &value)
 Deserializes an int.
 
void DCMTree_Serialization::serializeX (Sink &sink, unsigned int value)
 Serializes an unsigned int.
 
void DCMTree_Serialization::deserializeX (Source &source, unsigned int &value)
 Deserializes an unsigned int.
 
void DCMTree_Serialization::serializeX (Sink &sink, short value)
 Serializes an short.
 
void DCMTree_Serialization::deserializeX (Source &source, short &value)
 Deserializes an short.
 
void DCMTree_Serialization::serializeX (Sink &sink, unsigned short value)
 Serializes an unsigned short.
 
void DCMTree_Serialization::deserializeX (Source &source, unsigned short &value)
 Deserializes an unsigned short.
 
void DCMTree_Serialization::serializeX (Sink &sink, long value)
 Serializes an long.
 
void DCMTree_Serialization::deserializeX (Source &source, long &value)
 Deserializes an long.
 
void DCMTree_Serialization::serializeX (Sink &sink, unsigned long value)
 Serializes an unsigned long.
 
void DCMTree_Serialization::deserializeX (Source &source, unsigned long &value)
 Deserializes an unsigned long.
 
void DCMTree_Serialization::serializeX (Sink &sink, long long value)
 Serializes an long.
 
void DCMTree_Serialization::deserializeX (Source &source, long long &value)
 Deserializes an long.
 
void DCMTree_Serialization::serializeX (Sink &sink, unsigned long long value)
 Serializes an unsigned long.
 
void DCMTree_Serialization::deserializeX (Source &source, unsigned long long &value)
 Deserializes an unsigned long.
 
void DCMTree_Serialization::serializeX (Sink &sink, float value)
 Serializes an float.
 
void DCMTree_Serialization::deserializeX (Source &source, float &value)
 Deserializes an float.
 
void DCMTree_Serialization::serializeX (Sink &sink, const double &value)
 Serializes an double.
 
void DCMTree_Serialization::deserializeX (Source &source, double &value)
 Deserializes an double.
 
void DCMTree_Serialization::serializeX (Sink &sink, bool value)
 Serializes an bool .
 
void DCMTree_Serialization::deserializeX (Source &source, bool &value)
 Deserializes an bool .
 
void DCMTree_Serialization::serializeX (Sink &sink, const std::string &value)
 Serializes a QString.
 
void DCMTree_Serialization::deserializeX (Source &source, std::string &value)
 Deserializes a QString.
 
template<typename T >
void DCMTree_Serialization::serializeEnumX (Sink &sink, T value)
 Serializes an enum.
 
template<typename T >
void DCMTree_Serialization::deserializeEnumX (Source &source, T &value)
 Deserializes an enum.
 
void DCMTree_Serialization::serializeX (Sink &sink, const Serializable &value)
 Serializes a Serializable.
 
void DCMTree_Serialization::deserializeX (Source &source, Deserializable &value)
 Deserializes a Deserializable.
 
template<typename T >
void DCMTree_Serialization::serializeX (Sink &sink, boost::shared_ptr< T > value)
 Serializes boost::shared_ptr<T>.
 
template<typename T >
void DCMTree_Serialization::deserializeIntoNewX (Source &source, boost::shared_ptr< T > &value)
 Deserializes boost::shared_ptr<T>.
 
template<typename T >
void DCMTree_Serialization::deserializeIntoExistingX (Source &source, boost::shared_ptr< T > value)
 Deserializes boost::shared_ptr<T>.
 
template<typename T , typename U >
void DCMTree_Serialization::serializeX (Sink &sink, const std::pair< T, U > &value)
 Serializes std::pair<T,U>.
 
template<typename T , typename U >
void DCMTree_Serialization::deserializeX (Source &source, std::pair< T, U > &value)
 Deserializes std::pair<T,U>.
 
template<typename T , typename U >
void DCMTree_Serialization::serializeX (Sink &sink, const std::map< T, U > &value)
 Serializes std::map<T,U>.
 
template<typename T , typename U >
void DCMTree_Serialization::deserializeX (Source &source, std::map< T, U > &value)
 Deserializes std::map<T,U>.
 
template<typename T , typename U >
void DCMTree_Serialization::serializeX (Sink &sink, const std::multimap< T, U > &value)
 Serializes std::multimap<T,U>.
 
template<typename T , typename U >
void DCMTree_Serialization::deserializeX (Source &source, std::multimap< T, U > &value)
 Deserializes std::multimap<T,U>.
 
template<typename T >
void DCMTree_Serialization::serializeX (Sink &sink, const std::set< T > &value)
 Serializes std::set<T>.
 
template<typename T >
void DCMTree_Serialization::deserializeX (Source &source, std::set< T > &value)
 Deserializes std::set<T>.
 
template<typename T >
void DCMTree_Serialization::serializeX (Sink &sink, const std::vector< T > &vl)
 Serializes a std::vector of serializable objects.
 
template<typename T >
void DCMTree_Serialization::deserializeX (Source &source, std::vector< T > &vl)
 Deserializes a std::vector of deserializable objects.
 
template<typename T >
void DCMTree_Serialization::serializeX (SerializerIntf< T > &serializer, Sink &sink, const T &value)
 Serializes an object with the help of a SerializerIntf.
 
template<typename T >
void DCMTree_Serialization::deserializeX (DeserializerIntf< T > &deserializer, Source &source, T &value)
 Deserializes an object with the help of a DeserializerIntf.
 
template<typename T >
bool DCMTree_Serialization::serialize (Sink &sink, const T &value)
 Adapts serializeX to return an error code instead of throwing an exception.
 
template<typename T >
bool DCMTree_Serialization::deserialize (Source &source, T &value)
 Adapts deserializeX to return an error code instead of throwing an exception.