Files
comaps/indexer/drules_selector.hpp
Konstantin Pastbin e3e4a1985a Organic Maps sources as of 02.04.2025 (fad26bbf22ac3da75e01e62aa01e5c8e11861005)
To expand with full Organic Maps and Maps.ME commits history run:
  git remote add om-historic [om-historic.git repo url]
  git fetch --tags om-historic
  git replace squashed-history historic-commits
2025-05-08 21:10:51 +07:00

30 lines
765 B
C++

#pragma once
#include "indexer/feature.hpp"
#include <memory>
#include <string>
#include <vector>
namespace drule
{
// Runtime feature style selector absract interface.
class ISelector
{
public:
virtual ~ISelector() = default;
// If ISelector.Test returns true then style is applicable for the feature,
// otherwise, if ISelector.Test returns false, style cannot be applied to the feature.
virtual bool Test(FeatureType & ft, int zoom) const = 0;
};
// Factory method which builds ISelector from a string.
std::unique_ptr<ISelector> ParseSelector(std::string const & str);
// Factory method which builds composite ISelector from a set of string.
std::unique_ptr<ISelector> ParseSelector(std::vector<std::string> const & strs);
} // namespace drule