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/cxml.h | |
| parent | fa8cc0e6e6e75255ab0875b6a8f120f3100f6a4f (diff) | |
Provide node pointer accessor.
Diffstat (limited to 'src/cxml.h')
| -rw-r--r-- | src/cxml.h | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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; |
