PixelLightAPI
.
|
XML element attribute. More...
#include <XmlAttribute.h>
Public Member Functions | |
PLCORE_API | XmlAttribute () |
Default constructor. | |
virtual PLCORE_API | ~XmlAttribute () |
Destructor. | |
String | GetName () const |
Return the name of this attribute. | |
void | SetName (const String &sName) |
Set the name of this attribute. | |
String | GetValue () const |
Return the value of this attribute. | |
int | GetIntValue () const |
Return the value of this attribute, converted to an integer. | |
double | GetDoubleValue () const |
Return the value of this attribute, converted to a double. | |
PLCORE_API EQueryResult | QueryIntValue (int &nValue) const |
Examines the value string. | |
PLCORE_API EQueryResult | QueryDoubleValue (double &dValue) const |
Examines the value string. | |
void | SetValue (const String &sValue) |
Set the value. | |
void | SetIntValue (int nValue) |
Set the value from an integer. | |
void | SetDoubleValue (double dValue) |
Set the value from a double. | |
XmlAttribute * | GetNext () |
Get the next sibling attribute in the DOM. | |
const XmlAttribute * | GetNext () const |
XmlAttribute * | GetPrevious () |
Get the previous sibling attribute in the DOM. | |
const XmlAttribute * | GetPrevious () const |
bool | operator== (const XmlAttribute &cOther) const |
Compare functions. | |
bool | operator< (const XmlAttribute &cOther) const |
bool | operator> (const XmlAttribute &cOther) const |
virtual PLCORE_API bool | Save (File &cFile, uint32 nDepth=0) override |
Save function. | |
virtual PLCORE_API String | ToString (uint32 nDepth=0) const override |
Output as string function. | |
virtual PLCORE_API const char * | Parse (const char *pszData, XmlParsingData *pData=nullptr, EEncoding nEncoding=EncodingUnknown) override |
Parse the given null terminated block of XML data. |
XML element attribute.
PLCORE_API PLCore::XmlAttribute::XmlAttribute | ( | ) |
Default constructor.
virtual PLCORE_API PLCore::XmlAttribute::~XmlAttribute | ( | ) | [virtual] |
Destructor.
String PLCore::XmlAttribute::GetName | ( | ) | const [inline] |
Return the name of this attribute.
void PLCore::XmlAttribute::SetName | ( | const String & | sName | ) | [inline] |
Set the name of this attribute.
[in] | sName | Name of this attribute to set |
String PLCore::XmlAttribute::GetValue | ( | ) | const [inline] |
Return the value of this attribute.
int PLCore::XmlAttribute::GetIntValue | ( | ) | const [inline] |
Return the value of this attribute, converted to an integer.
double PLCore::XmlAttribute::GetDoubleValue | ( | ) | const [inline] |
Return the value of this attribute, converted to a double.
PLCORE_API EQueryResult PLCore::XmlAttribute::QueryIntValue | ( | int & | nValue | ) | const |
Examines the value string.
[out] | nValue | Will receive the integer value if all went fine, if not, this variable is not touched |
PLCORE_API EQueryResult PLCore::XmlAttribute::QueryDoubleValue | ( | double & | dValue | ) | const |
Examines the value string.
[out] | dValue | Will receive the double value if all went fine, if not, this variable is not touched |
void PLCore::XmlAttribute::SetValue | ( | const String & | sValue | ) | [inline] |
Set the value.
[in] | sValue | Attribute value to set |
void PLCore::XmlAttribute::SetIntValue | ( | int | nValue | ) | [inline] |
Set the value from an integer.
[in] | nValue | Attribute integer value to set |
void PLCore::XmlAttribute::SetDoubleValue | ( | double | dValue | ) | [inline] |
Set the value from a double.
[in] | dValue | Attribute double value to set |
XmlAttribute * PLCore::XmlAttribute::GetNext | ( | ) | [inline] |
Get the next sibling attribute in the DOM.
const XmlAttribute * PLCore::XmlAttribute::GetNext | ( | ) | const [inline] |
XmlAttribute * PLCore::XmlAttribute::GetPrevious | ( | ) | [inline] |
Get the previous sibling attribute in the DOM.
const XmlAttribute * PLCore::XmlAttribute::GetPrevious | ( | ) | const [inline] |
bool PLCore::XmlAttribute::operator== | ( | const XmlAttribute & | cOther | ) | const [inline] |
Compare functions.
[in] | cOther | Other attribute to compare with |
bool PLCore::XmlAttribute::operator< | ( | const XmlAttribute & | cOther | ) | const [inline] |
bool PLCore::XmlAttribute::operator> | ( | const XmlAttribute & | cOther | ) | const [inline] |
virtual PLCORE_API bool PLCore::XmlAttribute::Save | ( | File & | cFile, |
uint32 | nDepth = 0 |
||
) | [override, virtual] |
Save function.
[out] | cFile | File to write in, must be opened and writable |
[in] | nDepth | Current depth |
Implements PLCore::XmlBase.
virtual PLCORE_API String PLCore::XmlAttribute::ToString | ( | uint32 | nDepth = 0 | ) | const [override, virtual] |
Output as string function.
[in] | nDepth | Current depth |
Implements PLCore::XmlBase.
virtual PLCORE_API const char* PLCore::XmlAttribute::Parse | ( | const char * | pszData, |
XmlParsingData * | pData = nullptr , |
||
EEncoding | nEncoding = EncodingUnknown |
||
) | [override, virtual] |
Parse the given null terminated block of XML data.
[in] | pszData | Parsing data, if a null pointer, an error will be returned |
[in] | pData | Parsing data, can be a null pointer |
[in] | nEncoding | Encoding |
Implements PLCore::XmlBase.
|