| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- $#include "XMLElement.h"
- class XMLElement
- {
- bool IsNull() const;
- bool NotNull() const;
- operator bool () const;
- String GetName() const;
-
- bool HasChild(const String& name) const;
- bool HasChild(const char* name) const;
-
- XMLElement GetChild(const String& name = String::EMPTY) const;
- XMLElement GetChild(const char* name) const;
-
- XMLElement GetNext(const String& name = String::EMPTY) const;
- XMLElement GetNext(const char* name) const;
-
- XMLElement GetParent() const;
-
- unsigned GetNumAttributes() const;
- bool HasAttribute(const String& name) const;
- bool HasAttribute(const char* name) const;
-
- bool GetBool(const char* name) const;
-
- BoundingBox GetBoundingBox() const;
-
- Color GetColor(const String& name) const;
- Color GetColor(const char* name) const;
-
- float GetFloat(const String& name) const;
- float GetFloat(const char* name) const;
-
- unsigned GetUInt(const String& name) const;
- unsigned GetUInt(const char* name) const;
-
- int GetInt(const String& name) const;
- int GetInt(const char* name) const;
-
- IntRect GetIntRect(const String& name) const;
- IntRect GetIntRect(const char* name) const;
-
- IntVector2 GetIntVector2(const String& name) const;
- IntVector2 GetIntVector2(const char* name) const;
-
- Rect GetRect(const String& name) const;
- Rect GetRect(const char* name) const;
-
- Quaternion GetQuaternion(const String& name) const;
- Quaternion GetQuaternion(const char* name) const;
-
- Variant GetVariant() const;
- Variant GetVariantValue(VariantType type) const;
-
- ResourceRef GetResourceRef() const;
- ResourceRefList GetResourceRefList() const;
-
- VariantMap GetVariantMap() const;
-
- Vector2 GetVector2(const String& name) const;
- Vector2 GetVector2(const char* name) const;
-
- Vector3 GetVector3(const String& name) const;
- Vector3 GetVector3(const char* name) const;
-
- Vector4 GetVector4(const String& name) const;
- Vector4 GetVector4(const char* name) const;
-
- Vector4 GetVector(const String& name) const;
- Vector4 GetVector(const char* name) const;
-
- XMLFile* GetFile() const;
-
- static const XMLElement EMPTY;
-
- tolua_readonly tolua_property__is_set bool null;
- tolua_readonly tolua_property__get_set String name;
- tolua_readonly tolua_property__get_set XMLElement parent;
- tolua_readonly tolua_property__get_set unsigned numAttributes;
- tolua_readonly tolua_property__get_set XMLFile* file;
- };
|