MeVisLab Toolbox Reference
DCMTree_Serialization::Source Class Referenceabstract

Interface of a data source for the deserialization of objects. More...

#include <DCMTree_Serialization.h>

Inheritance diagram for DCMTree_Serialization::Source:
DCMTree_Serialization::FileSource

Public Member Functions

virtual ~Source ()
 
void readX (std::string &value)
 
void readTypeX (TypeCode expected)
 Reads a TypeCode. More...
 
virtual void readX (void *data, boost::uint32_t size)=0
 Reads a specified number of bytes. More...
 
virtual void rewind ()=0
 

Detailed Description

Interface of a data source for the deserialization of objects.

Definition at line 102 of file DCMTree_Serialization.h.

Constructor & Destructor Documentation

◆ ~Source()

virtual DCMTree_Serialization::Source::~Source ( )
inlinevirtual

Definition at line 104 of file DCMTree_Serialization.h.

Member Function Documentation

◆ readTypeX()

void DCMTree_Serialization::Source::readTypeX ( TypeCode  expected)

Reads a TypeCode.

Parameters
expectedThe expected TypeCode
Exceptions
IOExceptionIf reading fails or the read TypeCode doesn't match the expected TypeCode.

◆ readX() [1/2]

void DCMTree_Serialization::Source::readX ( std::string &  value)

◆ readX() [2/2]

virtual void DCMTree_Serialization::Source::readX ( void *  data,
boost::uint32_t  size 
)
pure virtual

Reads a specified number of bytes.

Exceptions
IOExceptionIf reading fails.

Implemented in DCMTree_Serialization::FileSource.

◆ rewind()

virtual void DCMTree_Serialization::Source::rewind ( )
pure virtual

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