MDSTk Libraries  1.1.0
Medical Data Segmentation Toolkit
Public Member Functions | Protected Attributes | Friends
mds::base::CWarning Class Reference

Class encapsulating an exception origin and description. More...

#include <mdsWarning.h>

Inheritance diagram for mds::base::CWarning:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 CWarning (const std::string &sReason, const std::string &sFilename, int iLine) throw ()
 Constructor.
 CWarning (const CWarning &w) throw ()
 Exception copy constructor.
const std::string & getFilename () const throw ()
 Returns concrete filename.
int getLine () const throw ()
 Returns concrete line.
const std::string & getReason () const throw ()
 Returns description of exception reason.
virtual void print (std::ostream &Stream) const
 Writes warning description into the output stream in human readable form.
virtual const char * what () const throw ()
 Returns description of exception reason.
virtual ~CWarning () throw ()
 Virtual destructor.

Protected Attributes

int m_iLine
 Line on which exception has risen.
std::string m_sFilename
 File in which exception has risen.
std::string m_sReason
 Exception reason.

Friends

std::ostream & operator<< (std::ostream &Stream, const CWarning &Warning)
 Writes warning description into the output stream.
std::ostream & operator<< (std::ostream &Stream, const CFullException &Exception)
 Writes exception description into the output stream.

Detailed Description

Class encapsulating an exception origin and description.


Constructor & Destructor Documentation

mds::base::CWarning::CWarning ( const std::string &  sReason,
const std::string &  sFilename,
int  iLine 
) throw ()

Constructor.

mds::base::CWarning::CWarning ( const CWarning w) throw ()

Exception copy constructor.

virtual mds::base::CWarning::~CWarning ( ) throw () [virtual]

Virtual destructor.


Member Function Documentation

const std::string& mds::base::CFullException::getFilename ( ) const throw () [inherited]

Returns concrete filename.

int mds::base::CFullException::getLine ( ) const throw () [inherited]

Returns concrete line.

const std::string& mds::base::CFullException::getReason ( ) const throw () [inherited]

Returns description of exception reason.

void mds::base::CWarning::print ( std::ostream &  Stream) const [virtual]

Writes warning description into the output stream in human readable form.

Reimplemented from mds::base::CFullException.

const char * mds::base::CFullException::what ( ) const throw () [virtual, inherited]

Returns description of exception reason.

Reimplemented from mds::base::CException.


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  Stream,
const CWarning Warning 
) [friend]

Writes warning description into the output stream.

std::ostream& operator<< ( std::ostream &  Stream,
const CFullException Exception 
) [friend, inherited]

Writes exception description into the output stream.


Member Data Documentation

int mds::base::CFullException::m_iLine [protected, inherited]

Line on which exception has risen.

std::string mds::base::CFullException::m_sFilename [protected, inherited]

File in which exception has risen.

std::string mds::base::CFullException::m_sReason [protected, inherited]

Exception reason.


The documentation for this class was generated from the following files: