All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines
Brief description of class still missing. More...
#include <TraceBug.h>
Public Member Functions | |
| void | append (const char *valName, const void *val) |
| void | append (const char *valName, QVariant val) |
| TraceBug (const TraceStamp *stamp) | |
| ~TraceBug () | |
Static Public Member Functions | |
| static QString | backTrace (const QStack< TraceBug * > *stack) |
| static QStack< TraceBug * > * | mainStack () |
Brief description of class still missing.
Full description of class still missing
| QGpCoreTools::TraceBug::TraceBug | ( | const TraceStamp * | s | ) |
Description of constructor still missing
References QGpCoreTools::Thread::bugStack(), and QGpCoreTools::CoreApplication::instance().
{
QThread * t=QThread::currentThread();
Thread * myt=qobject_cast<Thread *>(t);
if(myt) {
_myStack=myt->bugStack();
_myStack->push(this);
} else if(t==CoreApplication::instance()->mainThread()) {
_myStack=&_mainStack;
_myStack->push(this);
} else {
_myStack=0;
}
_stamp=s;
}
Description of destructor still missing
{
if(_myStack) {
_myStack->pop();
}
}
| void QGpCoreTools::TraceBug::append | ( | const char * | valName, |
| const void * | val | ||
| ) | [inline] |
{
_infos.append(TraceInfo(valName, val));
}
| void QGpCoreTools::TraceBug::append | ( | const char * | valName, |
| QVariant | val | ||
| ) | [inline] |
{
_infos.append(TraceInfo(valName, val));
}
| QString QGpCoreTools::TraceBug::backTrace | ( | const QStack< TraceBug * > * | stack | ) | [static] |
{
QString list;
for(int i=stack->count()-1;i>=0;i--) {
list += stack->at(i)->toString();
}
return list;
}
| static QStack<TraceBug *>* QGpCoreTools::TraceBug::mainStack | ( | ) | [inline, static] |
Referenced by QGpCoreTools::Thread::bugStacks().
{return &_mainStack;}