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

27 lines
365 B
C
Raw Normal View History

2020-05-02 07:31:03 +00:00
#pragma once
#include <memory>
#include <string>
2022-12-01 10:52:48 +00:00
#include <filesystem>
using Path = std::filesystem::path;
2020-05-02 07:31:03 +00:00
class Database
{
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
2022-12-01 10:52:48 +00:00
const Path& getPath() const;
void setPath(const Path& path);
2020-05-02 07:31:03 +00:00
2022-12-01 10:52:48 +00:00
private:
Path mPath;
2020-05-02 07:31:03 +00:00
};
2021-03-29 20:31:24 +00:00
using DatabasePtr = std::unique_ptr<Database>;