aboutsummaryrefslogtreecommitdiff
path: root/source/20-codegen-compiler/CodegenModelArchive.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/20-codegen-compiler/CodegenModelArchive.hpp')
-rw-r--r--source/20-codegen-compiler/CodegenModelArchive.hpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/source/20-codegen-compiler/CodegenModelArchive.hpp b/source/20-codegen-compiler/CodegenModelArchive.hpp
index f548048..e67f4d9 100644
--- a/source/20-codegen-compiler/CodegenModelArchive.hpp
+++ b/source/20-codegen-compiler/CodegenModelArchive.hpp
@@ -4,8 +4,8 @@
#include "CodegenModel.hpp"
#include <sqlite3.h>
-#include <string_view>
#include <cstdint>
+#include <string_view>
class CodegenModelArchive {
private:
@@ -20,7 +20,11 @@ public:
Private& GetPimpl() const { return *m; }
void DeleteDeclsRelatedToFile(std::string_view filename);
- void Store(const CodegenModel& cgInput);
+
+ void Store(const CodegenModel& model);
+ void LoadInto(CodegenModel& model) const;
+ CodegenModel Load() const;
+
void StoreStruct(const DeclStruct& decl);
void StoreFunction(const DeclFunction& decl);
void StoreEnum(const DeclEnum& decl);