]> git.tdb.fi Git - gldbg.git/blobdiff - source/tracer.h
Convert svn:ignore to .gitignore
[gldbg.git] / source / tracer.h
index 51adb39a09f292f7ef4515559551961fd8afb2c7..38ebc01bef69e842dacd39c0c90db4f115f72731 100644 (file)
@@ -1,34 +1,34 @@
 /* $Id$
 
 This file is part of gldbg
-Copyright © 2009  Mikko Rasa, Mikkosoft Productions
+Copyright © 2009-2011  Mikko Rasa, Mikkosoft Productions
 Distributed under the GPL
 */
 
 #ifndef TRACER_H_
 #define TRACER_H_
 
-#include <msp/io/base.h>
+#include <cstdio>
+#include "tool.h"
 
 struct GlPrint;
 
-class Tracer
+class Tracer: public RegisteredTool<Tracer>
 {
 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