MeVisLab Toolbox Reference
|
Classes | |
class | Deserializable |
Interface which provides a method to deserialize an object. More... | |
class | DeserializerIntf |
Interface of a class, which can be used to deserialize objects without a default constructor. More... | |
class | FileSink |
Class to write DCMtree as file stream. More... | |
class | FileSource |
Class to read DCMtree file stream. More... | |
class | Serializable |
Interface which provides a method to serialize an object. More... | |
class | SerializerIntf |
Interface of a class, which can be used to serialize objects. More... | |
class | Sink |
Interface of a data sink for the serialization of objects. More... | |
class | Source |
Interface of a data source for the deserialization of objects. More... | |
Enumerations | |
enum | TypeCode { TC_BOOL , TC_SIGNED_INT , TC_UNSIGNED_INT , TC_SIGNED_SHORT , TC_UNSIGNED_SHORT , TC_SIGNED_LONG , TC_UNSIGNED_LONG , TC_FLOAT , TC_DOUBLE , TC_STRING , TC_PAIR , TC_VECTOR , TC_MAP , TC_SET , TC_MULTIMAP , TC_ENUM , TC_OTHER , TC_SIGNED_LONG_LONG , TC_UNSIGNED_LONG_LONG } |
Used to encode type of next serialized value into the stream. More... | |
Functions | |
void | serializeX (Sink &sink, const DCMTree::TransferSyntax &syntax) |
void | deserializeX (Source &source, DCMTree::TransferSyntax &syntax) |
void | serializeX (Sink &sink, const DCMTree::Vr &vr) |
void | deserializeX (Source &source, DCMTree::Vr &vr) |
template<typename T > | |
void | serializePrimitiveX (Sink &sink, T value) |
Serializes a primitive type like int , long . | |
template<typename T > | |
void | deserializePrimitiveX (Source &source, T &value) |
Deserializes a primitive type like int , long . | |
void | serializeX (Sink &sink, int value) |
Serializes an int . | |
void | deserializeX (Source &source, int &value) |
Deserializes an int . | |
void | serializeX (Sink &sink, unsigned int value) |
Serializes an unsigned int . | |
void | deserializeX (Source &source, unsigned int &value) |
Deserializes an unsigned int . | |
void | serializeX (Sink &sink, short value) |
Serializes an short . | |
void | deserializeX (Source &source, short &value) |
Deserializes an short . | |
void | serializeX (Sink &sink, unsigned short value) |
Serializes an unsigned short . | |
void | deserializeX (Source &source, unsigned short &value) |
Deserializes an unsigned short . | |
void | serializeX (Sink &sink, long value) |
Serializes an long . | |
void | deserializeX (Source &source, long &value) |
Deserializes an long . | |
void | serializeX (Sink &sink, unsigned long value) |
Serializes an unsigned long . | |
void | deserializeX (Source &source, unsigned long &value) |
Deserializes an unsigned long . | |
void | serializeX (Sink &sink, long long value) |
Serializes an long . | |
void | deserializeX (Source &source, long long &value) |
Deserializes an long . | |
void | serializeX (Sink &sink, unsigned long long value) |
Serializes an unsigned long . | |
void | deserializeX (Source &source, unsigned long long &value) |
Deserializes an unsigned long . | |
void | serializeX (Sink &sink, float value) |
Serializes an float . | |
void | deserializeX (Source &source, float &value) |
Deserializes an float . | |
void | serializeX (Sink &sink, const double &value) |
Serializes an double . | |
void | deserializeX (Source &source, double &value) |
Deserializes an double . | |
void | serializeX (Sink &sink, bool value) |
Serializes an bool . | |
void | deserializeX (Source &source, bool &value) |
Deserializes an bool . | |
void | serializeX (Sink &sink, const std::string &value) |
Serializes a QString. | |
void | deserializeX (Source &source, std::string &value) |
Deserializes a QString. | |
template<typename T > | |
void | serializeEnumX (Sink &sink, T value) |
Serializes an enum. | |
template<typename T > | |
void | deserializeEnumX (Source &source, T &value) |
Deserializes an enum. | |
void | serializeX (Sink &sink, const Serializable &value) |
Serializes a Serializable. | |
void | deserializeX (Source &source, Deserializable &value) |
Deserializes a Deserializable. | |
template<typename T > | |
void | serializeX (Sink &sink, boost::shared_ptr< T > value) |
Serializes boost::shared_ptr<T>. | |
template<typename T > | |
void | deserializeIntoNewX (Source &source, boost::shared_ptr< T > &value) |
Deserializes boost::shared_ptr<T>. | |
template<typename T > | |
void | deserializeIntoExistingX (Source &source, boost::shared_ptr< T > value) |
Deserializes boost::shared_ptr<T>. | |
template<typename T , typename U > | |
void | serializeX (Sink &sink, const std::pair< T, U > &value) |
Serializes std::pair<T,U>. | |
template<typename T , typename U > | |
void | deserializeX (Source &source, std::pair< T, U > &value) |
Deserializes std::pair<T,U>. | |
template<typename T , typename U > | |
void | serializeX (Sink &sink, const std::map< T, U > &value) |
Serializes std::map<T,U>. | |
template<typename T , typename U > | |
void | deserializeX (Source &source, std::map< T, U > &value) |
Deserializes std::map<T,U>. | |
template<typename T , typename U > | |
void | serializeX (Sink &sink, const std::multimap< T, U > &value) |
Serializes std::multimap<T,U>. | |
template<typename T , typename U > | |
void | deserializeX (Source &source, std::multimap< T, U > &value) |
Deserializes std::multimap<T,U>. | |
template<typename T > | |
void | serializeX (Sink &sink, const std::set< T > &value) |
Serializes std::set<T>. | |
template<typename T > | |
void | deserializeX (Source &source, std::set< T > &value) |
Deserializes std::set<T>. | |
template<typename T > | |
void | serializeX (Sink &sink, const std::vector< T > &vl) |
Serializes a std::vector of serializable objects. | |
template<typename T > | |
void | deserializeX (Source &source, std::vector< T > &vl) |
Deserializes a std::vector of deserializable objects. | |
template<typename T > | |
void | serializeX (SerializerIntf< T > &serializer, Sink &sink, const T &value) |
Serializes an object with the help of a SerializerIntf. | |
template<typename T > | |
void | deserializeX (DeserializerIntf< T > &deserializer, Source &source, T &value) |
Deserializes an object with the help of a DeserializerIntf. | |
template<typename T > | |
bool | serialize (Sink &sink, const T &value) |
Adapts serializeX to return an error code instead of throwing an exception. | |
template<typename T > | |
bool | deserialize (Source &source, T &value) |
Adapts deserializeX to return an error code instead of throwing an exception. | |
Used to encode type of next serialized value into the stream.
This is not a very cross-compiler friendly way of doing this. It should use size specific declarations like boost uint32_t
Definition at line 36 of file DCMTree_Serialization.h.
Adapts deserializeX to return an error code instead of throwing an exception.
Definition at line 376 of file DCMTree_SerializationHelper.h.
References deserializeX().
Deserializes an enum.
Definition at line 131 of file DCMTree_SerializationHelper.h.
References deserializePrimitiveX(), mlrange_cast(), T, and TC_ENUM.
|
inline |
Deserializes boost::shared_ptr<T>.
T
has to be deserializable type.
value | Must not be null. |
Definition at line 173 of file DCMTree_SerializationHelper.h.
References deserializeX().
|
inline |
Deserializes boost::shared_ptr<T>.
T
has to be deserializable type with a default constructor.
value | May be null. Is initialized with a new, default constructed object before deserialization. |
Definition at line 163 of file DCMTree_SerializationHelper.h.
References deserializeX(), and T.
Deserializes a primitive type like int
, long
.
Definition at line 44 of file DCMTree_SerializationHelper.h.
Referenced by deserializeEnumX(), and deserializeX().
|
inline |
Deserializes an object with the help of a DeserializerIntf.
Definition at line 355 of file DCMTree_SerializationHelper.h.
References mlrange_cast().
void DCMTree_Serialization::deserializeX | ( | Source & | source, |
DCMTree::TransferSyntax & | syntax ) |
Referenced by deserialize(), deserializeIntoExistingX(), deserializeIntoNewX(), deserializeX(), deserializeX(), deserializeX(), deserializeX(), and deserializeX().
void DCMTree_Serialization::deserializeX | ( | Source & | source, |
DCMTree::Vr & | vr ) |
|
inline |
Deserializes a Deserializable.
Definition at line 146 of file DCMTree_SerializationHelper.h.
References DCMTree_Serialization::Deserializable::deserializeX().
Deserializes an double
.
Deserializes an long
.
Deserializes std::map<T,U>.
T
and U
have to be deserializable types.
Definition at line 217 of file DCMTree_SerializationHelper.h.
References deserializeX(), mlrange_cast(), T, and TC_MAP.
Deserializes std::multimap<T,U>.
T
and U
have to be deserializable types.
Definition at line 253 of file DCMTree_SerializationHelper.h.
References deserializeX(), mlrange_cast(), T, TC_MULTIMAP, and U.
Deserializes std::pair<T,U>.
T
and U
have to be deserializable types.
Definition at line 189 of file DCMTree_SerializationHelper.h.
References deserializeX(), and TC_PAIR.
Deserializes std::set<T>.
T
has to be deserializable type.
Definition at line 290 of file DCMTree_SerializationHelper.h.
References deserializeX(), mlrange_cast(), T, and TC_SET.
Deserializes a QString.
Deserializes a std::vector of deserializable objects.
Definition at line 327 of file DCMTree_SerializationHelper.h.
References deserializePrimitiveX(), deserializeX(), mlrange_cast(), and TC_VECTOR.
Deserializes an unsigned int
.
Deserializes an unsigned long
.
Deserializes an unsigned long
.
Deserializes an unsigned short
.
Adapts serializeX to return an error code instead of throwing an exception.
Definition at line 362 of file DCMTree_SerializationHelper.h.
References serializeX().
Serializes an enum.
Definition at line 123 of file DCMTree_SerializationHelper.h.
References mlrange_cast(), serializePrimitiveX(), and TC_ENUM.
Serializes a primitive type like int
, long
.
Definition at line 37 of file DCMTree_SerializationHelper.h.
References mlrange_cast().
Referenced by serializeEnumX(), and serializeX().
|
inline |
Serializes an object with the help of a SerializerIntf.
Definition at line 348 of file DCMTree_SerializationHelper.h.
References mlrange_cast().
Serializes boost::shared_ptr<T>.
T
has to be a serializable type.
Definition at line 153 of file DCMTree_SerializationHelper.h.
References mlrange_cast(), and serializeX().
void DCMTree_Serialization::serializeX | ( | Sink & | sink, |
const DCMTree::TransferSyntax & | syntax ) |
Referenced by serialize(), serializeX(), serializeX(), serializeX(), serializeX(), serializeX(), and serializeX().
void DCMTree_Serialization::serializeX | ( | Sink & | sink, |
const DCMTree::Vr & | vr ) |
|
inline |
Serializes a Serializable.
Definition at line 140 of file DCMTree_SerializationHelper.h.
References mlrange_cast(), and DCMTree_Serialization::Serializable::serializeX().
Serializes std::map<T,U>.
T
and U
have to be serializable types.
Definition at line 198 of file DCMTree_SerializationHelper.h.
References mlrange_cast(), serializeX(), and TC_MAP.
Serializes std::multimap<T,U>.
T
and U
have to be serializable types.
Definition at line 234 of file DCMTree_SerializationHelper.h.
References mlrange_cast(), serializeX(), and TC_MULTIMAP.
Serializes std::pair<T,U>.
T
and U
have to be serializable types.
Definition at line 180 of file DCMTree_SerializationHelper.h.
References mlrange_cast(), serializeX(), and TC_PAIR.
Serializes std::set<T>.
T
has to be serializable type.
Definition at line 272 of file DCMTree_SerializationHelper.h.
References mlrange_cast(), serializeX(), and TC_SET.
Serializes a QString.
Serializes a std::vector of serializable objects.
Definition at line 307 of file DCMTree_SerializationHelper.h.
References mlrange_cast(), serializePrimitiveX(), serializeX(), and TC_VECTOR.
Serializes an unsigned int
.
Serializes an unsigned long
.
Serializes an unsigned long
.