1
0

XMLAutoInclude.h 646 B

12345678910111213141516171819202122
  1. #ifndef NULLSOFT_WASABI_XMLAUTOINCLUDE_H
  2. #define NULLSOFT_WASABI_XMLAUTOINCLUDE_H
  3. #include "../xml/obj_xml.h"
  4. #include "../xml/ifc_xmlreadercallbackI.h"
  5. #include <bfc/string/StringW.h>
  6. class XMLAutoInclude : public ifc_xmlreadercallbackI
  7. {
  8. public:
  9. XMLAutoInclude(obj_xml *_parser, const wchar_t *_path);
  10. ~XMLAutoInclude();
  11. void xmlReaderOnStartElementCallback(const wchar_t *xmlpath, const wchar_t *xmltag, ifc_xmlreaderparams *params);
  12. void xmlReaderOnEndElementCallback(const wchar_t *xmlpath, const wchar_t *xmltag);
  13. //private:
  14. obj_xml *parser;
  15. StringW path, includeFn;
  16. private:
  17. void Include(const wchar_t *filename);
  18. };
  19. #endif