AppEasy Core SDK
1.5.0
Cross platform mobile and desktop app and game development SDK - The easy way to make apps
|
An Xml attribute, e.g. <Something attribute="some value"> More...
#include <CzXml.h>
Public Member Functions | |
CzXmlAttribute () | |
virtual | ~CzXmlAttribute () |
void | Clear () |
void | setName (const char *pName) |
void | setName (char *pName, int len) |
CzString & | getName () |
Gets the name of the attribute. | |
void | setValue (const char *pValue) |
void | setValue (char *pValue, int len) |
CzString & | getValue () |
Gets the value of the attribute. | |
int | getValueAsInt () const |
Gets the value of the attribute as an integer. | |
float | getValueAsFloat () const |
Gets the value of the attribute as a floating point number. | |
bool | getValueAsBool () const |
Gets the value of the attribute as a boolean. | |
bool | getValueAsPoint (CzVec2 &point) |
Gets the value of the attribute as a vec2. | |
bool | getValueAsPoint3 (CzVec3 &point, float default_y=0, float default_z=0) |
Gets the value of the attribute as a vec3 (if less than 3 values are found then rest will be assigned 0) | |
bool | getValueAsPoint3Copy (CzVec3 &point) |
Gets the value of the attribute as a vec3 (if less than 3 values are found then rest will be assigned the first value) | |
bool | getValueAsPoint4 (CzVec4 &point) |
Gets the value of the attribute as a vec4. | |
bool | getValueAsColour (CzColour &colour) |
Gets the value of the attribute as a colour. | |
bool | getValueAsRect (CzIRect &rect) |
Gets the value of the attribute as a rect. | |
CzStringList * | getValueAsList () |
Gets the value of the attribute as a list of strings. | |
Public Attributes | |
bool | Managed |
Managec attributes are managed by the pools system and should not be deleted. | |
CzString | Name |
Attributes name. | |
CzString | Value |
Attributes value. |
An Xml attribute, e.g. <Something attribute="some value">
CzXmlAttribute::CzXmlAttribute | ( | ) | [inline] |
virtual CzXmlAttribute::~CzXmlAttribute | ( | ) | [inline, virtual] |
void CzXmlAttribute::Clear | ( | ) | [inline] |
CzString& CzXmlAttribute::getName | ( | ) | [inline] |
Gets the name of the attribute.
CzString& CzXmlAttribute::getValue | ( | ) | [inline] |
Gets the value of the attribute.
bool CzXmlAttribute::getValueAsBool | ( | ) | const |
Gets the value of the attribute as a boolean.
bool CzXmlAttribute::getValueAsColour | ( | CzColour & | colour | ) |
Gets the value of the attribute as a colour.
float CzXmlAttribute::getValueAsFloat | ( | ) | const |
Gets the value of the attribute as a floating point number.
int CzXmlAttribute::getValueAsInt | ( | ) | const |
Gets the value of the attribute as an integer.
Gets the value of the attribute as a list of strings.
bool CzXmlAttribute::getValueAsPoint | ( | CzVec2 & | point | ) |
Gets the value of the attribute as a vec2.
bool CzXmlAttribute::getValueAsPoint3 | ( | CzVec3 & | point, |
float | default_y = 0 , |
||
float | default_z = 0 |
||
) |
Gets the value of the attribute as a vec3 (if less than 3 values are found then rest will be assigned 0)
bool CzXmlAttribute::getValueAsPoint3Copy | ( | CzVec3 & | point | ) |
Gets the value of the attribute as a vec3 (if less than 3 values are found then rest will be assigned the first value)
bool CzXmlAttribute::getValueAsPoint4 | ( | CzVec4 & | point | ) |
Gets the value of the attribute as a vec4.
bool CzXmlAttribute::getValueAsRect | ( | CzIRect & | rect | ) |
Gets the value of the attribute as a rect.
void CzXmlAttribute::setName | ( | const char * | pName | ) | [inline] |
pName | Sets the name of the attribute |
void CzXmlAttribute::setName | ( | char * | pName, |
int | len | ||
) | [inline] |
len | Sets the name of the attribute |
void CzXmlAttribute::setValue | ( | const char * | pValue | ) | [inline] |
pValue | Sets the value of the attribute |
void CzXmlAttribute::setValue | ( | char * | pValue, |
int | len | ||
) | [inline] |
len | Sets the value of the attribute |
Managec attributes are managed by the pools system and should not be deleted.
Attributes name.
Attributes value.