#include <lsxml.h>
Inheritance diagram for lsxml::XmlAttribute< _Ty >:
Public Member Functions | |
XmlAttribute (const _Ty *name, const _Ty *value) | |
ctor | |
const XmlString< _Ty > * | GetName () const |
returns the attribute's name | |
const XmlString< _Ty > * | GetValue () const |
returns the attribute's value | |
bool | HasValue () const |
checks if the attribute has a value | |
const _Ty * | GetNameStr () const |
returns the attribute's name string | |
const _Ty * | GetValueStr () const |
returns the attribute's value as string | |
int | GetValueInt () const |
returns the attribute's value as int | |
void | SetValue (XmlString< _Ty > *value) |
sets the attribute's value | |
void | SetValue (const _Ty *value) |
sets the attribute's value | |
const _Ty * | GetValueStr (const _Ty *defValue) const |
returns the attribute's value as string or the default value | |
int | GetValueInt (int defValue) const |
returns the attribute's value as int or the default value | |
XmlAttribute< _Ty > * | Next () |
returns the next attribute | |
const XmlAttribute< _Ty > * | Next () const |
returns the next attribute | |
void | SetNext (XmlAttribute< _Ty > *nxt) |
sets the next attribute | |
XmlAttribute (const _Ty *name, const _Ty *value) | |
Constructor. | |
const XmlString< _Ty > * | GetName () const |
Returns the attribute's name. | |
const XmlString< _Ty > * | GetValue () const |
Returns the attribute's value. | |
bool | HasValue () const |
Checks if the attribute has a value. | |
const _Ty * | GetNameStr () const |
Returns the attribute's name string. | |
const _Ty * | GetValueStr () const |
Returns the attribute's value as a string. | |
int | GetValueInt () const |
Returns the attribute's value as an integer. | |
void | SetValue (XmlString< _Ty > *value) |
Sets the attribute's value. | |
void | SetValue (const _Ty *value) |
Sets the attribute's value. | |
const _Ty * | GetValueStr (const _Ty *defValue) const |
Returns the attribute's value as string or the default value. | |
int | GetValueInt (int defValue) const |
Returns the attribute's value as int or the default value. | |
XmlAttribute< _Ty > * | Next () |
Returns the next attribute. | |
const XmlAttribute< _Ty > * | Next () const |
Returns the next attribute. | |
void | SetNext (XmlAttribute< _Ty > *nxt) |
Sets the next attribute. |
Contains information about a single XML attribute. Attributes are stored in a singly linked list. Each XmlAttribute list is a list node.
lsxml::XmlAttribute< _Ty >::XmlAttribute | ( | const _Ty * | name, | |
const _Ty * | value | |||
) |
Constructor.
name | the attribute's name | |
value | the attribute's value |