XALM  1.0
 Vše Třídy Prostory jmen Soubory Funkce Proměnné Výčty Hodnoty výčtu Friends Definice maker
Veřejné metody | Privátní typy | Privátní metody | Privátní atributy | Friends | Seznam všech členů
Dokumentace třídy tinyxml2::XMLAttribute

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

#include <tinyxml2.h>

Veřejné metody

const char * Name () const
 The name of the attribute. ...
 
const char * Value () const
 The value of the attribute. ...
 
const XMLAttributeNext () const
 The next attribute in the list. ...
 
int IntValue () const
 IntValue interprets the attribute as an integer, and returns the value. ...
 
unsigned UnsignedValue () const
 Query as an unsigned integer. See IntValue() ...
 
bool BoolValue () const
 Query as a boolean. See IntValue() ...
 
double DoubleValue () const
 Query as a double. See IntValue() ...
 
float FloatValue () const
 Query as a float. See IntValue() ...
 
XMLError QueryLongValue (long *value) const
 QueryIntValue interprets the attribute as an integer, and returns the value in the provided parameter. ...
 
XMLError QueryIntValue (int *value) const
 See QueryIntValue. ...
 
XMLError QueryUnsignedValue (unsigned int *value) const
 See QueryIntValue. ...
 
XMLError QueryBoolValue (bool *value) const
 See QueryIntValue. ...
 
XMLError QueryDoubleValue (double *value) const
 See QueryIntValue. ...
 
XMLError QueryFloatValue (float *value) const
 See QueryIntValue. ...
 
void SetAttribute (const char *value)
 Set the attribute to a string value. ...
 
void SetAttribute (int value)
 Set the attribute to value. ...
 
void SetAttribute (unsigned value)
 Set the attribute to value. ...
 
void SetAttribute (bool value)
 Set the attribute to value. ...
 
void SetAttribute (double value)
 Set the attribute to value. ...
 
void SetAttribute (float value)
 Set the attribute to value. ...
 

Privátní typy

enum  { BUF_SIZE = 200 }
 

Privátní metody

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

Privátní atributy

StrPair _name
 
StrPair _value
 
XMLAttribute_next
 
MemPool_memPool
 

Friends

class XMLElement
 

Detailní popis

An attribute is a name-value pair.

Elements have an arbitrary number of attributes, each with a unique name.

Poznámka
The attributes are not XMLNodes. You may only query the Next() attribute in a list.

Definice je uvedena na řádku 1013 v souboru tinyxml2.h.

Dokumentace k členským výčtům

anonymous enum
private
Hodnoty výčtu
BUF_SIZE 

Definice je uvedena na řádku 1094 v souboru tinyxml2.h.

Dokumentace konstruktoru a destruktoru

tinyxml2::XMLAttribute::XMLAttribute ( )
inlineprivate

Definice je uvedena na řádku 1096 v souboru tinyxml2.h.

virtual tinyxml2::XMLAttribute::~XMLAttribute ( )
inlineprivatevirtual

Definice je uvedena na řádku 1097 v souboru tinyxml2.h.

tinyxml2::XMLAttribute::XMLAttribute ( const XMLAttribute )
private

Dokumentace k metodám

bool tinyxml2::XMLAttribute::BoolValue ( ) const
inline

Query as a boolean. See IntValue()

Definice je uvedena na řádku 1046 v souboru tinyxml2.h.

double tinyxml2::XMLAttribute::DoubleValue ( ) const
inline

Query as a double. See IntValue()

Definice je uvedena na řádku 1052 v souboru tinyxml2.h.

float tinyxml2::XMLAttribute::FloatValue ( ) const
inline

Query as a float. See IntValue()

Definice je uvedena na řádku 1058 v souboru tinyxml2.h.

int tinyxml2::XMLAttribute::IntValue ( ) const
inline

IntValue interprets the attribute as an integer, and returns the value.

If the value isn't an integer, 0 will be returned. There is no error checking; use QueryIntValue() if you need error checking.

Definice je uvedena na řádku 1034 v souboru tinyxml2.h.

const char* tinyxml2::XMLAttribute::Name ( ) const
inline

The name of the attribute.

Definice je uvedena na řádku 1018 v souboru tinyxml2.h.

Používá se v tinyxml2::XMLElement::FindAttribute(), tinyxml2::XMLElement::ParseAttributes() a tinyxml2::XMLPrinter::VisitEnter().

const XMLAttribute* tinyxml2::XMLAttribute::Next ( ) const
inline

The next attribute in the list.

Definice je uvedena na řádku 1026 v souboru tinyxml2.h.

Používá se v tinyxml2::XMLElement::ShallowClone(), tinyxml2::XMLElement::ShallowEqual() a tinyxml2::XMLPrinter::VisitEnter().

void tinyxml2::XMLAttribute::operator= ( const XMLAttribute )
private
char * tinyxml2::XMLAttribute::ParseDeep ( char *  p,
bool  processEntities 
)
private
XMLError tinyxml2::XMLAttribute::QueryBoolValue ( bool *  value) const

See QueryIntValue.

Definice je uvedena na řádku 1113 v souboru tinyxml2.cpp.

Odkazuje se na tinyxml2::XMLUtil::ToBool(), Value(), tinyxml2::XML_NO_ERROR a tinyxml2::XML_WRONG_ATTRIBUTE_TYPE.

Používá se v tinyxml2::XMLElement::QueryBoolAttribute().

XMLError tinyxml2::XMLAttribute::QueryDoubleValue ( double *  value) const

See QueryIntValue.

Definice je uvedena na řádku 1131 v souboru tinyxml2.cpp.

Odkazuje se na tinyxml2::XMLUtil::ToDouble(), Value(), tinyxml2::XML_NO_ERROR a tinyxml2::XML_WRONG_ATTRIBUTE_TYPE.

