|
attributes Class Reference
[XML helpers]
#include <attributes.hpp>
List of all members.
Detailed Description
A simple class to contain attributes of a tag.
This class can read and write attributes for an XML tag. This class contain :
- a map ((uri,name),value)
- a map (uri, short_cut)
the short_cut for the default uri is an empty string.
Definition at line 134 of file attributes.hpp.
Member Typedef Documentation
Constructor & Destructor Documentation
attributes::attributes |
( |
|
) |
|
|
Member Function Documentation
void attributes::clear |
( |
|
) |
|
|
|
Insert an attribute.
If the attribute does not exist, it set the value - Parameters:
-
namespace_name |
Can be the uri or a short cut |
name |
The name of the attribute |
value |
To be completed: Should be a variant. |
Definition at line 214 of file attributes.cpp.
References _(), const_ns_iterator, find_namespace(), is_ncname(), ns_end(), qname(), XIMOL_AS_ERROR, XIMOL_THROW, and xstring.
Referenced by operator+=(), read(), and set(). |
|
GetFrom operator.
Definition at line 288 of file attributes.cpp.
References clear(), const_ns_iterator, xistream::context, find_namespace(), xistream::get(), insert(), insert_namespace(), is_first_char_ncname(), iterator, ns_end(), xistream::putback(), read_attribute(), read_optionnal_space(), xchar_t, XIMOL_PARSER_USING_NAMESPACE, and xstring.
Referenced by operator>>(). |
|
Set an attribute.
- Parameters:
-
namespace_name |
Can be the uri or a short cut |
name |
The name of the attribute |
value |
To be completed: Should be a variant. |
Definition at line 229 of file attributes.cpp.
References insert(), and xstring. |
void attributes::set_namespace |
( |
xstring const & |
uri |
) |
[inline] |
|
size_t attributes::size |
( |
|
) |
const [inline] |
|
void attributes::swap |
( |
attributes & |
rhs |
) |
throw () |
|
|
Exchange the contents of this object and the right-hand-side one.
This is also a root of exception safety.
Definition at line 140 of file attributes.cpp. |
|
PutTo operator.
Definition at line 249 of file attributes.cpp.
References begin(), const_iterator, const_ns_iterator, xostream::context, end(), find_short_namespace(), ns_begin(), ns_end(), write_att_value(), write_attribute(), write_eq(), write_ns_att_name(), write_space(), XIMOL_PARSER_USING_NAMESPACE, and xstring.
Referenced by operator<<(). |
The documentation for this class was generated from the following files:
|
|