class TiXmlAttribute

An attribute is a name-value pair. More...

Full nameTelEngine::TiXmlAttribute
Definition#include <libs/yxml/tinyxml.h>
InheritsTelEngine::TiXmlBase [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Protected Methods


Detailed Description

An attribute is a name-value pair. Elements have an arbitrary number of attributes, each with a unique name.

@note The attributes are not TiXmlNodes, since they are not part of the tinyXML document object model. There are other suggested ways to look at this problem.

 TiXmlAttribute ()

TiXmlAttribute

 TiXmlAttribute ( const std::string& _name, const std::string& _value )

TiXmlAttribute

 TiXmlAttribute ( const char * _name, const char * _value )

TiXmlAttribute

const char*  Name ()

Name

[const]

const char*  Value ()

Value

[const]

int  IntValue ()

IntValue

[const]

double  DoubleValue ()

DoubleValue

[const]

const TIXML_STRING&  NameTStr ()

NameTStr

[const]

int  QueryIntValue ( int* _value )

QueryIntValue

[const]

QueryIntValue examines the value string. It is an alternative to the IntValue() method with richer error checking. If the value is an integer, it is stored in 'value' and the call returns TIXML_SUCCESS. If it is not an integer, it returns TIXML_WRONG_TYPE.

A specialized but useful call. Note that for success it returns 0, which is the opposite of almost all other TinyXml calls.

int  QueryDoubleValue ( double* _value )

QueryDoubleValue

[const]

void  SetName ( const char* _name )

SetName

void  SetValue ( const char* _value )

SetValue

void  SetIntValue ( int _value )

SetIntValue

void  SetDoubleValue ( double _value )

SetDoubleValue

void  SetName ( const std::string& _name )

SetName

void  SetValue ( const std::string& _value )

SetValue

const TiXmlAttribute*  Next ()

Next

[const]

TiXmlAttribute*  Next ()

Next

const TiXmlAttribute*  Previous ()

Previous

[const]

TiXmlAttribute*  Previous ()

Previous

bool  operator== ( const TiXmlAttribute& rhs )

operator==

[const]

bool  operator< ( const TiXmlAttribute& rhs )

operator<

[const]

bool  operator> ( const TiXmlAttribute& rhs )

operator>

[const]

const char*  Parse ( const char* p, TiXmlParsingData* data, TiXmlEncoding encoding )

Parse

[virtual]

Reimplemented from TiXmlBase.

void  Print ( FILE* cfile, int depth )

Print

[const virtual]

Reimplemented from TiXmlBase.

void  StreamOut ( TIXML_OSTREAM * out, bool unclosed = false )

StreamOut

[const virtual]

Reimplemented from TiXmlBase.

void  SetDocument ( TiXmlDocument* doc )

SetDocument

[protected]


Generated by: paulc on bussard on Mon Mar 8 12:18:15 2010, using kdoc 2.0a54.