XMLAttribute Class Reference

Public Member Functions

const char * Name () const
 The name of the attribute. More...
 
const char * Value () const
 The value of the attribute. More...
 
int GetLineNum () const
 Gets the line number the attribute is in, if the document was parsed from a file. More...
 
const XMLAttributeNext () const
 The next attribute in the list. More...
 
int IntValue () const
 
int64_t Int64Value () const
 
unsigned UnsignedValue () const
 Query as an unsigned integer. See IntValue() More...
 
bool BoolValue () const
 Query as a boolean. See IntValue() More...
 
double DoubleValue () const
 Query as a double. See IntValue() More...
 
float FloatValue () const
 Query as a float. See IntValue() More...
 
XMLError QueryIntValue (int *value) const
 
XMLError QueryUnsignedValue (unsigned int *value) const
 See QueryIntValue. More...
 
XMLError QueryInt64Value (int64_t *value) const
 See QueryIntValue. More...
 
XMLError QueryBoolValue (bool *value) const
 See QueryIntValue. More...
 
XMLError QueryDoubleValue (double *value) const
 See QueryIntValue. More...
 
XMLError QueryFloatValue (float *value) const
 See QueryIntValue. More...
 
void SetAttribute (const char *value)
 Set the attribute to a string value. More...
 
void SetAttribute (int value)
 Set the attribute to value. More...
 
void SetAttribute (unsigned value)
 Set the attribute to value. More...
 
void SetAttribute (int64_t value)
 Set the attribute to value. More...
 
void SetAttribute (bool value)
 Set the attribute to value. More...
 
void SetAttribute (double value)
 Set the attribute to value. More...
 
void SetAttribute (float value)
 Set the attribute to value. More...
 

Private Types

enum  { BUF_SIZE = 200 }
 

Private Member Functions

 XMLAttribute (const XMLAttribute &)
 
void operator= (const XMLAttribute &)
 
void SetName (const char *name)
 
char * ParseDeep (char *p, bool processEntities, int *curLineNumPtr)
 

Private Attributes

StrPair _name
 
StrPair _value
 
int _parseLineNum
 
XMLAttribute_next
 
MemPool_memPool
 

Friends

class XMLElement
 

Detailed Description

Definition at line 1128 of file tinyxml2.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
private

Definition at line 1219 of file tinyxml2.h.

Constructor & Destructor Documentation

◆ XMLAttribute()

XMLAttribute ( )
inlineprivate

Definition at line 1221 of file tinyxml2.h.

◆ ~XMLAttribute()

virtual ~XMLAttribute ( )
inlineprivatevirtual

Definition at line 1222 of file tinyxml2.h.

Member Function Documentation

◆ BoolValue()

bool BoolValue ( ) const
inline

Query as a boolean. See IntValue()

Definition at line 1169 of file tinyxml2.h.

◆ DoubleValue()

double DoubleValue ( ) const
inline

Query as a double. See IntValue()

Definition at line 1175 of file tinyxml2.h.

◆ FloatValue()

float FloatValue ( ) const
inline

Query as a float. See IntValue()

Definition at line 1181 of file tinyxml2.h.

◆ GetLineNum()

int GetLineNum ( ) const
inline

Gets the line number the attribute is in, if the document was parsed from a file.

Definition at line 1139 of file tinyxml2.h.

◆ Int64Value()

int64_t Int64Value ( ) const
inline

Definition at line 1156 of file tinyxml2.h.

◆ IntValue()

int IntValue ( ) const
inline

Definition at line 1150 of file tinyxml2.h.

◆ Name()

const char * Name ( ) const

The name of the attribute.

Definition at line 1469 of file tinyxml2.cpp.

◆ Next()

const XMLAttribute * Next ( ) const
inline

The next attribute in the list.

Definition at line 1142 of file tinyxml2.h.

◆ ParseDeep()

char * ParseDeep ( char *  p,
bool  processEntities,
int *  curLineNumPtr 
)
private

Definition at line 1479 of file tinyxml2.cpp.

◆ QueryBoolValue()

XMLError QueryBoolValue ( bool *  value) const

See QueryIntValue.

Definition at line 1546 of file tinyxml2.cpp.

◆ QueryDoubleValue()

XMLError QueryDoubleValue ( double *  value) const

See QueryIntValue.

Definition at line 1566 of file tinyxml2.cpp.

◆ QueryFloatValue()

XMLError QueryFloatValue ( float *  value) const

See QueryIntValue.

Definition at line 1556 of file tinyxml2.cpp.

◆ QueryInt64Value()

XMLError QueryInt64Value ( int64_t *  value) const

See QueryIntValue.

Definition at line 1536 of file tinyxml2.cpp.

◆ QueryIntValue()

XMLError QueryIntValue ( int *  value) const

Definition at line 1516 of file tinyxml2.cpp.

◆ QueryUnsignedValue()

XMLError QueryUnsignedValue ( unsigned int *  value) const

See QueryIntValue.

Definition at line 1526 of file tinyxml2.cpp.

◆ SetAttribute() [1/7]

void SetAttribute ( bool  value)

Set the attribute to value.

Definition at line 1607 of file tinyxml2.cpp.

◆ SetAttribute() [2/7]

void SetAttribute ( const char *  value)

Set the attribute to a string value.

Definition at line 1576 of file tinyxml2.cpp.

◆ SetAttribute() [3/7]

void SetAttribute ( double  value)

Set the attribute to value.

Definition at line 1614 of file tinyxml2.cpp.

◆ SetAttribute() [4/7]

void SetAttribute ( float  value)

Set the attribute to value.

Definition at line 1621 of file tinyxml2.cpp.

◆ SetAttribute() [5/7]

void SetAttribute ( int  value)

Set the attribute to value.

Definition at line 1582 of file tinyxml2.cpp.

◆ SetAttribute() [6/7]

void SetAttribute ( int64_t  value)

Set the attribute to value.

Definition at line 1598 of file tinyxml2.cpp.

◆ SetAttribute() [7/7]

void SetAttribute ( unsigned  value)

Set the attribute to value.

Definition at line 1590 of file tinyxml2.cpp.

◆ SetName()

void SetName ( const char *  name)
private

Definition at line 1510 of file tinyxml2.cpp.

◆ UnsignedValue()

unsigned UnsignedValue ( ) const
inline

Query as an unsigned integer. See IntValue()

Definition at line 1163 of file tinyxml2.h.

◆ Value()

const char * Value ( ) const

The value of the attribute.

Definition at line 1474 of file tinyxml2.cpp.

Friends And Related Function Documentation

◆ XMLElement

friend class XMLElement
friend

Definition at line 1130 of file tinyxml2.h.

Member Data Documentation

◆ _memPool

MemPool* _memPool
private

Definition at line 1234 of file tinyxml2.h.

◆ _name

StrPair _name
mutableprivate

Definition at line 1230 of file tinyxml2.h.

◆ _next

XMLAttribute* _next
private

Definition at line 1233 of file tinyxml2.h.

◆ _parseLineNum

int _parseLineNum
private

Definition at line 1232 of file tinyxml2.h.

◆ _value

StrPair _value
mutableprivate

Definition at line 1231 of file tinyxml2.h.


The documentation for this class was generated from the following files: