From cd608545a795e2e939e2c7c485b0aeae9b6576a3 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 29 Aug 2013 16:40:35 +0100 Subject: File -> Document and allow use of streams. --- src/cxml.h | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'src/cxml.h') 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 _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; }; } -- cgit v1.2.3