summaryrefslogtreecommitdiff
path: root/src/cxml.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-09-24 18:52:59 +0100
committerCarl Hetherington <cth@carlh.net>2013-09-24 18:52:59 +0100
commite486e70da8c3c65294e27c18ad9cb0e4a5fe8aaf (patch)
tree0a22ad97565c01ec40930305ada8316e87f7f2ff /src/cxml.h
parentfa8cc0e6e6e75255ab0875b6a8f120f3100f6a4f (diff)
Provide node pointer accessor.
Diffstat (limited to 'src/cxml.h')
-rw-r--r--src/cxml.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/cxml.h b/src/cxml.h
index 5bccfb0..2c4ff24 100644
--- a/src/cxml.h
+++ b/src/cxml.h
@@ -52,7 +52,7 @@ public:
* not destroy the xmlpp::Node.
* @param node xmlpp::Node.
*/
- Node (xmlpp::Node const * node);
+ Node (xmlpp::Node* node);
std::string name () const;
@@ -157,9 +157,13 @@ public:
boost::shared_ptr<Node> optional_node_child (std::string) const;
std::list<boost::shared_ptr<Node> > node_children (std::string) const;
+
+ xmlpp::Node* node () const {
+ return _node;
+ }
protected:
- xmlpp::Node const * _node;
+ xmlpp::Node* _node;
private:
mutable std::list<Glib::ustring> _taken;