contrib: Foreach contrib file is not really needed any more; left for compatibility, + removed node/attribute adapters since we now have object range support in pugixml.hpp
git-svn-id: http://pugixml.googlecode.com/svn/trunk@891 99668b35-9821-0410-8761-19e4c4f06640
This commit is contained in:
parent
951ff9d1a6
commit
eefd32c2e7
@ -50,52 +50,14 @@ namespace boost
|
||||
|
||||
namespace pugi
|
||||
{
|
||||
struct xml_node_children_adapter
|
||||
inline xml_object_range<xml_node_iterator> children(const pugi::xml_node& node)
|
||||
{
|
||||
typedef pugi::xml_node::iterator iterator;
|
||||
typedef pugi::xml_node::iterator const_iterator;
|
||||
|
||||
xml_node node;
|
||||
|
||||
const_iterator begin() const
|
||||
{
|
||||
return node.begin();
|
||||
}
|
||||
|
||||
const_iterator end() const
|
||||
{
|
||||
return node.end();
|
||||
}
|
||||
};
|
||||
|
||||
inline xml_node_children_adapter children(const pugi::xml_node& node)
|
||||
{
|
||||
xml_node_children_adapter result = {node};
|
||||
return result;
|
||||
return node.children();
|
||||
}
|
||||
|
||||
struct xml_node_attribute_adapter
|
||||
inline xml_object_range<xml_attribute_iterator> attributes(const pugi::xml_node& node)
|
||||
{
|
||||
typedef pugi::xml_node::attribute_iterator iterator;
|
||||
typedef pugi::xml_node::attribute_iterator const_iterator;
|
||||
|
||||
xml_node node;
|
||||
|
||||
const_iterator begin() const
|
||||
{
|
||||
return node.attributes_begin();
|
||||
}
|
||||
|
||||
const_iterator end() const
|
||||
{
|
||||
return node.attributes_end();
|
||||
}
|
||||
};
|
||||
|
||||
inline xml_node_attribute_adapter attributes(const pugi::xml_node& node)
|
||||
{
|
||||
xml_node_attribute_adapter result = {node};
|
||||
return result;
|
||||
return node.attributes();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user