MDSTk Libraries
1.1.0
Medical Data Segmentation Toolkit
|
Medical Data Segmentation Toolkit (MDSTk)
Copyright (c) 2003-2009 by Michal Spanel
.
More...
Classes | |
class | mds::mod::CSerializable |
Base class for all serializable objects further called data entities. More... | |
Namespaces | |
namespace | mds |
Medical Data Segmentation Toolkit (MDSTk) | |
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. |
Medical Data Segmentation Toolkit (MDSTk)
Copyright (c) 2003-2009 by Michal Spanel
.
Author: Michal Spanel, spanel@fit.vutbr.cz
Date: 2003/11/17
Description:
#define MDS_ENTITY_BLOCK_SIZE | ( | Size | ) |
inline static int getBlockSize() \ { \ return Size; \ }
Macro used to change block size of a serializable class.
#define MDS_ENTITY_COMPRESSION | ( | Compression | ) |
inline static int getCompression() \ { \ return Compression; \ }
Macro used to declare compression method of a serializable class.
#define MDS_ENTITY_NAME | ( | Name | ) |
inline static const char *getName() \ { \ return Name; \ }
Macro declares data entity name of a class used in the serialization concept.
#define MDS_ENTITY_TEMPLATE_NAME | ( | Name, | |
Param | |||
) |
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.
#define MDS_SPECIALIZE_ENTITY_COMPRESSION | ( | Class, | |
Compression | |||
) |
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.