antioch-0.4.0
|
#include <tinyxml2.h>
Public Member Functions | |
const char * | Name () const |
The name of the attribute. More... | |
const char * | Value () const |
The value of the attribute. More... | |
const XMLAttribute * | Next () const |
The next attribute in the list. More... | |
int | IntValue () const |
unsigned | UnsignedValue () const |
Query as an unsigned integer. See IntAttribute() More... | |
bool | BoolValue () const |
Query as a boolean. See IntAttribute() More... | |
double | DoubleValue () const |
Query as a double. See IntAttribute() More... | |
float | FloatValue () const |
Query as a float. See IntAttribute() More... | |
int | QueryIntValue (int *value) const |
int | QueryUnsignedValue (unsigned int *value) const |
See QueryIntAttribute. More... | |
int | QueryBoolValue (bool *value) const |
See QueryIntAttribute. More... | |
int | QueryDoubleValue (double *value) const |
See QueryIntAttribute. More... | |
int | QueryFloatValue (float *value) const |
See QueryIntAttribute. 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 (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 () | |
virtual | ~XMLAttribute () |
XMLAttribute (const XMLAttribute &) | |
void | operator= (const XMLAttribute &) |
void | SetName (const char *name) |
char * | ParseDeep (char *p, bool processEntities) |
Private Attributes | |
StrPair | name |
StrPair | value |
XMLAttribute * | next |
MemPool * | memPool |
Friends | |
class | XMLElement |
An attribute is a name-value pair. Elements have an arbitrary number of attributes, each with a unique name.
Definition at line 784 of file tinyxml2.h.
|
private |
|
inlineprivate |
Definition at line 836 of file tinyxml2.h.
|
inlineprivatevirtual |
Definition at line 837 of file tinyxml2.h.
|
private |
|
inline |
Query as a boolean. See IntAttribute()
Definition at line 800 of file tinyxml2.h.
References QueryBoolValue().
|
inline |
Query as a double. See IntAttribute()
Definition at line 802 of file tinyxml2.h.
References QueryDoubleValue().
|
inline |
Query as a float. See IntAttribute()
Definition at line 804 of file tinyxml2.h.
References QueryFloatValue().
|
inline |
IntAttribute 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 QueryIntAttribute() if you need error checking.
Definition at line 796 of file tinyxml2.h.
References QueryIntValue().
|
inline |
The name of the attribute.
Definition at line 788 of file tinyxml2.h.
References tinyxml2::StrPair::GetStr(), and name.
Referenced by tinyxml2::XMLElement::FindAttribute(), tinyxml2::XMLElement::ParseAttributes(), and tinyxml2::XMLPrinter::VisitEnter().
|
inline |
The next attribute in the list.
Definition at line 790 of file tinyxml2.h.
References next.
Referenced by tinyxml2::XMLElement::ShallowClone(), tinyxml2::XMLElement::ShallowEqual(), and tinyxml2::XMLPrinter::VisitEnter().
|
private |
|
inlineprivate |
Definition at line 1090 of file tinyxml2_imp.h.
References tinyxml2::StrPair::ATTRIBUTE_VALUE, tinyxml2::StrPair::ATTRIBUTE_VALUE_LEAVE_ENTITIES, name, tinyxml2::StrPair::ParseName(), tinyxml2::StrPair::ParseText(), tinyxml2::XMLUtil::SkipWhiteSpace(), and value.
Referenced by tinyxml2::XMLElement::ParseAttributes().
|
inline |
See QueryIntAttribute.
Definition at line 1138 of file tinyxml2_imp.h.
References tinyxml2::XMLUtil::ToBool(), Value(), tinyxml2::XML_NO_ERROR, and tinyxml2::XML_WRONG_ATTRIBUTE_TYPE.
Referenced by BoolValue(), and tinyxml2::XMLElement::QueryBoolAttribute().
|
inline |
See QueryIntAttribute.
Definition at line 1157 of file tinyxml2_imp.h.
References tinyxml2::XMLUtil::ToDouble(), Value(), tinyxml2::XML_NO_ERROR, and tinyxml2::XML_WRONG_ATTRIBUTE_TYPE.
Referenced by DoubleValue(), and tinyxml2::XMLElement::QueryDoubleAttribute().
|
inline |
See QueryIntAttribute.
Definition at line 1148 of file tinyxml2_imp.h.
References tinyxml2::XMLUtil::ToFloat(), Value(), tinyxml2::XML_NO_ERROR, and tinyxml2::XML_WRONG_ATTRIBUTE_TYPE.
Referenced by FloatValue(), and tinyxml2::XMLElement::QueryFloatAttribute().
|
inline |
QueryIntAttribute interprets the attribute as an integer, and returns the value in the provided paremeter. The function will return XML_NO_ERROR on success, and XML_WRONG_ATTRIBUTE_TYPE if the conversion is not successful.
Definition at line 1120 of file tinyxml2_imp.h.
References tinyxml2::XMLUtil::ToInt(), Value(), tinyxml2::XML_NO_ERROR, and tinyxml2::XML_WRONG_ATTRIBUTE_TYPE.
Referenced by IntValue(), and tinyxml2::XMLElement::QueryIntAttribute().
|
inline |
See QueryIntAttribute.
Definition at line 1129 of file tinyxml2_imp.h.
References tinyxml2::XMLUtil::ToUnsigned(), Value(), tinyxml2::XML_NO_ERROR, and tinyxml2::XML_WRONG_ATTRIBUTE_TYPE.
Referenced by tinyxml2::XMLElement::QueryUnsignedAttribute(), and UnsignedValue().
|
inline |
Set the attribute to a string value.
Definition at line 1166 of file tinyxml2_imp.h.
References tinyxml2::StrPair::SetStr(), and value.
Referenced by tinyxml2::XMLElement::SetAttribute().
|
inline |
Set the attribute to value.
Definition at line 1173 of file tinyxml2_imp.h.
References BUF_SIZE, tinyxml2::StrPair::SetStr(), tinyxml2::XMLUtil::ToStr(), and value.
|
inline |
Set the attribute to value.
Definition at line 1182 of file tinyxml2_imp.h.
References BUF_SIZE, tinyxml2::StrPair::SetStr(), tinyxml2::XMLUtil::ToStr(), and value.
|
inline |
Set the attribute to value.
Definition at line 1191 of file tinyxml2_imp.h.
References BUF_SIZE, tinyxml2::StrPair::SetStr(), tinyxml2::XMLUtil::ToStr(), and value.
|
inline |
Set the attribute to value.
Definition at line 1199 of file tinyxml2_imp.h.
References BUF_SIZE, tinyxml2::StrPair::SetStr(), tinyxml2::XMLUtil::ToStr(), and value.
|
inline |
Set the attribute to value.
Definition at line 1207 of file tinyxml2_imp.h.
References BUF_SIZE, tinyxml2::StrPair::SetStr(), tinyxml2::XMLUtil::ToStr(), and value.
|
inlineprivate |
Definition at line 1113 of file tinyxml2_imp.h.
References name, and tinyxml2::StrPair::SetStr().
Referenced by tinyxml2::XMLElement::FindOrCreateAttribute().
|
inline |
Query as an unsigned integer. See IntAttribute()
Definition at line 798 of file tinyxml2.h.
References QueryUnsignedValue().
|
inline |
The value of the attribute.
Definition at line 789 of file tinyxml2.h.
References tinyxml2::StrPair::GetStr(), and value.
Referenced by tinyxml2::XMLElement::Attribute(), QueryBoolValue(), QueryDoubleValue(), QueryFloatValue(), QueryIntValue(), QueryUnsignedValue(), tinyxml2::XMLElement::ShallowEqual(), and tinyxml2::XMLPrinter::VisitEnter().
|
friend |
Definition at line 786 of file tinyxml2.h.
|
private |
Definition at line 847 of file tinyxml2.h.
Referenced by tinyxml2::XMLElement::FindOrCreateAttribute(), and tinyxml2::XMLElement::ParseAttributes().
|
mutableprivate |
Definition at line 844 of file tinyxml2.h.
Referenced by Name(), ParseDeep(), and SetName().
|
private |
Definition at line 846 of file tinyxml2.h.
Referenced by tinyxml2::XMLElement::DeleteAttribute(), tinyxml2::XMLElement::FindAttribute(), tinyxml2::XMLElement::FindOrCreateAttribute(), Next(), tinyxml2::XMLElement::ParseAttributes(), and tinyxml2::XMLElement::~XMLElement().
|
mutableprivate |
Definition at line 845 of file tinyxml2.h.
Referenced by ParseDeep(), SetAttribute(), and Value().