MeVisLab Toolbox Reference
mlAbstractPersistenceStream.h File Reference
#include "mlUtilsSystem.h"
#include "mlTypeDefs.h"
#include <ThirdPartyWarningsDisable.h>
#include <list>
#include <vector>
#include <set>
#include <string>
#include <ThirdPartyWarningsRestore.h>

Go to the source code of this file.

Classes

class  ml::AbstractPersistenceStream
 AbstactPersistenceStream is the base class for AbstractPersistenceOutputStream and AbstractPersistenceInputStream and implements the methods that are common for both these classes. More...
 
class  ml::AbstractPersistenceOutputStream
 Class for writing object data to a stream. More...
 
class  ml::AbstractPersistenceInputStream
 Class for reading object data from a stream. More...
 
class  ml::PersistenceStreamException
 This class represents the exceptions that can be thrown while reading from or writing to the persistence stream. More...
 
class  ml::PersistenceStreamIOException
 Derived class. More...
 
class  ml::PersistenceStreamFormatException
 Derived class. More...
 
class  ml::PersistenceStreamInternalError
 Derived class. This exception usually denotes programming errors. More...
 

Namespaces

namespace  ml
 Main documentation file for ML users and developers.
 

Macros

#define ML_WRITETO_SUPER(SuperClass, stream)
 Use this macro if you would like to store your super class members as well.
 
#define ML_READFROM_SUPER(SuperClass, stream)
 Use this macro if you would like to store your super class members as well.
 

Macro Definition Documentation

◆ ML_READFROM_SUPER

#define ML_READFROM_SUPER ( SuperClass,
stream )
Value:
{ \
int version = stream->startStructWithVersion("_" #SuperClass); \
SuperClass::readFrom(stream, version); \
stream->versionCheck(SuperClass::getTypeId()->getName(), SuperClass::getAddStateVersion(), version); \
stream->endStruct(); \
}
Target mlrange_cast(Source arg)
Generic version of checked ML casts.

Use this macro if you would like to store your super class members as well.

Mandatory if the superclass uses versioning.

Definition at line 454 of file mlAbstractPersistenceStream.h.

◆ ML_WRITETO_SUPER

#define ML_WRITETO_SUPER ( SuperClass,
stream )
Value:
{ \
stream->startStructWithVersion(SuperClass::getAddStateVersion(), "_" #SuperClass); \
SuperClass::writeTo(stream); \
stream->endStruct(); \
}

Use this macro if you would like to store your super class members as well.

Mandatory if the superclass uses versioning.

Definition at line 446 of file mlAbstractPersistenceStream.h.