X-Git-Url: http://git.tdb.fi/?p=gldbg.git;a=blobdiff_plain;f=source%2Ftracer.h;h=651bfc1ecf1df7006d7f88170cd7a24bb129c993;hp=51adb39a09f292f7ef4515559551961fd8afb2c7;hb=7bd7fc784a6f6cff69f79914a445bc2115a7e768;hpb=de6ac03ffc36843bbbb0d496007b3046a4422ee1 diff --git a/source/tracer.h b/source/tracer.h index 51adb39..651bfc1 100644 --- a/source/tracer.h +++ b/source/tracer.h @@ -1,7 +1,7 @@ /* $Id$ This file is part of gldbg -Copyright © 2009 Mikko Rasa, Mikkosoft Productions +Copyright © 2009-2010 Mikko Rasa, Mikkosoft Productions Distributed under the GPL */ @@ -9,10 +9,11 @@ Distributed under the GPL #define TRACER_H_ #include +#include "tool.h" struct GlPrint; -class Tracer +class Tracer: public RegisteredTool { private: GlPrint *glprint; @@ -21,14 +22,13 @@ private: 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