diff options
author | Tim Moore <timoore@redhat.com> | 2009-10-21 17:05:59 +0200 |
---|---|---|
committer | Tim Moore <timoore@redhat.com> | 2009-10-27 13:00:59 +0100 |
commit | 4bf8ba6e4fc0a950301e5debedababa834ea0d10 (patch) | |
tree | de83f883f05be61698ca57fa94a2af05b3751e17 /grapher/StapParser.hxx | |
parent | 6fb95a63ecfa32b1524790ee42695f19773f2174 (diff) | |
download | systemtap-steved-4bf8ba6e4fc0a950301e5debedababa834ea0d10.tar.gz systemtap-steved-4bf8ba6e4fc0a950301e5debedababa834ea0d10.tar.xz systemtap-steved-4bf8ba6e4fc0a950301e5debedababa834ea0d10.zip |
More refactoring for multiple stap processes.
* grapher/StapParser.hxx (StapParser): Change _win and _widget from
references to pointers.
* grapher/StapParser.cxx (ioCallback): Ditto.
* grapher/grapher.cxx (StapLauncher, GraphicalStapLauncher): Rewrite
to make GraphicalStapLauncher a derived class of StapLauncher.
(main): Accept graphing data from stdin with a "-" argument.
Diffstat (limited to 'grapher/StapParser.hxx')
-rw-r--r-- | grapher/StapParser.hxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/grapher/StapParser.hxx b/grapher/StapParser.hxx index eeebed63..40add9fd 100644 --- a/grapher/StapParser.hxx +++ b/grapher/StapParser.hxx @@ -10,13 +10,13 @@ class StapParser typedef std::map<std::string, std::tr1::shared_ptr<GraphDataBase> > DataMap; DataMap _dataSets; CSVData _csv; - Gtk::Window& _win; - GraphWidget& _widget; + Gtk::Window* _win; + GraphWidget* _widget; int _errFd; int _inFd; public: - StapParser(Gtk::Window& win, - GraphWidget& widget) : _win(win), _widget(widget), _errFd(-1), + StapParser(Gtk::Window* win, + GraphWidget* widget) : _win(win), _widget(widget), _errFd(-1), _inFd(-1) { } |