lyx_mirror/src/tracer.h
Lars Gullik Bjønnes 85798535a1 some using changes small changes in lyxfont and some other things, read the Changelog
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@632 a592a061-630c-0410-9148-cb99ea01b6c8
2000-03-28 02:18:55 +00:00

29 lines
430 B
C++

// -*- C++ -*-
#ifndef TRACER_H
#define TRACER_H
#include "debug.h"
#include "LString.h"
using std::endl;
class DebugTracer {
public:
DebugTracer(string const & s) : str(s) {
lyxerr << string(depth, ' ') << "Trace begin : "
<< str << endl;
++depth;
}
~DebugTracer() {
--depth;
lyxerr << string(depth, ' ') << "Trace end : "
<< str << endl;
}
private:
string str;
static int depth;
};
#endif