summaryrefslogtreecommitdiffstats
path: root/grapher/StapParser.hxx
diff options
context:
space:
mode:
authorTim Moore <timoore@redhat.com>2009-04-29 19:52:50 +0200
committerTim Moore <timoore@redhat.com>2009-07-28 10:14:37 +0200
commit3c434960a680c459d526bee483a2bc79ce767473 (patch)
tree08c1d6fdf326f1c9ed68a7244dd8806c64d6caef /grapher/StapParser.hxx
parentd982d13c99f7c4119a9ceea1749a54cca7e53d38 (diff)
downloadsystemtap-steved-3c434960a680c459d526bee483a2bc79ce767473.tar.gz
systemtap-steved-3c434960a680c459d526bee483a2bc79ce767473.tar.xz
systemtap-steved-3c434960a680c459d526bee483a2bc79ce767473.zip
Refactor StapParser into its own files
* grapher/StapParser.cxx: new file * grapher/StapParser.hxx: new file * grapher/grapher.cxx: Use external StapParser class.
Diffstat (limited to 'grapher/StapParser.hxx')
-rw-r--r--grapher/StapParser.hxx21
1 files changed, 21 insertions, 0 deletions
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 <string>
+namespace systemtap
+{
+class StapParser
+{
+ std::string _buffer;
+ typedef std::map<std::string, std::tr1::shared_ptr<GraphData> > DataMap;
+ DataMap _dataSets;
+ Gtk::Window& _win;
+ GraphWidget& _widget;
+public:
+ StapParser(Gtk::Window& win,
+ GraphWidget& widget) : _win(win), _widget(widget) {}
+
+ bool ioCallback(Glib::IOCondition ioCondition);
+
+};
+}