diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-09-24 18:52:59 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-09-24 18:52:59 +0100 |
| commit | e486e70da8c3c65294e27c18ad9cb0e4a5fe8aaf (patch) | |
| tree | 0a22ad97565c01ec40930305ada8316e87f7f2ff /src | |
| parent | fa8cc0e6e6e75255ab0875b6a8f120f3100f6a4f (diff) | |
Provide node pointer accessor.
Diffstat (limited to 'src')
| -rw-r--r-- | src/cxml.cc | 2 | ||||
| -rw-r--r-- | src/cxml.h | 8 |
2 files changed, 7 insertions, 3 deletions
diff --git a/src/cxml.cc b/src/cxml.cc index 95b963b..2ca46ed 100644 --- a/src/cxml.cc +++ b/src/cxml.cc @@ -15,7 +15,7 @@ cxml::Node::Node () } -cxml::Node::Node (xmlpp::Node const * node) +cxml::Node::Node (xmlpp::Node* node) : _node (node) { @@ -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; |
