QError Class Reference

List of all members.


Detailed Description

error class with error type and description

QFramework errors definition.

Every algorithm or procedure have to use this class for error return, modules will read these errors and decide what to do

Public Member Functions

 QError ()
 Default constructor.
 QError (QError_ err)
 constructor with error type
 QError (QError_ err, const std::string &descr)
 contructor with error type and description
 QError (QError_ err, const std::string &file, const int line, const std::string &descr)
 constructor with error type, filename, line and description
 QError (const QError &err)
 copy constructor
virtual ~QError ()
 destructor
const QErroroperator= (const QError_ &e)
 assignement operator
const QErroroperator= (const QError &e)
 assignement operator from QError
void SetDescription (const std::string &descr)
 set error description
void SetDescription (const std::string &file, const int line, const std::string &descr)
 set error description with file and line
std::string GetDescription () const
 get error description
QError_ GetCode () const
 get error code
const std::string & ToString () const
 error type to string conversion
bool operator== (const QError_ &e) const
 comparison with QError_ enum
bool operator== (const QError &e) const
 comparison with QError based on enum only
bool operator!= (const QError_ &e) const
 comparison with QError_ enum
bool operator!= (const QError &e) const
 comparison with QError based on enum only
void Set (QError_ e=QERR_SUCCESS, const std::string &descr="")
 set to error code and description (default is SUCCESS)
void Set (QError_ e, const std::string &file, const int line, const std::string &descr="")

Static Private Member Functions

static void Init ()
 initialization of fMap

Private Attributes

QError_ fErr
 underlying enum
std::string fDescr
 error description
std::string fFile
 file
int fLine
 line

Static Private Attributes

static std::map< QError_,
std::string > 
fMap
 map of string error

Friends

std::ostream & operator<< (std::ostream &s, const QError &err)
 stream of error type and description


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

Generated on Tue Nov 16 10:50:05 2010 for CUORE Software by  doxygen 1.5.6