Repo created

This commit is contained in:
Fr4nz D13trich 2025-11-22 13:58:55 +01:00
parent 4af19165ec
commit 68073add76
12458 changed files with 12350765 additions and 2 deletions

22
generator/osm2type.hpp Normal file
View 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