summaryrefslogtreecommitdiff
path: root/src/cxml.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-10-09 11:42:40 +0100
committerCarl Hetherington <cth@carlh.net>2014-10-09 11:42:40 +0100
commit01edbdf34b0ad804106e184bd98b7d20c8f23cf1 (patch)
tree1f2e9fd428d8598d17a5eddc694ea690c6307cc4 /src/cxml.h
parentf8afc1d0b26cbdedb80ada5c84df313870986a4d (diff)
Add NodeList type.
Diffstat (limited to 'src/cxml.h')
-rw-r--r--src/cxml.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/cxml.h b/src/cxml.h
index 75af36b..8be978f 100644
--- a/src/cxml.h
+++ b/src/cxml.h
@@ -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;