aboutsummaryrefslogtreecommitdiff
path: root/Src/Wasabi/api/xml/XMLAutoInclude.h
blob: 8b3df85e199c040f64710ebbefc4e48b8b8650b7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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