#include <node.h>
Public Member Functions | |
const std::string & | operator= (const std::string &value) |
Set attribute referred to by this reference. | |
template<typename T> const std::string & | operator= (const T &t) |
Set attribute referred to by this reference, after converting the parameter object to a std::string. | |
std::string | str () const |
Retrieve value of attribute referred to by this reference. | |
operator std::string () const | |
Retrieve value of attribute referred to by this reference. | |
template<typename T> T & | conv (T &t) const |
Explicit conversion to any type that can be converted by Dv::Util::fromstring. | |
template<typename T> | operator T () const |
Template user-defined conversion function. | |
Private Member Functions | |
AttributeReference (const xml::node::iterator n, const std::string &name) | |
Constructor. | |
Private Attributes | |
const std::string | name |
xml::node::iterator | node |
Friends | |
class | Ref |
std::ostream & | operator<< (std::ostream &os, const AttributeReference &a) |
Dv::Xml::Node::Ref::operator[](const std::string) returns an AttributeReference object.
Definition at line 97 of file node.h.
|
Constructor.
|
|
Set attribute referred to by this reference.
Referenced by operator=(). |
|
Set attribute referred to by this reference, after converting the parameter object to a std::string. The conversion is done using Dv::Util::tostring<T>.
Definition at line 113 of file node.h. References operator=(). |
|
Retrieve value of attribute referred to by this reference.
Referenced by operator std::string(). |
|
Retrieve value of attribute referred to by this reference.
Definition at line 129 of file node.h. References operator std::string(), and str(). Referenced by operator std::string(). |
|
Explicit conversion to any type that can be converted by Dv::Util::fromstring.
Definition at line 137 of file node.h. References Dv::Util::fromstring(). |
|
Template user-defined conversion function.
|
|
|
|
|
|
|
|
|
dvxml-0.1.4 | [19 September, 2003] |