1
0

XMLString.h 710 B

1234567891011121314151617181920212223242526272829
  1. #ifndef NULLSOFT_WINAMP_XMLSTRING_H
  2. #define NULLSOFT_WINAMP_XMLSTRING_H
  3. #include "../xml/ifc_xmlreadercallback.h"
  4. /*
  5. this one is an xml callback that just saves the last encountered string
  6. */
  7. class XMLString : public ifc_xmlreadercallback
  8. {
  9. public:
  10. XMLString();
  11. void Reset();
  12. const wchar_t *GetString();
  13. void ManualSet(const wchar_t *string);
  14. private:
  15. /* XML callbacks */
  16. void StartTag(const wchar_t *xmlpath, const wchar_t *xmltag, ifc_xmlreaderparams *params);
  17. void EndTag(const wchar_t *xmlpath, const wchar_t *xmltag);
  18. void TextHandler(const wchar_t *xmlpath, const wchar_t *xmltag, const wchar_t *str);
  19. wchar_t data[256]; // for now, we'll make it dynamic later
  20. RECVS_DISPATCH;
  21. };
  22. #endif