aboutsummaryrefslogtreecommitdiff
path: root/Src/Wasabi/api/xml/XMLAutoInclude.h
diff options
context:
space:
mode:
authorJef <jef@targetspot.com>2024-09-24 08:54:57 -0400
committerJef <jef@targetspot.com>2024-09-24 08:54:57 -0400
commit20d28e80a5c861a9d5f449ea911ab75b4f37ad0d (patch)
tree12f17f78986871dd2cfb0a56e5e93b545c1ae0d0 /Src/Wasabi/api/xml/XMLAutoInclude.h
parent537bcbc86291b32fc04ae4133ce4d7cac8ebe9a7 (diff)
downloadwinamp-20d28e80a5c861a9d5f449ea911ab75b4f37ad0d.tar.gz
Initial community commit
Diffstat (limited to 'Src/Wasabi/api/xml/XMLAutoInclude.h')
-rw-r--r--Src/Wasabi/api/xml/XMLAutoInclude.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/Src/Wasabi/api/xml/XMLAutoInclude.h b/Src/Wasabi/api/xml/XMLAutoInclude.h
new file mode 100644
index 00000000..8b3df85e
--- /dev/null
+++ b/Src/Wasabi/api/xml/XMLAutoInclude.h
@@ -0,0 +1,22 @@
+#ifndef NULLSOFT_WASABI_XMLAUTOINCLUDE_H
+#define NULLSOFT_WASABI_XMLAUTOINCLUDE_H
+
+#include "../xml/obj_xml.h"
+#include "../xml/ifc_xmlreadercallbackI.h"
+#include <bfc/string/StringW.h>
+
+class XMLAutoInclude : public ifc_xmlreadercallbackI
+{
+public:
+ XMLAutoInclude(obj_xml *_parser, const wchar_t *_path);
+ ~XMLAutoInclude();
+ void xmlReaderOnStartElementCallback(const wchar_t *xmlpath, const wchar_t *xmltag, ifc_xmlreaderparams *params);
+ void xmlReaderOnEndElementCallback(const wchar_t *xmlpath, const wchar_t *xmltag);
+//private:
+ obj_xml *parser;
+ StringW path, includeFn;
+private:
+ void Include(const wchar_t *filename);
+};
+
+#endif \ No newline at end of file