Add NodeList type.
authorCarl Hetherington <cth@carlh.net>
Thu, 9 Oct 2014 10:42:40 +0000 (11:42 +0100)
committerCarl Hetherington <cth@carlh.net>
Thu, 9 Oct 2014 10:42:40 +0000 (11:42 +0100)
src/cxml.h

index 75af36b401a719e34a5fd4c3c80cb77b4902c15e..8be978f431e05314c0a4c3277c6a0a3300eeb725 100644 (file)
@@ -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;