MeVisLab Toolbox Reference
DCMTree_Serialization::Sink Class Referenceabstract

Interface of a data sink for the serialization of objects. More...

#include <DCMTree_Serialization.h>

Inheritance diagram for DCMTree_Serialization::Sink:
DCMTree_Serialization::FileSink

Public Member Functions

virtual ~Sink ()
 
void writeX (const std::string &value)
 Writes a QString.
 
void writeTypeX (TypeCode tc)
 Writes a TypeCode.
 
virtual void writeX (const void *data, boost::uint32_t size)=0
 Writes a specified number of bytes.
 

Detailed Description

Interface of a data sink for the serialization of objects.

Definition at line 79 of file DCMTree_Serialization.h.

Constructor & Destructor Documentation

◆ ~Sink()

virtual DCMTree_Serialization::Sink::~Sink ( )
inlinevirtual

Definition at line 81 of file DCMTree_Serialization.h.

Member Function Documentation

◆ writeTypeX()

void DCMTree_Serialization::Sink::writeTypeX ( TypeCode tc)
inline

Writes a TypeCode.

Exceptions
IOExceptionIf writing fails.

Definition at line 91 of file DCMTree_Serialization.h.

References mlrange_cast().

◆ writeX() [1/2]

void DCMTree_Serialization::Sink::writeX ( const std::string & value)

Writes a QString.

Exceptions
IOExceptionIf writing fails.

◆ writeX() [2/2]

virtual void DCMTree_Serialization::Sink::writeX ( const void * data,
boost::uint32_t size )
pure virtual

Writes a specified number of bytes.

Implemented in DCMTree_Serialization::FileSink.


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