diff options
author | Jean-Francois Mauguit <jfmauguit@mac.com> | 2024-09-24 09:03:25 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-24 09:03:25 -0400 |
commit | bab614c421ed7ae329d26bf028c4a3b1d2450f5a (patch) | |
tree | 12f17f78986871dd2cfb0a56e5e93b545c1ae0d0 /Src/plist/loader.h | |
parent | 4bde6044fddf053f31795b9eaccdd2a5a527d21f (diff) | |
parent | 20d28e80a5c861a9d5f449ea911ab75b4f37ad0d (diff) | |
download | winamp-bab614c421ed7ae329d26bf028c4a3b1d2450f5a.tar.gz |
Merge pull request #5 from WinampDesktop/community
Merge to main
Diffstat (limited to 'Src/plist/loader.h')
-rw-r--r-- | Src/plist/loader.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/Src/plist/loader.h b/Src/plist/loader.h new file mode 100644 index 00000000..195d11b3 --- /dev/null +++ b/Src/plist/loader.h @@ -0,0 +1,36 @@ +//------------------------------------------------------------------------ +// +// iTunes XML Library Reader +// Copyright (C) 2003-2012 Nullsoft, Inc. +// +//------------------------------------------------------------------------ + +#ifndef NULLSOFT_PLIST_LOADER_H +#define NULLSOFT_PLIST_LOADER_H + +#include "types.h" +#include "../xml/ifc_xmlreadercallback.h" +#include <bfc/string/stringw.h> +#include <bfc/stack.h> + +//------------------------------------------------------------------------ +class plistLoader : public ifc_xmlreadercallback, public plistKey { +public: + plistLoader(); + virtual ~plistLoader(); + + virtual void xmlReaderOnStartElementCallback(const wchar_t *xmlpath, const wchar_t *xmltag, ifc_xmlreaderparams *params); + virtual void xmlReaderOnEndElementCallback(const wchar_t *xmlpath, const wchar_t *xmltag); + virtual void xmlReaderOnCharacterDataCallback(const wchar_t *xmlpath, const wchar_t *xmltag, const wchar_t *str); +private: + Stack<plistData *> m_context; // either a key or an array, this is where data gets inserted next + Stack<plistKeyholder *> m_dict; + StringW m_cdata; + +protected: + RECVS_DISPATCH; +}; + +#endif + +//------------------------------------------------------------------------
\ No newline at end of file |