Repo created
This commit is contained in:
parent
4af19165ec
commit
68073add76
12458 changed files with 12350765 additions and 2 deletions
22
generator/osm2type.hpp
Normal file
22
generator/osm2type.hpp
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
#pragma once
|
||||
|
||||
#include "indexer/feature_data.hpp"
|
||||
#include "indexer/feature_visibility.hpp"
|
||||
|
||||
#include <cstdint>
|
||||
#include <functional>
|
||||
#include <optional>
|
||||
|
||||
struct OsmElement;
|
||||
|
||||
namespace ftype
|
||||
{
|
||||
using TypesFilterFnT = std::function<bool(uint32_t)>;
|
||||
using CalculateOriginFnT = std::function<std::optional<m2::PointD>(OsmElement const * p)>;
|
||||
|
||||
/// Get the types, name and layer for feature with the tree of tags.
|
||||
/// @param[in] calcOrg Not empty in generator, maybe empty in unit tests.
|
||||
void GetNameAndType(OsmElement * p, FeatureBuilderParams & params,
|
||||
TypesFilterFnT const & filterType = &feature::IsUsefulType,
|
||||
CalculateOriginFnT const & calcOrg = {});
|
||||
} // namespace ftype
|
||||
Loading…
Add table
Add a link
Reference in a new issue