xmlparse.h 626 B

1234567891011121314151617181920212223
  1. #ifndef _XMLPARSE_H
  2. #define _XMLPARSE_H
  3. class XMLParse {
  4. private:
  5. void *parser;
  6. public:
  7. XMLParse();
  8. virtual ~XMLParse();
  9. virtual void SetUserData(void *param);
  10. virtual void SetElementHandler(void (*start)(void *userData, const wchar_t *name, const wchar_t **atts),
  11. void (*end)(void *userData, const wchar_t *name));
  12. virtual void SetCharacterDataHandler(void (*handler)(void *userData,const wchar_t *s, int len));
  13. virtual int Parse(const wchar_t *s, int len, int isFinal);
  14. virtual const wchar_t *ErrorString(int code);
  15. virtual int GetErrorCode();
  16. virtual int GetCurrentLineNumber();
  17. };
  18. #endif