#include "DatabaseManager.h" DatabaseManager::DatabaseManager() : mDatabase(), mDatabaseInterface() { } DatabaseManager::~DatabaseManager() { } std::shared_ptr DatabaseManager::Create() { return std::make_shared(); } 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(); } }