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:
Diffstat (limited to 'indexer/ftypes_matcher.hpp')
-rw-r--r--indexer/ftypes_matcher.hpp20
1 files changed, 19 insertions, 1 deletions
diff --git a/indexer/ftypes_matcher.hpp b/indexer/ftypes_matcher.hpp
index 745abb9072..1f237eeaaa 100644
--- a/indexer/ftypes_matcher.hpp
+++ b/indexer/ftypes_matcher.hpp
@@ -216,11 +216,29 @@ public:
class IsEatChecker : public BaseChecker
{
- IsEatChecker();
public:
+ enum class Type
+ {
+ Cafe,
+ Bakery,
+ FastFood,
+ Restaurant,
+ Bar,
+ Pub,
+ Biergarten,
+
+ Count
+ };
+
DECLARE_CHECKER_INSTANCE(IsEatChecker);
std::vector<uint32_t> const & GetTypes() const { return m_types; }
+ Type GetType(uint32_t t) const;
+
+private:
+ IsEatChecker();
+
+ std::array<std::pair<uint32_t, Type>, base::Key(Type::Count)> m_sortedTypes;
};
class IsCuisineChecker : public BaseChecker