MDSTk Libraries  1.1.0
Medical Data Segmentation Toolkit
Classes | Namespaces | Defines
mdsSerializable.h File Reference

Medical Data Segmentation Toolkit (MDSTk)
Copyright (c) 2003-2009 by Michal Spanel
. More...

#include "mdsCompressionMethods.h"
#include "mdsModuleExport.h"

Classes

class  mds::mod::CSerializable
 Base class for all serializable objects further called data entities. More...

Namespaces

namespace  mds
 

Medical Data Segmentation Toolkit (MDSTk)
Copyright (c) 2003-2005 by Michal Spanel


namespace  mds::mod

Defines

#define MDS_ENTITY_BLOCK_SIZE(Size)
 Macro used to change block size of a serializable class.
#define MDS_ENTITY_COMPRESSION(Compression)
 Macro used to declare compression method of a serializable class.
#define MDS_ENTITY_NAME(Name)
 Macro declares data entity name of a class used in the serialization concept.
#define MDS_ENTITY_TEMPLATE_NAME(Name, Param)
 Macro declares data entity name of a class used in the serialization concept.
#define MDS_SPECIALIZE_ENTITY_COMPRESSION(Class, Compression)
 Macro can be used to change compression method of a serializable class template regarding a concrete template parameters.

Detailed Description

Medical Data Segmentation Toolkit (MDSTk)
Copyright (c) 2003-2009 by Michal Spanel
.

Author: Michal Spanel, spanel@fit.vutbr.cz
Date: 2003/11/17

Id:
mdsSerializable.h 2092 2012-02-15 12:50:59Z spanel

Description:


Define Documentation

#define MDS_ENTITY_BLOCK_SIZE (   Size)
Value:
inline static int getBlockSize() \
    { \
        return Size; \
    }

Macro used to change block size of a serializable class.

#define MDS_ENTITY_COMPRESSION (   Compression)
Value:
inline static int getCompression() \
    { \
        return Compression; \
    }

Macro used to declare compression method of a serializable class.

#define MDS_ENTITY_NAME (   Name)
Value:
inline static const char *getName() \
    { \
        return Name; \
    }

Macro declares data entity name of a class used in the serialization concept.

  • Parameter Name is a string literal.
#define MDS_ENTITY_TEMPLATE_NAME (   Name,
  Param 
)
Value:
inline static const char *getName() \
    { \
        static const std::string ssName = std::string(Name) + '<' + std::string(Param) + '>'; \
        return ssName.c_str(); \
    }

Macro declares data entity name of a class used in the serialization concept.

Returned name containes information about type and concrete template parameter.

  • Parameters Name and Param are string literals.
#define MDS_SPECIALIZE_ENTITY_COMPRESSION (   Class,
  Compression 
)
Value:
template <> \
    inline int Class::getCompression() \
    { \
        return Compression; \
    }

Macro can be used to change compression method of a serializable class template regarding a concrete template parameters.