summaryrefslogtreecommitdiff
path: root/lib/saxParse.h
blob: d5baaca81fcc24304959e4f815de2a27d2b64691 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#pragma once

#include <cstdio>

typedef struct _mxml_node_s mxml_node_t;

namespace Persistence {
	class SAXParse {
	public:
		virtual ~SAXParse() = default;

		virtual void elementOpen(mxml_node_t *) = 0;
		virtual void elementClose(mxml_node_t *) = 0;
		virtual void comment(mxml_node_t *);
		virtual void data(mxml_node_t *) = 0;
		virtual void directive(mxml_node_t *) = 0;
		virtual void cdata(mxml_node_t *) = 0;

		void parseFile(FILE * file);
	};
}