From 3c434960a680c459d526bee483a2bc79ce767473 Mon Sep 17 00:00:00 2001 From: Tim Moore Date: Wed, 29 Apr 2009 19:52:50 +0200 Subject: Refactor StapParser into its own files * grapher/StapParser.cxx: new file * grapher/StapParser.hxx: new file * grapher/grapher.cxx: Use external StapParser class. --- grapher/StapParser.hxx | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 grapher/StapParser.hxx (limited to 'grapher/StapParser.hxx') diff --git a/grapher/StapParser.hxx b/grapher/StapParser.hxx new file mode 100644 index 00000000..a94b0a9b --- /dev/null +++ b/grapher/StapParser.hxx @@ -0,0 +1,21 @@ +#include "GraphData.hxx" +#include "GraphWidget.hxx" + +#include +namespace systemtap +{ +class StapParser +{ + std::string _buffer; + typedef std::map > DataMap; + DataMap _dataSets; + Gtk::Window& _win; + GraphWidget& _widget; +public: + StapParser(Gtk::Window& win, + GraphWidget& widget) : _win(win), _widget(widget) {} + + bool ioCallback(Glib::IOCondition ioCondition); + +}; +} -- cgit