XMLFile.pkg 757 B

1234567891011121314151617181920212223242526272829
  1. $#include "XMLFile.h"
  2. class XMLFile : public Resource
  3. {
  4. XMLFile();
  5. ~XMLFile();
  6. bool FromString(const String source);
  7. XMLElement CreateRoot(const String name = String::EMPTY);
  8. XMLElement GetRoot(const String name = String::EMPTY);
  9. String ToString() const;
  10. void Patch(XMLFile* patchFile);
  11. void Patch(XMLElement patchElement);
  12. };
  13. ${
  14. #define TOLUA_DISABLE_tolua_ResourceLuaAPI_XMLFile_new00
  15. static int tolua_ResourceLuaAPI_XMLFile_new00(lua_State* tolua_S)
  16. {
  17. return ToluaNewObject<XMLFile>(tolua_S);
  18. }
  19. #define TOLUA_DISABLE_tolua_ResourceLuaAPI_XMLFile_new00_local
  20. static int tolua_ResourceLuaAPI_XMLFile_new00_local(lua_State* tolua_S)
  21. {
  22. return ToluaNewObjectGC<XMLFile>(tolua_S);
  23. }
  24. $}