XMLDOM.h 647 B

123456789101112131415161718192021222324252627
  1. #pragma once
  2. #include "../xml/ifc_xmlreadercallback.h"
  3. #include "XMLNode.h"
  4. #include "../nu/Alias.h"
  5. class XMLDOM : public ifc_xmlreadercallback
  6. {
  7. public:
  8. XMLDOM();
  9. ~XMLDOM();
  10. const XMLNode *GetRoot() const;
  11. private:
  12. void StartTag(const wchar_t *xmlpath, const wchar_t *xmltag, ifc_xmlreaderparams *params);
  13. void EndTag(const wchar_t *xmlpath, const wchar_t *xmltag);
  14. void TextHandler(const wchar_t *xmlpath, const wchar_t *xmltag, const wchar_t *str);
  15. private:
  16. wchar_t *curtext;
  17. size_t curtext_len; // number of characters in curtext, not including null terminator
  18. XMLNode *xmlNode;
  19. XMLNode *curNode;
  20. protected:
  21. RECVS_DISPATCH;
  22. };