X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftracer.h;h=7e674721d995e5850d57f7f45f88737b7d36b7a3;hb=a832996c884a0e0acc9a38ba4dd258edb75ec7af;hp=51adb39a09f292f7ef4515559551961fd8afb2c7;hpb=c6b2f7585d51164dc32f4dd2a05855913e464c58;p=gldbg.git diff --git a/source/tracer.h b/source/tracer.h index 51adb39..7e67472 100644 --- a/source/tracer.h +++ b/source/tracer.h @@ -1,34 +1,27 @@ -/* $Id$ - -This file is part of gldbg -Copyright © 2009 Mikko Rasa, Mikkosoft Productions -Distributed under the GPL -*/ - #ifndef TRACER_H_ #define TRACER_H_ -#include +#include +#include "tool.h" struct GlPrint; -class Tracer +class Tracer: public RegisteredTool { private: GlPrint *glprint; - Msp::IO::Base *out; - bool delete_out; + FILE *out; + bool close_out; 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(FILE *, bool); + void cmd_trace(const std::string &); }; #endif