|
#include <CXmlAttributes.h>

Public Member Functions | |
| virtual const std::string & | value () const |
| Returns the value of the node. | |
| virtual void | value (const std::string &new_value) |
| Sets new value to node. | |
| virtual void | value (const char *new_value) |
| Sets new value to node. | |
Protected Member Functions | |
| CXmlAttribute (CXmlElement *parent, const std::string &name, CXmlValue value) | |
| Protected constructor (internal). | |
| CXmlAttribute (CXmlElement *parent, const char *name, CXmlValue value) | |
| Protected constructor (internal). | |
Protected Attributes | |
| std::string | m_value |
| Attribute value. | |
Friends | |
| class | CXmlAttributes |
| sptk::CXmlAttribute::CXmlAttribute | ( | CXmlElement * | parent, | |
| const std::string & | name, | |||
| CXmlValue | value | |||
| ) | [protected] |
Protected constructor (internal).
Creates a new attribute. Doesn't verify if the attribute name already exists in parent element
| parent | CXmlElement*, parent element (can't be NULL) | |
| name | const std::string&, attribute name | |
| value | CXmlValue, attribute value |
| sptk::CXmlAttribute::CXmlAttribute | ( | CXmlElement * | parent, | |
| const char * | name, | |||
| CXmlValue | value | |||
| ) | [protected] |
Protected constructor (internal).
Creates a new attribute. Doesn't verify if the attribute name already exists in parent element
| parent | CXmlElement*, parent element (can't be NULL) | |
| name | const char*, attribute name | |
| value | CXmlValue, attribute value |
| virtual void sptk::CXmlAttribute::value | ( | const char * | new_value | ) | [inline, virtual] |
Sets new value to node.
| new_value | const char *, value to set |
Reimplemented from sptk::CXmlNode.
References m_value.
| virtual void sptk::CXmlAttribute::value | ( | const std::string & | new_value | ) | [inline, virtual] |
Sets new value to node.
| new_value | const std::string &, new value |
Reimplemented from sptk::CXmlNode.
References m_value.