projects
/
libcxml.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add the ability to find the root node name of some XML.
[libcxml.git]
/
src
/
cxml.h
diff --git
a/src/cxml.h
b/src/cxml.h
index 0f57b924aa118df7b47f64c7877801db483cf8af..a8da82a42b8791a41e1eb1890f3e442b6b9314ad 100644
(file)
--- a/
src/cxml.h
+++ b/
src/cxml.h
@@
-213,14
+213,19
@@
typedef boost::shared_ptr<const cxml::Node> ConstNodePtr;
class Document : public Node
{
public:
class Document : public Node
{
public:
+ Document ();
Document (std::string root_name);
Document (std::string root_name, boost::filesystem::path);
Document (std::string root_name);
Document (std::string root_name, boost::filesystem::path);
+ virtual ~Document ();
+
void read_file (boost::filesystem::path);
void read_stream (std::istream &);
void read_file (boost::filesystem::path);
void read_stream (std::istream &);
- virtual ~Document ();
-
+ std::string root_name () const {
+ return _root_name;
+ }
+
private:
void take_root_node ();
private:
void take_root_node ();