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

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

#include "mdsSetup.h"
#include "mdsBaseExport.h"
#include <stdexcept>

Classes

struct  mds::base::CConstructorFailed
 Exception thrown from a failed constructor. More...
struct  mds::base::CException
 Base class for all MDSTk exceptions. More...
struct  mds::base::CFunctionFailed
 Sample exception thrown from a failed function. More...
struct  mds::base::CNotImplemented
 Exception thrown from a failed constructor. More...

Namespaces

namespace  mds
 

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


namespace  mds::base

Defines

#define MDS_DECLARE_EXCEPTION(ClassName, Description)
 Helper macro declares a new exception derived from the mds::base::CException class.

Detailed Description

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

Author: Michal Spanel, spanel@fit.vutbr.cz
Date: 2003/10/23

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

Description:


Define Documentation

#define MDS_DECLARE_EXCEPTION (   ClassName,
  Description 
)
Value:
struct ClassName : public mds::base::CException \
    { \
        ClassName() throw() {} \
        virtual ~ClassName() throw() {} \
        virtual const char *what() const throw() { return Description; } \
    };

Helper macro declares a new exception derived from the mds::base::CException class.