Database is now working and functional.

This commit is contained in:
2024-04-09 02:31:10 -07:00
parent d13fe81ac5
commit 72347ea9a2
8 changed files with 55 additions and 10 deletions

View File

@@ -36,6 +36,8 @@ namespace ehs
DbVar* GetVariable(UInt_64 hashId) const;
DbVar* GetVariable(const Str_8& id) const;
void Save() const;
void Load();

View File

@@ -46,10 +46,14 @@ namespace ehs
bool CreateVariable(Str_8 id, DbType type, UInt_64 size, const Byte* defaultValue);
bool CreateVariable(Str_8 id, DbType type);
DbObject *CreateObject();
DbObject *GetObject(UInt_64 id) const;
private:
DbVarTmpl* GetVariableTemplate(UInt_64 hashId) const;
DbVarTmpl *GetVariableTemplate(UInt_64 hashId) const;
void Serialize(Serializer<UInt_64>& data) const;

View File

@@ -26,7 +26,7 @@ namespace ehs
DbVar();
DbVar(UInt_64 hashId, DbVarTmpl *master, UInt_64 size, const Byte *data);
DbVar(UInt_64 hashId, DbVarTmpl *master);
DbVar(DbVar &&var) noexcept;

View File

@@ -32,6 +32,8 @@ namespace ehs
DbVarTmpl(Str_8 id, DbType type, const Byte* def);
DbVarTmpl(Str_8 id, DbType type);
DbVarTmpl(DbVarTmpl&& varTmpl) noexcept;
DbVarTmpl(const DbVarTmpl& varTmpl);