XML Tag. More...
#include <rxmlattr.h>
Collaboration diagram for RXMLAttr:
Public Member Functions | |
RXMLAttr (const RXMLAttr &attr) | |
RXMLAttr (const RString &name, const RString &value, RURI *xmlns=0) | |
RXMLAttr (const RString &name, const double value, RURI *xmlns=0) | |
RURI * | GetNamespace (void) const |
int | Compare (const RString &name) const |
int | Compare (const RXMLAttr &attr) const |
RString | GetFullName (void) const |
RString | GetName (void) const |
RString | GetValue (void) const |
void | SetValue (const RString &value) |
void | AddValue (const RString &value) |
virtual | ~RXMLAttr (void) |
Private Attributes | |
RString | Name |
RString | Value |
RURI * | Namespace |
Detailed Description
Constructor & Destructor Documentation
Construct a XML Attribute.
- Parameters
-
name The name of the attribute. value The value of the attribute. xmlns Namespace.
Construct a XML Attribute.
- Parameters
-
name The name of the attribute. value The value of the attribute. xmlns Namespace.
|
virtual |
Destruct the attribute.
Member Function Documentation
RURI* GetNamespace | ( | void | ) | const |
Return the namespace of the tag.
- Returns
- a string containing the namespace.
int Compare | ( | const RString & | name | ) | const |
Compare the name of the attribute with a given string. This function is used by RContainer.
- Parameters
-
name The string used for the comparison.
- Returns
- -1,0 or 1 if the attribute is greater, the same or lesser than parameter.
int Compare | ( | const RXMLAttr & | attr | ) | const |
Compare the names of two attributes. This function is used by RContainer.
- Parameters
-
attr The attribute used for the comparison.
- Returns
- -1,0 or 1 if the attribute is greater, the same or lesser than parameter.
RString GetFullName | ( | void | ) | const |
Return the full name of the attribute (including the namespace).
- Returns
- a string containing the name.
RString GetName | ( | void | ) | const |
Return the name of the attribute.
- Returns
- a string containing the name.
RString GetValue | ( | void | ) | const |
Returns the value of the attribute.
- Returns
- a string containing the value;
void SetValue | ( | const RString & | value | ) |
Set a new value to the attribute.
- Parameters
-
value Value to assign.
void AddValue | ( | const RString & | value | ) |
Add something to the current value of the attribute.
Field Documentation
|
private |
The name of the attribute.
|
private |
The value of the attribute.
|
private |
Namespace.