mirror of
https://codeberg.org/comaps/comaps
synced 2026-01-01 18:44:02 +00:00
committed by
Konstantin Pastbin
parent
c9cbb64f12
commit
76ffc99abd
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();
|
||||
Reference in New Issue
Block a user