diff options
author | Arsentiy Milchakov <milcars@mapswithme.com> | 2019-06-07 16:16:15 +0300 |
---|---|---|
committer | Maksim Andrianov <maksimandrianov1@gmail.com> | 2019-06-11 15:25:19 +0300 |
commit | 7817da0d7fa4a78cce595d7897900b9ce75fa2eb (patch) | |
tree | 50ff8e6b15735d4987202f983def9c7f240896f5 /indexer | |
parent | be760427c86a6202dee140bb6ca5f09b07fff736 (diff) |
[generator][promo] The type sponsored-promo_catalog is added into cities.
Diffstat (limited to 'indexer')
-rw-r--r-- | indexer/ftypes_sponsored.cpp | 6 | ||||
-rw-r--r-- | indexer/ftypes_sponsored.hpp | 9 |
2 files changed, 15 insertions, 0 deletions
diff --git a/indexer/ftypes_sponsored.cpp b/indexer/ftypes_sponsored.cpp index 5d9bc6ead5..7b972d86b9 100644 --- a/indexer/ftypes_sponsored.cpp +++ b/indexer/ftypes_sponsored.cpp @@ -10,4 +10,10 @@ BaseSponsoredChecker::BaseSponsoredChecker(std::string const & sponsoredType) { m_types.push_back(classif().GetTypeByPath({"sponsored", sponsoredType})); } + +IsSponsoredChecker::IsSponsoredChecker() + : BaseChecker(1) +{ + m_types.push_back(classif().GetTypeByPath({"sponsored"})); +} } // namespace ftypes diff --git a/indexer/ftypes_sponsored.hpp b/indexer/ftypes_sponsored.hpp index bdc7bc2482..6e7f5ac24d 100644 --- a/indexer/ftypes_sponsored.hpp +++ b/indexer/ftypes_sponsored.hpp @@ -12,6 +12,15 @@ protected: explicit BaseSponsoredChecker(std::string const & sponsoredType); }; +class IsSponsoredChecker : public BaseChecker +{ +private: + IsSponsoredChecker(); + +public: + DECLARE_CHECKER_INSTANCE(IsSponsoredChecker); +}; + #define SPONSORED_CHECKER(ClassName, Category) \ class ClassName : public BaseSponsoredChecker { \ ClassName() : BaseSponsoredChecker(Category) {} \ |