#include <exceptionmanager.h>
Public Member Functions | |
void | init (int *excpId, const QString &desc) |
void | add (int excpId, bool verbose) |
void | remove (int excpId) |
void | raise (int excpId) |
void | throwPending () |
int | saveThrowableSet () |
void | restoreThrowableSet (int regionId) |
bool | isMatch (int value, int excpId, const QString &context) |
const QString | desc (int excpId) |
bool | isPending (int excpId) |
Static Public Member Functions | |
static ExceptionManager * | em () |
Protected Member Functions | |
ExceptionManager () | |
ExceptionManager (const ExceptionManager &) | |
ExceptionManager & | operator= (const ExceptionManager &) |
Private Types | |
typedef QValueList < Exception > | ThrowableSet |
typedef ThrowableSet::iterator | SetIt |
Private Member Functions | |
SetIt | findExcp (ThrowableSet &ts, const SetIt &startIt, int excpId) |
void | setRaisedFlag (ThrowableSet &ts, int excpId) |
Private Attributes | |
int | excpId |
int | regionId |
int | currentRegionId |
QMap< int, ThrowableSet > | throwableSetMap |
ThrowableSet | totalThrowableSet |
ThrowableSet | regionThrowableSet |
QValueVector< QString > | descriptions |
Classes | |
class | Exception |
Definition at line 41 of file exceptionmanager.h.
typedef QValueList<Exception> ThrowableSet [private] |
Definition at line 76 of file exceptionmanager.h.
typedef ThrowableSet::iterator SetIt [private] |
Definition at line 77 of file exceptionmanager.h.
ExceptionManager | ( | ) | [protected] |
Definition at line 14 of file exceptionmanager.cpp.
ExceptionManager | ( | const ExceptionManager & | ) | [protected] |
ExceptionManager& operator= | ( | const ExceptionManager & | ) | [protected] |
static ExceptionManager* em | ( | ) | [inline, static] |
Definition at line 48 of file exceptionmanager.h.
void init | ( | int * | excpId, | |
const QString & | desc | |||
) |
Definition at line 20 of file exceptionmanager.cpp.
void add | ( | int | excpId, | |
bool | verbose | |||
) |
Definition at line 42 of file exceptionmanager.cpp.
void remove | ( | int | excpId | ) |
Definition at line 53 of file exceptionmanager.cpp.
void raise | ( | int | excpId | ) |
Definition at line 98 of file exceptionmanager.cpp.
void throwPending | ( | ) |
Definition at line 161 of file exceptionmanager.cpp.
int saveThrowableSet | ( | ) |
Definition at line 119 of file exceptionmanager.cpp.
void restoreThrowableSet | ( | int | regionId | ) |
Definition at line 136 of file exceptionmanager.cpp.
bool isMatch | ( | int | value, | |
int | excpId, | |||
const QString & | context | |||
) |
Definition at line 31 of file exceptionmanager.cpp.
const QString desc | ( | int | excpId | ) |
bool isPending | ( | int | excpId | ) |
Definition at line 146 of file exceptionmanager.cpp.
ExceptionManager::SetIt findExcp | ( | ThrowableSet & | ts, | |
const SetIt & | startIt, | |||
int | excpId | |||
) | [private] |
void setRaisedFlag | ( | ThrowableSet & | ts, | |
int | excpId | |||
) | [private] |
int excpId [private] |
int regionId [private] |
Definition at line 65 of file exceptionmanager.h.
Referenced by ExceptionManager(), and saveThrowableSet().
int currentRegionId [private] |
Definition at line 66 of file exceptionmanager.h.
Referenced by ExceptionManager(), and saveThrowableSet().
QMap<int, ThrowableSet> throwableSetMap [private] |
Definition at line 78 of file exceptionmanager.h.
Referenced by isPending(), raise(), restoreThrowableSet(), and saveThrowableSet().
ThrowableSet totalThrowableSet [private] |
ThrowableSet regionThrowableSet [private] |
Definition at line 80 of file exceptionmanager.h.
Referenced by add(), raise(), remove(), restoreThrowableSet(), saveThrowableSet(), and throwPending().
QValueVector<QString> descriptions [private] |
Definition at line 81 of file exceptionmanager.h.
Referenced by desc(), ExceptionManager(), init(), and isMatch().