From a31858d29048735b812d385f75db4ed6a6a94556 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Fri, 30 Apr 2021 01:03:42 +0100 Subject: Fix the fact I've been spelling persistence wrong this whole time --- lib/jsonParse-persistance.h | 44 -------------------------------------------- 1 file changed, 44 deletions(-) delete mode 100644 lib/jsonParse-persistance.h (limited to 'lib/jsonParse-persistance.h') diff --git a/lib/jsonParse-persistance.h b/lib/jsonParse-persistance.h deleted file mode 100644 index 37483bc..0000000 --- a/lib/jsonParse-persistance.h +++ /dev/null @@ -1,44 +0,0 @@ -#ifndef JSONPARSE_PERSISTANCE -#define JSONPARSE_PERSISTANCE - -#include "jsonParse.h" // IWYU pragma: export -#include "persistance.h" // IWYU pragma: export -#include -#include -#include -#include - -namespace Persistanace { - class JsonParsePersistance : public json::jsonParser { - public: - template - inline T - loadState(std::istream & in) - { - T t {}; - stk.push(std::make_unique>(std::ref(t))); - loadState(in); - return t; - } - - protected: - void loadState(std::istream & in); - - void beginObject() override; - void beginArray() override; - void pushBoolean(bool value) override; - void pushNumber(float value) override; - void pushNull() override; - void pushText(std::string && value) override; - void pushKey(std::string && k) override; - void endArray() override; - void endObject() override; - - Stack stk; - - template inline void pushValue(T && value); - inline SelectionPtr & current(); - }; -} - -#endif -- cgit v1.2.3