/* $Id$
This file is part of gldbg
-Copyright © 2009 Mikko Rasa, Mikkosoft Productions
+Copyright © 2009-2010 Mikko Rasa, Mikkosoft Productions
Distributed under the GPL
*/
#define TRACER_H_
#include <msp/io/base.h>
+#include "tool.h"
struct GlPrint;
-class Tracer
+class Tracer: public RegisteredTool<Tracer>
{
private:
GlPrint *glprint;
bool enabled;
public:
- Tracer();
+ Tracer(GlDbg &);
~Tracer();
- void set_output(Msp::IO::Base *);
- void set_output(Msp::IO::Base &);
- void enable();
- void disable();
- int decode(const char *, unsigned);
+ virtual void decode(const char *, unsigned);
+private:
+ void set_output(Msp::IO::Base *, bool);
+ void cmd_trace(const std::string &);
};
#endif