ExceptionManager Class Reference

#include <exceptionmanager.h>

List of all members.

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 ExceptionManagerem ()

Protected Member Functions

 ExceptionManager ()
 ExceptionManager (const ExceptionManager &)
ExceptionManageroperator= (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, ThrowableSetthrowableSetMap
ThrowableSet totalThrowableSet
ThrowableSet regionThrowableSet
QValueVector< QString > descriptions

Classes

class  Exception


Detailed Description

Definition at line 41 of file exceptionmanager.h.


Member Typedef Documentation

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.


Constructor & Destructor Documentation

ExceptionManager (  )  [protected]

Definition at line 14 of file exceptionmanager.cpp.

ExceptionManager ( const ExceptionManager  )  [protected]


Member Function Documentation

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  ) 

Definition at line 26 of file exceptionmanager.cpp.

Referenced by throwPending().

bool isPending ( int  excpId  ) 

Definition at line 146 of file exceptionmanager.cpp.

ExceptionManager::SetIt findExcp ( ThrowableSet ts,
const SetIt startIt,
int  excpId 
) [private]

Definition at line 79 of file exceptionmanager.cpp.

Referenced by raise(), and setRaisedFlag().

void setRaisedFlag ( ThrowableSet ts,
int  excpId 
) [private]

Definition at line 89 of file exceptionmanager.cpp.

Referenced by raise().


Member Data Documentation

int excpId [private]

Definition at line 64 of file exceptionmanager.h.

Referenced by ExceptionManager(), and init().

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]

Definition at line 79 of file exceptionmanager.h.

Referenced by add(), raise(), and remove().

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().


The documentation for this class was generated from the following files:
Generated on Fri Dec 7 21:57:39 2007 for QGit by  doxygen 1.5.3