diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-10-09 11:42:40 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-10-09 11:42:40 +0100 |
| commit | 01edbdf34b0ad804106e184bd98b7d20c8f23cf1 (patch) | |
| tree | 1f2e9fd428d8598d17a5eddc694ea690c6307cc4 /src/cxml.h | |
| parent | f8afc1d0b26cbdedb80ada5c84df313870986a4d (diff) | |
Add NodeList type.
Diffstat (limited to 'src/cxml.h')
| -rw-r--r-- | src/cxml.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -66,6 +66,9 @@ private: std::string _message; }; +class Node; +typedef std::list<boost::shared_ptr<Node> > NodeList; + /** @brief A wrapper for a xmlpp::Node which simplifies parsing */ class Node { @@ -200,7 +203,7 @@ public: boost::shared_ptr<Node> node_child (std::string) const; boost::shared_ptr<Node> optional_node_child (std::string) const; - std::list<boost::shared_ptr<Node> > node_children (std::string) const; + NodeList node_children (std::string) const; xmlpp::Node* node () const { return _node; |