Používá se v tinyxml2::XMLElement::QueryDoubleAttribute().

XMLError tinyxml2::XMLAttribute::QueryFloatValue ( float *  value) const

See QueryIntValue.

Definice je uvedena na řádku 1122 v souboru tinyxml2.cpp.

Odkazuje se na tinyxml2::XMLUtil::ToFloat(), Value(), tinyxml2::XML_NO_ERROR a tinyxml2::XML_WRONG_ATTRIBUTE_TYPE.

Používá se v tinyxml2::XMLElement::QueryFloatAttribute().

XMLError tinyxml2::XMLAttribute::QueryIntValue ( int *  value) const

See QueryIntValue.

Definice je uvedena na řádku 1095 v souboru tinyxml2.cpp.

Odkazuje se na tinyxml2::XMLUtil::ToInt(), Value(), tinyxml2::XML_NO_ERROR a tinyxml2::XML_WRONG_ATTRIBUTE_TYPE.

Používá se v tinyxml2::XMLElement::QueryIntAttribute().

XMLError tinyxml2::XMLAttribute::QueryLongValue ( long *  value) const

QueryIntValue interprets the attribute as an integer, and returns the value in the provided parameter.

The function will return XML_NO_ERROR on success, and XML_WRONG_ATTRIBUTE_TYPE if the conversion is not successful.

Definice je uvedena na řádku 1086 v souboru tinyxml2.cpp.

Odkazuje se na tinyxml2::XMLUtil::ToLong(), Value(), tinyxml2::XML_NO_ERROR a tinyxml2::XML_WRONG_ATTRIBUTE_TYPE.

Používá se v tinyxml2::XMLElement::QueryLongAttribute().

XMLError tinyxml2::XMLAttribute::QueryUnsignedValue ( unsigned int *  value) const

See QueryIntValue.

Definice je uvedena na řádku 1104 v souboru tinyxml2.cpp.

Odkazuje se na tinyxml2::XMLUtil::ToUnsigned(), Value(), tinyxml2::XML_NO_ERROR a tinyxml2::XML_WRONG_ATTRIBUTE_TYPE.

Používá se v tinyxml2::XMLElement::QueryUnsignedAttribute().

void tinyxml2::XMLAttribute::SetAttribute ( const char *  value)

Set the attribute to a string value.

Definice je uvedena na řádku 1140 v souboru tinyxml2.cpp.

Odkazuje se na _value a tinyxml2::StrPair::SetStr().

Používá se v tinyxml2::XMLElement::SetAttribute().

void tinyxml2::XMLAttribute::SetAttribute ( int  value)

Set the attribute to value.

Definice je uvedena na řádku 1146 v souboru tinyxml2.cpp.

Odkazuje se na _value, BUF_SIZE, tinyxml2::StrPair::SetStr() a tinyxml2::XMLUtil::ToStr().

void tinyxml2::XMLAttribute::SetAttribute ( unsigned  value)

Set the attribute to value.

Definice je uvedena na řádku 1154 v souboru tinyxml2.cpp.

Odkazuje se na _value, BUF_SIZE, tinyxml2::StrPair::SetStr() a tinyxml2::XMLUtil::ToStr().

void tinyxml2::XMLAttribute::SetAttribute ( bool  value)

Set the attribute to value.

Definice je uvedena na řádku 1162 v souboru tinyxml2.cpp.

Odkazuje se na _value, BUF_SIZE, tinyxml2::StrPair::SetStr() a tinyxml2::XMLUtil::ToStr().

void tinyxml2::XMLAttribute::SetAttribute ( double  value)

Set the attribute to value.

Definice je uvedena na řádku 1169 v souboru tinyxml2.cpp.

Odkazuje se na _value, BUF_SIZE, tinyxml2::StrPair::SetStr() a tinyxml2::XMLUtil::ToStr().

void tinyxml2::XMLAttribute::SetAttribute ( float  value)

Set the attribute to value.

Definice je uvedena na řádku 1176 v souboru tinyxml2.cpp.

Odkazuje se na _value, BUF_SIZE, tinyxml2::StrPair::SetStr() a tinyxml2::XMLUtil::ToStr().

void tinyxml2::XMLAttribute::SetName ( const char *  name)
private

Definice je uvedena na řádku 1080 v souboru tinyxml2.cpp.

Odkazuje se na _name a tinyxml2::StrPair::SetStr().

Používá se v tinyxml2::XMLElement::FindOrCreateAttribute().

unsigned tinyxml2::XMLAttribute::UnsignedValue ( ) const
inline

Query as an unsigned integer. See IntValue()

Definice je uvedena na řádku 1040 v souboru tinyxml2.h.

const char* tinyxml2::XMLAttribute::Value ( ) const
inline

Dokumentace k friends

friend class XMLElement
friend

Definice je uvedena na řádku 1015 v souboru tinyxml2.h.

Dokumentace k datovým členům

MemPool* tinyxml2::XMLAttribute::_memPool
private

Definice je uvedena na řádku 1108 v souboru tinyxml2.h.

Používá se v tinyxml2::XMLElement::FindOrCreateAttribute() a tinyxml2::XMLElement::ParseAttributes().

StrPair tinyxml2::XMLAttribute::_name
mutableprivate

Definice je uvedena na řádku 1105 v souboru tinyxml2.h.

Používá se v ParseDeep() a SetName().

XMLAttribute* tinyxml2::XMLAttribute::_next
private
StrPair tinyxml2::XMLAttribute::_value
mutableprivate

Definice je uvedena na řádku 1106 v souboru tinyxml2.h.

Používá se v ParseDeep() a SetAttribute().


Dokumentace pro tuto třídu byla generována z následujících souborů: