Repo created
This commit is contained in:
parent
4af19165ec
commit
68073add76
12458 changed files with 12350765 additions and 2 deletions
21
libs/storage/country_parent_getter.hpp
Normal file
21
libs/storage/country_parent_getter.hpp
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
#pragma once
|
||||
|
||||
#include "storage/storage.hpp"
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
namespace storage
|
||||
{
|
||||
class CountryParentGetter
|
||||
{
|
||||
public:
|
||||
CountryParentGetter(std::string const & countriesFile = "", std::string const & countriesDir = "");
|
||||
std::string operator()(std::string const & id) const;
|
||||
|
||||
Storage const & GetStorageForTesting() const { return *m_storage; }
|
||||
|
||||
private:
|
||||
std::shared_ptr<Storage> m_storage;
|
||||
};
|
||||
} // namespace storage
|
||||
Loading…
Add table
Add a link
Reference in a new issue