Repo created
This commit is contained in:
parent
4af19165ec
commit
68073add76
12458 changed files with 12350765 additions and 2 deletions
28
libs/indexer/map_style_reader.hpp
Normal file
28
libs/indexer/map_style_reader.hpp
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
#pragma once
|
||||
|
||||
#include "coding/reader.hpp"
|
||||
|
||||
#include "map_style.hpp"
|
||||
|
||||
#include <atomic>
|
||||
#include <string>
|
||||
|
||||
class StyleReader
|
||||
{
|
||||
public:
|
||||
StyleReader();
|
||||
|
||||
void SetCurrentStyle(MapStyle mapStyle);
|
||||
MapStyle GetCurrentStyle() const;
|
||||
bool IsCarNavigationStyle() const;
|
||||
|
||||
ReaderPtr<Reader> GetDrawingRulesReader() const;
|
||||
|
||||
ReaderPtr<Reader> GetResourceReader(std::string const & file, std::string_view density) const;
|
||||
ReaderPtr<Reader> GetDefaultResourceReader(std::string const & file) const;
|
||||
|
||||
private:
|
||||
std::atomic<MapStyle> m_mapStyle;
|
||||
};
|
||||
|
||||
extern StyleReader & GetStyleReader();
|
||||
Loading…
Add table
Add a link
Reference in a new issue