You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
397 B
C++
19 lines
397 B
C++
#pragma once
|
|
|
|
#include <IActionStorage.h>
|
|
|
|
class StorageFactory
|
|
{
|
|
public:
|
|
static StorageFactory& GetInstance();
|
|
|
|
std::shared_ptr<IActionStorage> CreateDefaultStorage();
|
|
|
|
std::shared_ptr<IActionStorage> CreateStorage(const std::filesystem::path& backupDir, const std::string& dbName);
|
|
|
|
private:
|
|
StorageFactory() {}
|
|
|
|
std::unordered_map < std::string, std::shared_ptr<IActionStorage>> m_map;
|
|
};
|