Database is now working and functional.
This commit is contained in:
@@ -36,6 +36,8 @@ namespace ehs
|
||||
|
||||
DbVar* GetVariable(UInt_64 hashId) const;
|
||||
|
||||
DbVar* GetVariable(const Str_8& id) const;
|
||||
|
||||
void Save() const;
|
||||
|
||||
void Load();
|
||||
|
@@ -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;
|
||||
|
||||
|
@@ -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;
|
||||
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user