ifc_xmlreadercallbacki.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. #ifndef __WASABI_API_XMLREADERCALLBACKI_H
  2. #define __WASABI_API_XMLREADERCALLBACKI_H
  3. #include "ifc_xmlreadercallback.h"
  4. class ifc_xmlreadercallbackI : public ifc_xmlreadercallback
  5. {
  6. protected:
  7. ifc_xmlreadercallbackI() {}
  8. ~ifc_xmlreadercallbackI() {}
  9. public:
  10. virtual void xmlReaderOnStartElementCallback(const wchar_t *xmlpath, const wchar_t *xmltag, ifc_xmlreaderparams *params){}
  11. virtual void xmlReaderOnEndElementCallback(const wchar_t *xmlpath, const wchar_t *xmltag){}
  12. virtual void xmlReaderOnCharacterDataCallback(const wchar_t *xmlpath, const wchar_t *xmltag, const wchar_t *str){}
  13. virtual void xmlReaderOnError( int linenum, int errcode, const wchar_t *errstr) {}
  14. /*
  15. const wchar_t *xmlGetFileName();
  16. int xmlGetFileLine();
  17. void *xmlGetParserHandle();
  18. */
  19. #undef CBCLASS
  20. #define CBCLASS ifc_xmlreadercallbackI
  21. START_DISPATCH_INLINE;
  22. VCB(ONSTARTELEMENT, xmlReaderOnStartElementCallback);
  23. VCB(ONENDELEMENT, xmlReaderOnEndElementCallback);
  24. VCB(ONCHARDATA, xmlReaderOnCharacterDataCallback);
  25. VCB(ONERROR, xmlReaderOnError);
  26. /*
  27. CB(GETFILENAME, xmlGetFileName);
  28. CB(GETFILELINE, xmlGetFileLine);
  29. CB(GETHANDLE, xmlGetParserHandle);
  30. */
  31. END_DISPATCH;
  32. #undef CBCLASS
  33. };
  34. #endif