From 20d28e80a5c861a9d5f449ea911ab75b4f37ad0d Mon Sep 17 00:00:00 2001 From: Jef Date: Tue, 24 Sep 2024 14:54:57 +0200 Subject: Initial community commit --- Src/Wasabi/api/xml/XMLAutoInclude.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Src/Wasabi/api/xml/XMLAutoInclude.h (limited to 'Src/Wasabi/api/xml/XMLAutoInclude.h') 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 + +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 -- cgit