#include <attributes.h>
Public Types | |
typedef std::size_t | size_type |
size type | |
Public Member Functions | |
attributes (void) | |
Create a new xml::attributes object with no attributes. | |
attributes (const attributes &other) | |
Copy construct a xml::attributes object. | |
attributes & | operator= (const attributes &other) |
Copy the given xml::attributes object into this one. | |
void | swap (attributes &other) |
Swap this xml::attributes object with another one. | |
~attributes (void) | |
Clean up after a xml::attributes object. | |
iterator | begin (void) |
Get an iterator that points to the first attribute. | |
const_iterator | begin (void) const |
Get a const_iterator that points to the first attribute. | |
iterator | end (void) |
Get an iterator that points one past the the last attribute. | |
const_iterator | end (void) const |
Get a const_iterator that points one past the last attribute. | |
void | insert (const char *name, const char *value) |
Add an attribute to the attributes list. | |
iterator | find (const char *name) |
Find the attribute with the given name. | |
const_iterator | find (const char *name) const |
Find the attribute with the given name. | |
iterator | erase (iterator to_erase) |
Erase the attribute that is pointed to by the given iterator. | |
void | erase (const char *name) |
Erase the attribute with the given name. | |
bool | empty (void) const |
Find out if there are any attributes in this xml::attributes object. | |
size_type | size (void) const |
Find out how many attributes there are in this xml::attributes object. |
You can add, find and erase attributes by name, and for some member functions, use the provided iterator classes.
The iterator classes allow you to access one XML attribute. This is done using the xml::attributes::attr class interface.
|
size type
|
|
Create a new xml::attributes object with no attributes.
|
|
Copy construct a xml::attributes object.
|
|
Clean up after a xml::attributes object.
|
|
Get a const_iterator that points to the first attribute.
|
|
Get an iterator that points to the first attribute.
|
|
Find out if there are any attributes in this xml::attributes object.
|
|
Get a const_iterator that points one past the last attribute.
|
|
Get an iterator that points one past the the last attribute.
|
|
Erase the attribute with the given name. This will invalidate any iterators that are pointing to that attribute, as well as any pointers or references to that attribute.
|
|
Erase the attribute that is pointed to by the given iterator. This will invalidate any iterators for this attribute, as well as any pointers or references to it.
|
|
Find the attribute with the given name. If the attribute is not found on the current node, the DTD will be searched for a default value. This is, of course, if there was a DTD parsed with the XML document.
|
|
Find the attribute with the given name. If the attribute is not found on the current node, the DTD will be searched for a default value. This is, of course, if there was a DTD parsed with the XML document.
|
|
Add an attribute to the attributes list. If there is another attribute with the same name, it will be replaced with this one.
|
|
Copy the given xml::attributes object into this one.
|
|
Find out how many attributes there are in this xml::attributes object.
|
|
Swap this xml::attributes object with another one.
|