mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-29 09:13:46 +00:00
committed by
Konstantin Pastbin
parent
c9cbb64f12
commit
76ffc99abd
22
libs/storage/country_parent_getter.hpp
Normal file
22
libs/storage/country_parent_getter.hpp
Normal file
@@ -0,0 +1,22 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user