]> git.tdb.fi Git - gldbg.git/blob - source/tracer.h
Replace per-file license notices with License.txt
[gldbg.git] / source / tracer.h
1 #ifndef TRACER_H_
2 #define TRACER_H_
3
4 #include <cstdio>
5 #include "tool.h"
6
7 struct GlPrint;
8
9 class Tracer: public RegisteredTool<Tracer>
10 {
11 private:
12         GlPrint *glprint;
13         FILE *out;
14         bool close_out;
15         bool enabled;
16
17 public:
18         Tracer(GlDbg &);
19         ~Tracer();
20
21         virtual void decode(const char *, unsigned);
22 private:
23         void set_output(FILE *, bool);
24         void cmd_trace(const std::string &);
25 };
26
27 #endif