Fixed the Logging system to actually be able to handle errors. Database is also fixed to use directories.

This commit is contained in:
2024-04-23 22:29:49 -07:00
parent 2734cc00fb
commit f030ac62ae
61 changed files with 884 additions and 602 deletions

View File

@@ -12,13 +12,14 @@ namespace ehs
Str_8 id;
Version version;
Array<DbTable> tables;
Str_8 dir;
public:
Database();
Database(Str_8 id, const Version& version);
Database(const Str_8& filePath);
Database(Str_8 filePath);
Database(Database&& db) noexcept;
@@ -48,6 +49,8 @@ namespace ehs
DbTable* GetTable(const Str_8& id) const;
void Save(const Str_8& directory) const;
Str_8 GetDirectory() const;
void Save(Str_8 directory);
};
}