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

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

#include "mdsFullException.h"

Classes

class  mds::base::CWarning
 Class encapsulating an exception origin and description. More...

Namespaces

namespace  mds
 

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


namespace  mds::base

Defines

#define MDS_CATCH_WARNING(ModuleName)
 Catch block for handling the CWarning exception.
#define MDS_THROW_WARNING(Name)   throw mds::base::CWarning(Name, __FILE__, __LINE__);
 Creates and throws warning with Name as a description.
#define MDS_WARNING(Name)   mds::base::CWarning(Name, __FILE__, __LINE__)
 Macro that creates warning with Name as a description.

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:
mdsWarning.h 2092 2012-02-15 12:50:59Z spanel

Description:


Define Documentation

#define MDS_CATCH_WARNING (   ModuleName)
Value:
catch( const mds::base::CWarning& Warning ) \
    { \
        MDS_LOG(Warning); \
        MDS_CERR('<' << ModuleName << "> Warning: see log for details" << std::endl); \
    }

Catch block for handling the CWarning exception.

  • Writes info about it to the global log and cerr.
  • Doesn't terminate the running application!
#define MDS_THROW_WARNING (   Name)    throw mds::base::CWarning(Name, __FILE__, __LINE__);

Creates and throws warning with Name as a description.

  • File and line parameters acquired from compiler.
#define MDS_WARNING (   Name)    mds::base::CWarning(Name, __FILE__, __LINE__)

Macro that creates warning with Name as a description.

  • File and line parameters acquired from compiler.