Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlya Zverev <zverik@textual.ru>2017-03-30 12:17:22 +0300
committerIlya Zverev <zverik@textual.ru>2017-04-05 14:06:04 +0300
commit008e27dee3830c2dab0383773918e6f63ad4a9e7 (patch)
treeeeda7340d013e8774914268f0d7299c9621fdd76 /indexer/road_shields_parser.hpp
parent60a583044afd78f89f4dfab29d356f4b86f16019 (diff)
[shields] Process road networks on relations
Diffstat (limited to 'indexer/road_shields_parser.hpp')
-rw-r--r--indexer/road_shields_parser.hpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/indexer/road_shields_parser.hpp b/indexer/road_shields_parser.hpp
index a0b8a5405e..9133ab083d 100644
--- a/indexer/road_shields_parser.hpp
+++ b/indexer/road_shields_parser.hpp
@@ -10,6 +10,7 @@ namespace ftypes
enum class RoadShieldType
{
Default = 0,
+ Generic_White, // The same as default, for semantics
Generic_Green,
Generic_Blue,
Generic_Red,
@@ -17,6 +18,7 @@ enum class RoadShieldType
US_Interstate,
US_Highway,
UK_Highway,
+ Hidden,
Count
};
@@ -33,7 +35,14 @@ struct RoadShield
RoadShield(RoadShieldType const & type, std::string const & name, std::string const & additionalText)
: m_type(type), m_name(name), m_additionalText(additionalText)
{}
+
+ inline bool operator<(RoadShield const & other) const
+ {
+ return m_type < other.m_type || m_name < other.m_name || m_additionalText < other.m_additionalText;
+ }
};
-std::vector<RoadShield> GetRoadShields(FeatureType const & f);
+std::set<RoadShield> GetRoadShields(FeatureType const & f);
+std::string DebugPrint(RoadShieldType shieldType);
+std::string DebugPrint(RoadShield const & shield);
} // namespace ftypes