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

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

#include "mdsSetup.h"
#include "mdsBaseExport.h"

Classes

class  mds::CNamed
 Base class for all named objects. More...

Namespaces

namespace  mds
 

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


Defines

#define MDS_CLASS_NAME(name)
 Macro used to add virtual method getClassName() to a class.
#define MDS_STATIC_NAME(name)
 Macro used to add static method getClassName() to a class.
#define MDS_STATIC_TEMPLATE_NAME(Name, Type)
 Special macro used to add static method getClassName() to a class template.
#define MDS_TEMPLATE_NAME(Name, Type)
 Special macro used to add virtual method getClassName() to a class template.

Detailed Description

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

Author: Michal Spanel, spanel@fit.vutbr.cz
Date: 2009/11/22

Id:
mdsNamedObject.h 1863 2010-08-31 20:40:15Z spanel

Description:


Define Documentation

#define MDS_CLASS_NAME (   name)
Value:
virtual const char *getClassName() const \
    { \
        return name; \
    }

Macro used to add virtual method getClassName() to a class.

  • Parameter Name is a string literal.
#define MDS_STATIC_NAME (   name)
Value:
static const char *getClassName() \
    { \
        return name; \
    }

Macro used to add static method getClassName() to a class.

  • Parameters Name is a string literal.
#define MDS_STATIC_TEMPLATE_NAME (   Name,
  Type 
)
Value:
static const char *getClassName() \
    { \
        static const std::string ssName = std::string(Name) + '<' + std::string(Type) + '>'; \
        return ssName.c_str(); \
    }

Special macro used to add static method getClassName() to a class template.

Name contains information about concrete template parameters.

  • Parameters Name and Type are string literals or C/STL strings.
#define MDS_TEMPLATE_NAME (   Name,
  Type 
)
Value:
virtual const char *getClassName() const \
    { \
        static const std::string ssName = std::string(Name) + '<' + std::string(Type) + '>'; \
        return ssName.c_str(); \
    }

Special macro used to add virtual method getClassName() to a class template.

Name contains information about concrete template parameters.

  • Parameters Name and Type are string literals or C/STL strings.