mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 04:53:36 +00:00
To expand with full Organic Maps and Maps.ME commits history run: git remote add om-historic [om-historic.git repo url] git fetch --tags om-historic git replace squashed-history historic-commits
29 lines
586 B
C++
29 lines
586 B
C++
#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();
|