aboutsummaryrefslogtreecommitdiff
path: root/Src/xml/ifc_xmlreadercallbacki.h
blob: 3c5bcc3a17b0f6cb1e33f919781fa146cc0f4f8b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#ifndef __WASABI_API_XMLREADERCALLBACKI_H
#define __WASABI_API_XMLREADERCALLBACKI_H

#include "ifc_xmlreadercallback.h"

class ifc_xmlreadercallbackI : public ifc_xmlreadercallback
{
protected:
	ifc_xmlreadercallbackI() {}
	~ifc_xmlreadercallbackI() {}

public:
	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){}
  virtual void xmlReaderOnError( int linenum, int errcode, const wchar_t *errstr) {}
  /*
	const wchar_t *xmlGetFileName();
	int xmlGetFileLine();
	void *xmlGetParserHandle();
	*/
	#undef CBCLASS
#define CBCLASS ifc_xmlreadercallbackI
	START_DISPATCH_INLINE;
	VCB(ONSTARTELEMENT, xmlReaderOnStartElementCallback);
	VCB(ONENDELEMENT, xmlReaderOnEndElementCallback);
	VCB(ONCHARDATA, xmlReaderOnCharacterDataCallback);
	VCB(ONERROR, xmlReaderOnError);
  /*
	CB(GETFILENAME, xmlGetFileName);
	CB(GETFILELINE, xmlGetFileLine);
	CB(GETHANDLE, xmlGetParserHandle);
	*/
	END_DISPATCH;
#undef CBCLASS
};


#endif