39 #ifndef _xmlwrapp_attributes_h_ 40 #define _xmlwrapp_attributes_h_ 44 #include "xmlwrapp/export.h" 121 const char *get_name()
const;
128 const char* get_value()
const;
134 mutable std::string value_;
139 void swap(
attr& other);
141 void set_data(
void *
node,
void *prop);
142 void set_data(
const char *name,
const char *value,
bool);
144 friend class impl::ait_impl;
154 typedef std::ptrdiff_t difference_type;
157 typedef std::forward_iterator_tag iterator_category;
164 reference operator*()
const;
165 pointer operator->()
const;
173 friend bool XMLWRAPP_API operator==(
const iterator& lhs,
const iterator& rhs);
174 friend bool XMLWRAPP_API operator!=(
const iterator& lhs,
const iterator& rhs);
177 impl::ait_impl *pimpl_;
180 iterator(
const char *name,
const char *value,
bool);
182 void* get_raw_attr();
195 typedef std::ptrdiff_t difference_type;
198 typedef std::forward_iterator_tag iterator_category;
206 reference operator*()
const;
207 pointer operator->()
const;
219 impl::ait_impl *pimpl_;
224 void* get_raw_attr();
270 void insert(
const char *name,
const char *value);
317 void erase(
const char *name);
333 size_type size()
const;
336 struct pimpl; pimpl *pimpl_;
341 void set_data (
void *
node);
343 friend struct impl::node_impl;
349 #endif // _xmlwrapp_attributes_h_ The xml::attributes::attr class is used to hold information about one attribute.
Definition: attributes.h:113
This file contains the definition of the xml::init class.
Iterator class for accessing attribute pairs.
Definition: attributes.h:150
XML library namespace.
Definition: attributes.h:51
std::size_t size_type
size type
Definition: attributes.h:75
The xml::node class is used to hold information about one XML node.
Definition: node.h:88
Const Iterator class for accessing attribute pairs.
Definition: attributes.h:191
The xml::attributes class is used to access all the attributes of one xml::node.
Definition: attributes.h:71