Files
comaps/libs/indexer/map_style_reader.hpp
Alexander Borsuk 76ffc99abd New cpp folder structure
Signed-off-by: Alexander Borsuk <me@alex.bio>
2025-08-14 20:52:04 +07:00

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();