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:
authorr.kuznetsov <r.kuznetsov@corp.mail.ru>2017-04-28 17:17:18 +0300
committerr.kuznetsov <r.kuznetsov@corp.mail.ru>2017-05-19 15:22:26 +0300
commitfab109012e9b368ac52e34a2bc1cbfa3f9447412 (patch)
tree44179dc8e52f1c4f87af6fe3a8255048dcdd94d5 /indexer
parent36c2e85ebb2872e91564a382cefd824a6ab9f034 (diff)
Added special search marks for local ads and tinkoff objects
Diffstat (limited to 'indexer')
-rw-r--r--indexer/ftypes_matcher.cpp12
-rw-r--r--indexer/ftypes_matcher.hpp7
2 files changed, 19 insertions, 0 deletions
diff --git a/indexer/ftypes_matcher.cpp b/indexer/ftypes_matcher.cpp
index 30718a76ae..aedb052684 100644
--- a/indexer/ftypes_matcher.cpp
+++ b/indexer/ftypes_matcher.cpp
@@ -362,6 +362,18 @@ IsBookingChecker const & IsBookingChecker::Instance()
return inst;
}
+IsTinkoffChecker::IsTinkoffChecker()
+{
+ Classificator const & c = classif();
+ m_types.push_back(c.GetTypeByPath({"sponsored", "tinkoff"}));
+}
+
+IsTinkoffChecker const & IsTinkoffChecker::Instance()
+{
+ static IsTinkoffChecker const inst;
+ return inst;
+}
+
IsHotelChecker::IsHotelChecker()
{
Classificator const & c = classif();
diff --git a/indexer/ftypes_matcher.hpp b/indexer/ftypes_matcher.hpp
index 2c42cd1f22..2e4e3c9454 100644
--- a/indexer/ftypes_matcher.hpp
+++ b/indexer/ftypes_matcher.hpp
@@ -152,6 +152,13 @@ public:
static IsBookingChecker const & Instance();
};
+class IsTinkoffChecker : public BaseChecker
+{
+ IsTinkoffChecker();
+public:
+ static IsTinkoffChecker const & Instance();
+};
+
class IsHotelChecker : public BaseChecker
{
public: