tinyxml2.monkey2 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. Namespace tinyxml2
  2. #Import "native/tinyxml2.cpp"
  3. #Import "native/tinyxml2.h"
  4. #Import "native/glue.cpp"
  5. #Import "native/glue.h"
  6. Extern
  7. enum XMLError="tinyxml2::"
  8. XML_SUCCESS
  9. XML_NO_ATTRIBUTE
  10. XML_WRONG_ATTRIBUTE_TYPE
  11. XML_ERROR_FILE_NOT_FOUND
  12. XML_ERROR_FILE_COULD_NOT_BE_OPENED
  13. XML_ERROR_FILE_READ_ERROR
  14. XML_ERROR_ELEMENT_MISMATCH
  15. XML_ERROR_PARSING_ELEMENT
  16. XML_ERROR_PARSING_ATTRIBUTE
  17. XML_ERROR_IDENTIFYING_TAG
  18. XML_ERROR_PARSING_TEXT
  19. XML_ERROR_PARSING_CDATA
  20. XML_ERROR_PARSING_COMMENT
  21. XML_ERROR_PARSING_DECLARATION
  22. XML_ERROR_PARSING_UNKNOWN
  23. XML_ERROR_EMPTY_DOCUMENT
  24. XML_ERROR_MISMATCHED_ELEMENT
  25. XML_ERROR_PARSING
  26. XML_CAN_NOT_CONVERT_TEXT
  27. XML_NO_TEXT_NODE
  28. End
  29. Class XMLAttribute Extends Void="tinyxml2::XMLAttribute"
  30. Method Name:String() Extension="tinyxml2::bbAttributeName"
  31. Method Value:String() Extension="tinyxml2::bbAttributeValue"
  32. Method NextAttribute:XMLAttribute() Extension="tinyxml2::bbAttributeNext"
  33. End
  34. Class XMLNode Extends Void Abstract="tinyxml2::XMLNode"
  35. Method GetDocument:XMLDocument()
  36. Method ToElement:XMLElement()
  37. Method ToText:XMLText()
  38. Method ToComment:XMLComment()
  39. Method ToDocument:XMLDocument()
  40. Method ToDeclaration:XMLDeclaration()
  41. Method ToUnknown:XMLUnknown()
  42. Method NoChildren:Bool()
  43. Method Parent:XMLNode()
  44. Method FirstChild:XMLNode()
  45. Method FirstChildElement:XMLElement()
  46. Method LastChild:XMLNode()
  47. Method LastChildElement:XMLElement()
  48. Method PreviousSibling:XMLNode()
  49. Method PreviousSiblingElement:XMLElement()
  50. Method NextSibling:XMLNode()
  51. Method NextSiblingElement:XMLElement()
  52. Method Value:String() Extension="tinyxml2::bbNodeValue"
  53. End
  54. Class XMLDocument Extends XMLNode="tinyxml2::XMLDocument"
  55. Method Parse:XMLError( xml:CString )
  56. Method PrintDocument()="Print"
  57. Method Error:Bool()
  58. Method ErrorID:XMLError()
  59. Method Destroy() Extension="tinyxml2::bbDocumentDestroy"
  60. End
  61. Class XMLElement Extends XMLNode="tinyxml2::XMLElement"
  62. Method Name:String() Extension="tinyxml2::bbElementName"
  63. Method Attribute:String( name:String,value:String="" ) Extension="tinyxml2::bbElementAttribute"
  64. Method IntAttribute:Int( name:CString )
  65. Method UnsignedAttribute:UInt( name:CString )
  66. Method BoolAttribute:Bool( name:CString )
  67. Method DoubleAttribute:Double( name:CString )
  68. Method FloatAttribute:Float( name:CString )
  69. Method QueryIntAttribute:XMLError( name:CString,value:Int Ptr )
  70. Method QueryUnsignedAttribute:XMLError( name:CString,value:UInt Ptr )
  71. Method QueryBoolAttribute:XMLError( name:CString,value:Bool Ptr )
  72. Method QueryDoubleAttribute:XMLError( name:CString,value:Double Ptr )
  73. Method QueryFloatAttribute:XMLError( name:CString,value:Float Ptr )
  74. Method QueryAttribute:Int( name:CString,value:Int Ptr )
  75. Method FirstAttribute:XMLAttribute() Extension="tinyxml2::bbElementFirstAttribute"
  76. Method GetText:String() Extension="tinyxml2::bbElementGetText"
  77. End
  78. Class XMLComment Extends XMLNode="tinyxml2::XMLComment"
  79. End
  80. Class XMLDeclaration Extends XMLNode="tinyxml2::XMLDeclaration"
  81. End
  82. Class XMLText Extends XMLNode="tinyxml2::XMLText"
  83. Method CData:Bool()
  84. End
  85. Class XMLUnknown Extends XMLNode="tinyxml2::XMLUnknown"
  86. End