XMLElement.pkg 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. Color GetColor(const String name) const;
  17. float GetFloat(const String name) const;
  18. unsigned GetUInt(const String name) const;
  19. int GetInt(const String name) const;
  20. IntRect GetIntRect(const String name) const;
  21. IntVector2 GetIntVector2(const String name) const;
  22. Rect GetRect(const String name) const;
  23. Quaternion GetQuaternion(const String name) const;
  24. Variant GetVariant() const;
  25. Variant GetVariantValue(VariantType type) const;
  26. ResourceRef GetResourceRef() const;
  27. ResourceRefList GetResourceRefList() const;
  28. VariantMap GetVariantMap() const;
  29. Vector2 GetVector2(const String name) const;
  30. Vector3 GetVector3(const String name) const;
  31. Vector4 GetVector4(const String name) const;
  32. Vector4 GetVector(const String name) const;
  33. XMLFile* GetFile() const;
  34. static const XMLElement EMPTY;
  35. tolua_readonly tolua_property__is_set bool null;
  36. tolua_readonly tolua_property__get_set String name;
  37. tolua_readonly tolua_property__get_set XMLElement parent;
  38. tolua_readonly tolua_property__get_set unsigned numAttributes;
  39. tolua_readonly tolua_property__get_set XMLFile* file;
  40. };