All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines
Public Member Functions | Static Public Member Functions
GpCoreTools::TraceBug Class Reference

Brief description of class still missing. More...

#include <TraceBug.h>

List of all members.

Public Member Functions

void append (const char *valName, const void *val)
void append (const char *valName, Variant val)
 TraceBug (const TraceStamp *stamp)
 ~TraceBug ()

Static Public Member Functions

static std::string backTrace (const std::vector< TraceBug * > *stack)
static std::vector< TraceBug * > * mainStack ()

Detailed Description

Brief description of class still missing.

Full description of class still missing


Constructor & Destructor Documentation

Description of constructor still missing

References GpCoreTools::PThread::bugStack(), and GpCoreTools::PThread::currentThread().

{
  PThread * t=PThread::currentThread();
  if(t) {
    _myStack=t->bugStack();
    _myStack->push_back(this);
  } else {
    _myStack=&_mainStack;
    _myStack->push_back(this);
  }
  _stamp=s;
}

Description of destructor still missing

{
  if(_myStack) {
    _myStack->pop_back();
  }
}

Member Function Documentation

void GpCoreTools::TraceBug::append ( const char *  valName,
const void *  val 
) [inline]
{
  _infos.push_back(TraceInfo(valName, val) );
}
void GpCoreTools::TraceBug::append ( const char *  valName,
Variant  val 
) [inline]
{
  _infos.push_back(TraceInfo(valName, val) );
}
std::string GpCoreTools::TraceBug::backTrace ( const std::vector< TraceBug * > *  stack) [static]
{
  std::string list;

  for(std::vector<TraceBug *>::const_reverse_iterator it=stack->rbegin();it!=stack->rend();it--) {
    list += (*it)->toString();
  }
  return list;
}
static std::vector<TraceBug *>* GpCoreTools::TraceBug::mainStack ( ) [inline, static]

Referenced by GpCoreTools::PThread::bugStacks().

{return &_mainStack;}

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines