2020-05-02 07:31:03 +00:00
|
|
|
#include "Database.h"
|
|
|
|
|
|
|
|
Database::Database()
|
2021-03-29 20:31:24 +00:00
|
|
|
: mPath()
|
2020-05-02 07:31:03 +00:00
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
Database::~Database()
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2021-03-29 20:31:24 +00:00
|
|
|
std::unique_ptr<Database> Database::Create()
|
2020-05-02 07:31:03 +00:00
|
|
|
{
|
2021-03-29 20:31:24 +00:00
|
|
|
return std::make_unique<Database>();
|
2020-05-02 07:31:03 +00:00
|
|
|
}
|
|
|
|
|
2022-12-01 10:52:48 +00:00
|
|
|
void Database::setPath(const Path& path)
|
2020-05-02 07:31:03 +00:00
|
|
|
{
|
2021-03-29 20:31:24 +00:00
|
|
|
mPath = path;
|
2020-05-02 07:31:03 +00:00
|
|
|
}
|
|
|
|
|
2022-12-01 10:52:48 +00:00
|
|
|
const Path& Database::getPath() const
|
2020-05-02 07:31:03 +00:00
|
|
|
{
|
2021-03-29 20:31:24 +00:00
|
|
|
return mPath;
|
2020-05-02 07:31:03 +00:00
|
|
|
}
|