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
|
|
|
}
|
|
|
|
|
|
|
|
void Database::SetPath(const std::string& path)
|
|
|
|
{
|
2021-03-29 20:31:24 +00:00
|
|
|
mPath = path;
|
2020-05-02 07:31:03 +00:00
|
|
|
}
|
|
|
|
|
2021-03-29 20:31:24 +00:00
|
|
|
std::string 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
|
|
|
}
|