]> git.tdb.fi Git - gldbg.git/blob - source/tracer.h
651bfc1ecf1df7006d7f88170cd7a24bb129c993
[gldbg.git] / source / tracer.h
1 /* $Id$
2
3 This file is part of gldbg
4 Copyright © 2009-2010  Mikko Rasa, Mikkosoft Productions
5 Distributed under the GPL
6 */
7
8 #ifndef TRACER_H_
9 #define TRACER_H_
10
11 #include <msp/io/base.h>
12 #include "tool.h"
13
14 struct GlPrint;
15
16 class Tracer: public RegisteredTool<Tracer>
17 {
18 private:
19         GlPrint *glprint;
20         Msp::IO::Base *out;
21         bool delete_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(Msp::IO::Base *, bool);
31         void cmd_trace(const std::string &);
32 };
33
34 #endif