deviceNodeParser.h 948 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #ifndef _NULLSOFT_WINAMP_GEN_DEVICE_PROVIDER_DEVICE_NODE_PARSER_HEADER
  2. #define _NULLSOFT_WINAMP_GEN_DEVICE_PROVIDER_DEVICE_NODE_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. #include "./deviceParser.h"
  9. class obj_xml;
  10. class DeviceNodeParser : public ifc_xmlreadercallback
  11. {
  12. public:
  13. DeviceNodeParser();
  14. ~DeviceNodeParser();
  15. public:
  16. BOOL Begin(obj_xml *xmlReader, TestSuite *testSuite);
  17. void End();
  18. protected:
  19. void Event_XmlStartElement(const wchar_t *xmlpath, const wchar_t *xmltag, ifc_xmlreaderparams *params);
  20. void Event_XmlEndElement(const wchar_t *xmlpath, const wchar_t *xmltag);
  21. void Event_XmlError(int linenum, int errcode, const wchar_t *errstr);
  22. protected:
  23. obj_xml *reader;
  24. DeviceParser elementParser;
  25. TestSuite *test;
  26. protected:
  27. RECVS_DISPATCH;
  28. };
  29. #endif //_NULLSOFT_WINAMP_GEN_DEVICE_PROVIDER_DEVICE_NODE_PARSER_HEADER