forked from organicmaps/organicmaps
[classif] Add BaseChecker::PrepareFeatureTypeToMatch().
This commit is contained in:
parent
f6c8d375cc
commit
e366fbec24
2 changed files with 8 additions and 0 deletions
|
@ -8,6 +8,12 @@
|
|||
namespace ftypes
|
||||
{
|
||||
|
||||
uint32_t BaseChecker::PrepareFeatureTypeToMatch(uint32_t featureType)
|
||||
{
|
||||
ftype::TruncValue(featureType, 2);
|
||||
return featureType;
|
||||
}
|
||||
|
||||
bool BaseChecker::IsMatched(uint32_t t) const
|
||||
{
|
||||
ftype::TruncValue(t, 2);
|
||||
|
|
|
@ -22,6 +22,8 @@ public:
|
|||
bool operator() (feature::TypesHolder const & types) const;
|
||||
bool operator() (FeatureType const & ft) const;
|
||||
bool operator() (vector<uint32_t> const & types) const;
|
||||
|
||||
static uint32_t PrepareFeatureTypeToMatch(uint32_t featureType);
|
||||
};
|
||||
|
||||
class IsStreetChecker : public BaseChecker
|
||||
|
|
Loading…
Add table
Reference in a new issue