aboutsummaryrefslogtreecommitdiff
path: root/source/20-codegen-compiler/CodegenModelArchive.hpp
diff options
context:
space:
mode:
authorrtk0c <[email protected]>2022-07-15 13:30:43 -0700
committerrtk0c <[email protected]>2022-07-15 13:30:43 -0700
commit06ab541057fec82415e612e9ff9a7f4bb11fc420 (patch)
tree75ee3b580cfc2d91e55f5942225987200d3a314e /source/20-codegen-compiler/CodegenModelArchive.hpp
parenta417c79a08feeabe555d4ab9e213294599557efc (diff)
Changeset: 83 Misc bug fixes, planning database readback for inheritance hierarchy generation
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);