MeVisLab Toolbox Reference
|
Interface which provides a method to serialize an object. More...
#include <DCMTree_Serialization.h>
Public Member Functions | |
virtual void | serializeX (Sink &sink) const =0 |
Writes data of this object to Sink. | |
virtual | ~Serializable () |
Empty. | |
Interface which provides a method to serialize an object.
Definition at line 123 of file DCMTree_Serialization.h.
|
inlinevirtual |
Empty.
Definition at line 155 of file DCMTree_Serialization.h.
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.
Implemented in DCMTree::Message, DCMTree::Tag, DCMTree::TagId, DCMTree::TagInfo, DCMTree::Tree, and DCMTree::Value.
Referenced by DCMTree_Serialization::serializeX().