#include "DatabaseManager.h" DatabaseManager::DatabaseManager() : mDatabase(), mDatabaseInterface() { } DatabaseManager::~DatabaseManager() { } std::unique_ptr DatabaseManager::Create() { return std::make_unique(); } void DatabaseManager::CreateDatabase(const std::string& path) { mDatabase = Database::Create(); mDatabase->SetPath(path); mDatabaseInterface = SqliteInterface::Create(); mDatabaseInterface->Open(mDatabase); } void DatabaseManager::OnShutDown() { if(mDatabaseInterface) { mDatabaseInterface->Close(); } }