XMLElement.pkg 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. $#include "XMLElement.h"
  2. class XMLElement
  3. {
  4. bool IsNull() const;
  5. bool NotNull() const;
  6. operator bool () const;
  7. String GetName() const;
  8. bool HasChild(const String name) const;
  9. XMLElement GetChild(const String name = String::EMPTY) const;
  10. XMLElement GetNext(const String name = String::EMPTY) const;
  11. XMLElement GetParent() const;
  12. unsigned GetNumAttributes() const;
  13. bool HasAttribute(const String name) const;
  14. bool GetBool(const String name) const;
  15. BoundingBox GetBoundingBox() const;
  16. String GetValue() const;
  17. Color GetColor(const String name) const;
  18. float GetFloat(const String name) const;
  19. unsigned GetUInt(const String name) const;
  20. int GetInt(const String name) const;
  21. IntRect GetIntRect(const String name) const;
  22. IntVector2 GetIntVector2(const String name) const;
  23. Rect GetRect(const String name) const;
  24. Quaternion GetQuaternion(const String name) const;
  25. Variant GetVariant() const;
  26. Variant GetVariantValue(VariantType type) const;
  27. ResourceRef GetResourceRef() const;
  28. ResourceRefList GetResourceRefList() const;
  29. VariantMap GetVariantMap() const;
  30. Vector2 GetVector2(const String name) const;
  31. Vector3 GetVector3(const String name) const;
  32. Vector4 GetVector4(const String name) const;
  33. Vector4 GetVector(const String name) const;
  34. XMLFile* GetFile() const;
  35. static const XMLElement EMPTY;
  36. tolua_readonly tolua_property__is_set bool null;
  37. tolua_readonly tolua_property__get_set String name;
  38. tolua_readonly tolua_property__get_set XMLElement parent;
  39. tolua_readonly tolua_property__get_set unsigned numAttributes;
  40. tolua_readonly tolua_property__get_set XMLFile* file;
  41. };