Started work on database handling.

This commit is contained in:
2024-04-08 03:10:24 -07:00
parent 405acb026f
commit beba947c69
22 changed files with 918 additions and 44 deletions

37
include/ehs/db/DbVar.h Normal file
View File

@@ -0,0 +1,37 @@
#pragma once
#include "ehs/Types.h"
namespace ehs
{
class DbVar
{
private:
UInt_64 hashId;
UInt_64 size;
Byte* data;
public:
~DbVar();
DbVar();
DbVar(UInt_64 hashId, UInt_64 size, Byte* data);
DbVar(DbVar&& var) noexcept;
DbVar(const DbVar& var);
DbVar& operator=(DbVar&& var) noexcept;
DbVar& operator=(const DbVar& var);
explicit operator Byte*() const;
UInt_64 GetHashId() const;
UInt_64 GetSize() const;
Byte* GetData() const;
};
}