blob: f5480485ba4fc6772f9e8898f33d0703af29fc11 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#pragma once
#include "CodegenDecl.hpp"
#include "CodegenModel.hpp"
#include <sqlite3.h>
#include <string_view>
#include <cstdint>
class CodegenModelArchive {
private:
class Private;
Private* m;
public:
CodegenModelArchive(std::string_view dbPath);
~CodegenModelArchive();
// Implementation detail helper, don't use outside
Private& GetPimpl() const { return *m; }
void DeleteDeclsRelatedToFile(std::string_view filename);
void Store(const CodegenModel& cgInput);
void StoreStruct(const DeclStruct& decl);
void StoreFunction(const DeclFunction& decl);
void StoreEnum(const DeclEnum& decl);
};
|