]> git.tdb.fi Git - gldbg.git/blob - source/tracer.h
38ebc01bef69e842dacd39c0c90db4f115f72731
[gldbg.git] / source / tracer.h
1 /* $Id$
2
3 This file is part of gldbg
4 Copyright © 2009-2011  Mikko Rasa, Mikkosoft Productions
5 Distributed under the GPL
6 */
7
8 #ifndef TRACER_H_
9 #define TRACER_H_
10
11 #include <cstdio>
12 #include "tool.h"
13
14 struct GlPrint;
15
16 class Tracer: public RegisteredTool<Tracer>
17 {
18 private:
19         GlPrint *glprint;
20         FILE *out;
21         bool close_out;
22         bool enabled;
23
24 public:
25         Tracer(GlDbg &);
26         ~Tracer();
27
28         virtual void decode(const char *, unsigned);
29 private:
30         void set_output(FILE *, bool);
31         void cmd_trace(const std::string &);
32 };
33
34 #endif