lsxml::XmlAttribute< _Ty > Class Template Reference

xml attribute class More...

#include <lsxml.h>

Inheritance diagram for lsxml::XmlAttribute< _Ty >:

lsxml::BaseObject lsxml::BaseObject List of all members.

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.

Detailed Description

template<typename _Ty>
class lsxml::XmlAttribute< _Ty >

xml attribute class

Contains information about a single XML attribute. Attributes are stored in a singly linked list. Each XmlAttribute list is a list node.


Constructor & Destructor Documentation

template<typename _Ty>
lsxml::XmlAttribute< _Ty >::XmlAttribute ( const _Ty *  name,
const _Ty *  value 
)

Constructor.

Parameters:
name the attribute's name
value the attribute's value


The documentation for this class was generated from the following files:
Generated on Tue Sep 29 14:51:12 2009 for lsxml by  doxygen 1.5.1-p1