diff options
author | Tim Moore <timoore@redhat.com> | 2009-05-20 13:29:54 +0200 |
---|---|---|
committer | Tim Moore <timoore@redhat.com> | 2009-07-28 10:14:53 +0200 |
commit | 0f262fd10d337db0ec435d840b541d629879ce9f (patch) | |
tree | 6f56660cf0d766958aae66d03cfb59d2c8e083ff /grapher/GraphData.hxx | |
parent | 3c434960a680c459d526bee483a2bc79ce767473 (diff) | |
download | systemtap-steved-0f262fd10d337db0ec435d840b541d629879ce9f.tar.gz systemtap-steved-0f262fd10d337db0ec435d840b541d629879ce9f.tar.xz systemtap-steved-0f262fd10d337db0ec435d840b541d629879ce9f.zip |
Add CSV syntax support to the grapher
* grapher/GraphData.hxx (CSVData): new class
* grapher/GraphData.cxx (commaSplit): new function
(ioCallback): handle CSV definition and data
Diffstat (limited to 'grapher/GraphData.hxx')
-rw-r--r-- | grapher/GraphData.hxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/grapher/GraphData.hxx b/grapher/GraphData.hxx index 0f3b0b31..2c0783c6 100644 --- a/grapher/GraphData.hxx +++ b/grapher/GraphData.hxx @@ -3,6 +3,7 @@ #include <utility> #include <vector> +#include <tr1/memory> namespace systemtap { @@ -40,5 +41,11 @@ namespace systemtap } }; }; + + struct CSVData + { + typedef std::pair<std::string, std::tr1::shared_ptr<GraphData> > Element; + std::vector<Element> elements; + }; } #endif |