summaryrefslogtreecommitdiff
path: root/src/cxml.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/cxml.h')
-rw-r--r--src/cxml.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/cxml.h b/src/cxml.h
index 8a7a82c..7e20b3a 100644
--- a/src/cxml.h
+++ b/src/cxml.h
@@ -7,6 +7,7 @@
#include <boost/shared_ptr.hpp>
#include <boost/optional.hpp>
#include <boost/lexical_cast.hpp>
+#include <boost/filesystem.hpp>
#include <boost/algorithm/string/erase.hpp>
#include <glibmm.h>
@@ -161,14 +162,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;
};
}