-
Notifications
You must be signed in to change notification settings - Fork 0
/
Database.h
49 lines (33 loc) · 1.06 KB
/
Database.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
//
// Created by Christo on 3/5/2019.
//
#ifndef MONRAZD_DATABASE_H
#define MONRAZD_DATABASE_H
#pragma once
#include "User.h"
#include "Table.h"
#include <string>
#include <vector>
#include <map>
#include <fstream>
class Database {
std::string databaseName;
std::string databaseFilePath;
std::fstream databaseFile;
std::vector<std::string>databaseInfoVector;
std::vector<std::string>databaseTableVector;
public:
//--------------------public member variables--------------
//------------------Constructor---------------------------
Database();
Database(std::string name, std::string username);
Database(std::string databaseFilePath);
//------------------Getters and Setters--------------------
std::string getDatabaseName(bool withoutSignature);
std::string &getDatabaseFilePath();
std::vector<std::string> getTables();
void refreshDatabaseInfo();
void deleteTable(std::shared_ptr<Table>table);
void deleteAllTables();
};
#endif //MONRAZD_DATABASE_H