stuff-from-scratch/src/database/Database.h

25 lines
313 B
C
Raw Normal View History

2020-05-02 07:31:03 +00:00
#pragma once
#include <memory>
#include <string>
class Database
{
2021-03-29 20:31:24 +00:00
std::string mPath;
2020-05-02 07:31:03 +00:00
public:
2021-03-29 20:31:24 +00:00
Database();
2020-05-02 07:31:03 +00:00
2021-03-29 20:31:24 +00:00
~Database();
2020-05-02 07:31:03 +00:00
2021-03-29 20:31:24 +00:00
static std::unique_ptr<Database> Create();
2020-05-02 07:31:03 +00:00
2021-03-29 20:31:24 +00:00
void SetPath(const std::string& path);
2020-05-02 07:31:03 +00:00
2021-03-29 20:31:24 +00:00
std::string GetPath() const;
2020-05-02 07:31:03 +00:00
};
2021-03-29 20:31:24 +00:00
using DatabasePtr = std::unique_ptr<Database>;