blob: fe1a541fbfb3e2fc1d2809ef766543238f601228 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#include "storage/country_parent_getter.hpp"
namespace storage
{
CountryParentGetter::CountryParentGetter(std::string const & countriesFile,
std::string const & countriesDir)
{
if (countriesFile.empty())
m_storage = make_shared<Storage>();
else
m_storage = make_shared<Storage>(countriesFile, countriesDir);
}
std::string CountryParentGetter::operator()(std::string const & id) const
{
return m_storage->GetParentIdFor(id);
}
} // namespace storage
|