summaryrefslogtreecommitdiff
path: root/src/cxml.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-08-29 16:40:35 +0100
committerCarl Hetherington <cth@carlh.net>2013-08-29 16:40:35 +0100
commitcd608545a795e2e939e2c7c485b0aeae9b6576a3 (patch)
tree1e8450d4c9d8713a29c8b2575982c83e32fa4d45 /src/cxml.h
parent5c4e872c3a155c4af75d8ff963c16da28037ffe8 (diff)
File -> Document and allow use of streams.
Diffstat (limited to 'src/cxml.h')
-rw-r--r--src/cxml.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/cxml.h b/src/cxml.h
index 9581adc..7d6e1e0 100644
--- a/src/cxml.h
+++ b/src/cxml.h
@@ -158,14 +158,21 @@ private:
mutable std::list<Glib::ustring> _taken;
};
-class File : public Node
+class Document : public Node
{
public:
- File (std::string file, std::string root_name);
- virtual ~File ();
+ Document (std::string root_name);
+
+ void read_file (boost::filesystem::path);
+ void read_stream (std::istream &);
+
+ virtual ~Document ();
private:
+ void take_root_node ();
+
xmlpp::DomParser* _parser;
+ std::string _root_name;
};
}