#undef check
#endif
-#include <glibmm.h>
-
namespace xmlpp {
class Node;
class DomParser;
{
public:
Node ();
-
+
/** Construct a Node from an xmlpp::Node. This class will
* not destroy the xmlpp::Node.
* @param node xmlpp::Node.
u >> n;
return n;
}
-
+
/** This will mark a child as to be ignored when calling done() */
void ignore_child (std::string) const;
xmlpp::Node* node () const {
return _node;
}
-
+
protected:
xmlpp::Node* _node;
-
+
private:
- mutable std::list<Glib::ustring> _taken;
+ mutable std::list<std::string> _taken;
};
typedef boost::shared_ptr<cxml::Node> NodePtr;
void read_file (boost::filesystem::path);
void read_stream (std::istream &);
void read_string (std::string);
-
+
std::string root_name () const {
return _root_name;
}
-
+
private:
void take_root_node ();
-
+
xmlpp::DomParser* _parser;
std::string _root_name;
};