MeVisLab Toolbox Reference
DCMTree_Serialization::Serializable Class Referenceabstract

Interface which provides a method to serialize an object. More...

#include <DCMTree_Serialization.h>

Inheritance diagram for DCMTree_Serialization::Serializable:
DCMTree::Message DCMTree::Tag DCMTree::TagId DCMTree::TagInfo DCMTree::Tree DCMTree::Value DCMTree::MFPixelTag DCMTree::PixelDataTag

Public Member Functions

virtual void serializeX (Sink &sink) const =0
 Writes data of this object to Sink.
 
virtual ~Serializable ()
 Empty.
 

Detailed Description

Interface which provides a method to serialize an object.

Definition at line 123 of file DCMTree_Serialization.h.

Constructor & Destructor Documentation

◆ ~Serializable()

virtual DCMTree_Serialization::Serializable::~Serializable ( )
inlinevirtual

Empty.

Definition at line 155 of file DCMTree_Serialization.h.

Member Function Documentation

◆ serializeX()

virtual void DCMTree_Serialization::Serializable::serializeX ( Sink & sink) const
pure virtual

Writes data of this object to Sink.

Implementations of Serializable::serializeX should strictly follow this pattern:

class C: public SCR::Serializable { T1 _m1; T2 _m2; T3 _m3; public: void serializeX(SCR::Sink &sink) const { SCR::serializeX(sink, _m1); SCR::serializeX(sink, _m2); SCR::serializeX(sink, _m3); } };

That is you should call some overloading of SCR::serializeX for every member.

If some of the types T1, T2, T3 are not serializable, you should make them serializable.

See also
SCR

Implemented in DCMTree::Message, DCMTree::Tag, DCMTree::TagId, DCMTree::TagInfo, DCMTree::Tree, and DCMTree::Value.

Referenced by DCMTree_Serialization::serializeX().


The documentation for this class was generated from the following file: