summaryrefslogtreecommitdiff
path: root/lib/saxParse-persistence.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2023-03-02 18:36:34 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2023-03-02 18:36:34 +0000
commit17ac090dd1dd245cf1e24b62b7333ba9be571bde (patch)
tree488bb1dae6478dd72cc3cb8a433cbac736f9c387 /lib/saxParse-persistence.h
parentParse colour values as they're read (diff)
downloadilt-17ac090dd1dd245cf1e24b62b7333ba9be571bde.tar.bz2
ilt-17ac090dd1dd245cf1e24b62b7333ba9be571bde.tar.xz
ilt-17ac090dd1dd245cf1e24b62b7333ba9be571bde.zip
Add ParseBase
Acts as a base class for persistence parser, encompasses the parse stack and manages shared objects
Diffstat (limited to 'lib/saxParse-persistence.h')
-rw-r--r--lib/saxParse-persistence.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/saxParse-persistence.h b/lib/saxParse-persistence.h
index 91daecc..6043b25 100644
--- a/lib/saxParse-persistence.h
+++ b/lib/saxParse-persistence.h
@@ -6,7 +6,7 @@
#include <mxml.h>
namespace Persistence {
- class SAXParsePersistence : public SAXParse {
+ class SAXParsePersistence : public SAXParse, ParseBase {
private:
template<typename T> struct Root : public Persistable {
T t {};
@@ -36,8 +36,5 @@ namespace Persistence {
void data(mxml_node_t *) override;
void directive(mxml_node_t *) override;
void cdata(mxml_node_t *) override;
-
- private:
- Stack stk;
};
}