EHS
Database.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
ehs/Array.h
"
4
#include "
DbTable.h
"
5
6
namespace
ehs
7
{
8
class
EHS_LIB_IO
Database
9
{
10
private
:
11
UInt_64 hashId;
12
Str_8
id;
13
Version
version;
14
Array<DbTable>
tables;
15
Str_8
dir;
16
17
public
:
18
Database
();
19
20
Database
(
Str_8
id
,
const
Version
& version);
21
22
Database
(
Str_8
filePath);
23
24
Database
(
Database
&& db)
noexcept
;
25
26
Database
(
const
Database
& db);
27
28
Database
& operator=(
Database
&& db)
noexcept
;
29
30
Database
& operator=(
const
Database
& db);
31
32
UInt_64 GetHashId()
const
;
33
34
void
SetId(
Str_8
newId);
35
36
Str_8
GetId()
const
;
37
38
void
SetVersion(
const
Version
& newVersion);
39
40
Version
GetVersion
()
const
;
41
42
bool
HasTable(UInt_64 hashId)
const
;
43
44
bool
HasTable(
const
Str_8
&
id
)
const
;
45
46
DbTable
* CreateTable(
Str_8
id
);
47
48
DbTable
* GetTable(UInt_64 hashId)
const
;
49
50
DbTable
* GetTable(
const
Str_8
&
id
)
const
;
51
52
Str_8
GetDirectory()
const
;
53
54
void
Save(
Str_8
directory);
55
};
56
}
Array.h
DbTable.h
ehs::Array
Definition:
Array.h:16
ehs::Database
Definition:
Database.h:9
ehs::DbTable
Definition:
DbTable.h:14
ehs::Str< Char_8, UInt_64 >
ehs::Version
A helper class for storing version major, minor and patch.
Definition:
Version.h:9
ehs
Definition:
Anchor.h:6
ehs::GetVersion
EHS_LIB_IO Version GetVersion()
Definition:
EHS.cpp:147
include
ehs
db
Database.h
Generated by
1.9.4