xmlInt32Parser.h 897 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #ifndef NULLSOFT_AUTH_LOGIN_XML_INT32_PARSER_HEADER
  2. #define NULLSOFT_AUTH_LOGIN_XML_INT32_PARSER_HEADER
  3. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  4. #pragma once
  5. #endif
  6. #include <wtypes.h>
  7. #include "../../xml/ifc_xmlreadercallback.h"
  8. class obj_xml;
  9. class XmlInt32Parser: public ifc_xmlreadercallback
  10. {
  11. public:
  12. XmlInt32Parser();
  13. ~XmlInt32Parser();
  14. public:
  15. HRESULT GetValue(INT *pValue);
  16. protected:
  17. void Event_XmlStartElement(const wchar_t *xmlpath, const wchar_t *xmltag, ifc_xmlreaderparams *params);
  18. void Event_XmlEndElement(const wchar_t *xmlpath, const wchar_t *xmltag);
  19. void Event_XmlCharData(const wchar_t *xmlpath, const wchar_t *xmltag, const wchar_t *value);
  20. void Event_XmlError(int linenum, int errcode, const wchar_t *errstr);
  21. protected:
  22. INT value;
  23. HRESULT result;
  24. WCHAR szBuffer[33];
  25. protected:
  26. RECVS_DISPATCH;
  27. };
  28. #endif //NULLSOFT_AUTH_LOGIN_XML_INT32_PARSER_HEADER