45 #ifndef _xmlwrapp_attributes_h_
46 #define _xmlwrapp_attributes_h_
311 iterator (
void *
node,
void *prop,
bool def_prop,
bool from_find);
525 bool empty (
void)
const;
The xml::attributes::attr class is used to hold information about one attribute.
void erase_namespace(void)
Unset the attribute's namespace.
const char * get_value(void) const
Get the value of this attribute.
void * normalize(void) const
ns set_namespace(const char *prefix)
Set the attribute's namespace.
void * get_node(void) const
bool operator==(const attr &other) const
void set_data(void *node, void *prop, bool def_prop)
attr & operator=(const attr &other)
bool is_default(void) const
Test if the attribute is default.
void * resolve_default_attr_ns(void) const
ns get_namespace(ns::ns_safety_type type=ns::type_safe_ns) const
Get the attribute's namespace.
void set_value(const char *value)
Set the value of this attribute.
const char * get_name(void) const
Get the name of this attribute.
Const Iterator class for accessing attribute pairs.
const_iterator & operator=(const const_iterator &other)
pointer operator->(void) const
friend bool operator!=(const const_iterator &lhs, const const_iterator &rhs)
friend bool operator==(const const_iterator &lhs, const const_iterator &rhs)
std::ptrdiff_t difference_type
std::forward_iterator_tag iterator_category
void swap(const_iterator &other)
reference operator*(void) const
const_iterator & operator++(void)
prefix increment
Iterator class for accessing attribute pairs.
pointer operator->(void) const
friend bool operator==(const iterator &lhs, const iterator &rhs)
std::forward_iterator_tag iterator_category
iterator & operator=(const iterator &other)
void swap(iterator &other)
reference operator*(void) const
friend bool operator!=(const iterator &lhs, const iterator &rhs)
iterator & operator++(void)
prefix increment
std::ptrdiff_t difference_type
The xml::attributes class is used to access all the attributes of one xml::node.
std::size_t size_type
size type
size_type size(void) const
Find out how many attributes there are in this xml::attributes object.
iterator erase(iterator to_erase)
Erase the attribute that is pointed to by the given iterator.
void swap(attributes &other)
Swap this xml::attributes object with another one.
attributes(void)
Create a new xml::attributes object with no attributes.
iterator find(const char *name, const ns *nspace=NULL)
Find the attribute with the given name and namespace.
iterator begin(void)
Get an iterator that points to the first attribute.
static xml::ns createUnsafeNamespace(void *libxml2RawNamespace)
static void * getUnsafeNamespacePointer(const xml::ns &name_space)
void sort(void)
Sorts the attributes in place.
attributes & operator=(const attributes &other)
Copy the given xml::attributes object into this one.
iterator end(void)
Get an iterator that points one past the the last attribute.
void set_data(void *node)
bool empty(void) const
Find out if there are any attributes in this xml::attributes object.
virtual ~attributes(void)
Clean up after a xml::attributes object.
void insert(const char *name, const char *value, const ns *nspace=NULL)
Add an attribute to the attributes list.
the class that does all the work behind xml::attributes::iterator and xml::attributes::const_iterator...
The xml::node class is used to hold information about one XML node.
The xml::ns class is used to access and handle namespaces of nodes and attributes.
ns_safety_type
Namespace object "safety".
XML namespace API for XmlWrapp.
const GenericPointer< typename T::ValueType > T2 value
void * get_ptr_to_attr_instance(void *)
bool operator==(const ait_impl &lhs, const ait_impl &rhs)
This file contains the definition of the xml::init class.