blob: 0a6eef549f5596ecf34cbc4d3640ef283281a1a5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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 const & density) const;
ReaderPtr<Reader> GetDefaultResourceReader(std::string const & file) const;
private:
std::atomic<MapStyle> m_mapStyle;
};
extern StyleReader & GetStyleReader();
|