diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-02-20 18:42:30 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-02-21 00:35:49 +0000 |
commit | 0724047fbbbf02e053e2686299d726fcb2c7d295 (patch) | |
tree | dd367585d80c40ba9e8387d1ff2b3e8a16094a6c /lib/saxParse.h | |
parent | Swap @ prefix for p. prefix for special value names (diff) | |
download | ilt-0724047fbbbf02e053e2686299d726fcb2c7d295.tar.bz2 ilt-0724047fbbbf02e053e2686299d726fcb2c7d295.tar.xz ilt-0724047fbbbf02e053e2686299d726fcb2c7d295.zip |
Add SAXParse base class
Diffstat (limited to 'lib/saxParse.h')
-rw-r--r-- | lib/saxParse.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/saxParse.h b/lib/saxParse.h new file mode 100644 index 0000000..d5baaca --- /dev/null +++ b/lib/saxParse.h @@ -0,0 +1,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); + }; +} |