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.hpp27
1 files changed, 27 insertions, 0 deletions
diff --git a/indexer/ftypes_matcher.hpp b/indexer/ftypes_matcher.hpp
index 1f237eeaaa..9774074d0f 100644
--- a/indexer/ftypes_matcher.hpp
+++ b/indexer/ftypes_matcher.hpp
@@ -10,6 +10,7 @@
#include <cstdint>
#include <functional>
#include <initializer_list>
+#include <set>
#include <string>
#include <type_traits>
#include <utility>
@@ -41,6 +42,7 @@ public:
bool operator()(feature::TypesHolder const & types) const;
bool operator()(FeatureType & ft) const;
bool operator()(std::vector<uint32_t> const & types) const;
+ bool operator()(uint32_t type) const { return IsMatched(type); }
static uint32_t PrepareToMatch(uint32_t type, uint8_t level);
@@ -152,6 +154,31 @@ public:
DECLARE_CHECKER_INSTANCE(IsBuildingChecker);
};
+class IsPoiChecker : public BaseChecker
+{
+ IsPoiChecker();
+public:
+ static std::set<std::string> const kPoiTypes;
+
+ DECLARE_CHECKER_INSTANCE(IsPoiChecker);
+};
+
+class WikiChecker : public BaseChecker
+{
+ WikiChecker();
+public:
+ static std::set<std::pair<std::string, std::string>> const kTypesForWiki;
+
+ DECLARE_CHECKER_INSTANCE(WikiChecker);
+};
+
+class IsPlaceChecker : public BaseChecker
+{
+ IsPlaceChecker();
+public:
+ DECLARE_CHECKER_INSTANCE(IsPlaceChecker);
+};
+
class IsBridgeChecker : public BaseChecker
{
virtual bool IsMatched(uint32_t type) const override;