CError Class Reference

#include <error.h>

List of all members.

Public Member Functions

 CError (const char *filename, unsigned long line, const std::string &txt)
 ~CError () throw ()
virtual const char * what () const throw ()
std::ostream & operator<< (std::ostream &os) const

Protected Attributes

std::string m_filename
std::string m_txt
unsigned long m_line


Detailed Description

Definition at line 50 of file error.h.


Constructor & Destructor Documentation

CError::CError ( const char *  filename,
unsigned long  line,
const std::string &  txt 
)

Definition at line 58 of file error.cpp.

00060   : m_filename(filename), m_txt(txt), m_line(line)
00061 {}

CError::~CError (  )  throw ()

Definition at line 63 of file error.cpp.

00064 {}


Member Function Documentation

std::ostream & CError::operator<< ( std::ostream &  os  )  const

Definition at line 71 of file error.cpp.

00072 {
00073   os << m_txt;
00074   return os;
00075 }

const char * CError::what (  )  const throw () [virtual]

Definition at line 66 of file error.cpp.

00067 {
00068   return m_txt.c_str();
00069 }


Member Data Documentation

std::string CError::m_filename [protected]

Definition at line 53 of file error.h.

unsigned long CError::m_line [protected]

Definition at line 54 of file error.h.

std::string CError::m_txt [protected]

Definition at line 53 of file error.h.


The documentation for this class was generated from the following files:
Generated on Mon Jan 1 13:38:40 2007 for Wormux by  doxygen 1.4.7