]> git.lyx.org Git - lyx.git/blob - src/tracer.h
Just some changes to be able to change TabularFeatures with the Table menu
[lyx.git] / src / tracer.h
1 // -*- C++ -*-
2 #ifndef TRACER_H
3 #define TRACER_H
4
5 #include "debug.h"
6 #include "LString.h"
7
8 class DebugTracer {
9 public:
10         explicit
11         DebugTracer(string const & s) : str(s) {
12                 lyxerr << string(depth, ' ') << "Trace begin : "
13                        << str << std::endl;
14                 ++depth;
15                 
16         }
17         ~DebugTracer() {
18                 --depth;
19                 lyxerr << string(depth, ' ') << "Trace end : "
20                        << str << std::endl;
21         }
22 private:
23         string str;
24         static int depth;
25 };
26
27 #endif