| 397 | } |
| 398 | |
| 399 | void RoadAccessCollector::CollectFeature(feature::FeatureBuilder const & fb, OsmElement const & elem) |
| 400 | { |
| 401 | /// @todo Note that here we take into account only classifier recognized barriers (valid FeatureBuilder). |
| 402 | /// Can't say for sure is it good or not, but as it is. |
| 403 | |
| 404 | for (auto const & tag : elem.m_tags) |
| 405 | if (kIgnoreAccess.count(tag)) |
| 406 | return; |
| 407 | |
| 408 | for (auto & p : m_tagProcessors) |
| 409 | { |
| 410 | p.Process(elem); |
| 411 | p.ProcessConditional(elem); |
| 412 | } |
| 413 | |
| 414 | if (routing::IsRoadWay(fb)) |
| 415 | { |
| 416 | m_roads.AddWay(elem); |
| 417 | |
| 418 | for (auto & p : m_tagProcessors) |
| 419 | p.SetIgnoreBarriers(elem); |
| 420 | } |
| 421 | } |
| 422 | |
| 423 | /// @see correspondent ReadRoadAccess. |
| 424 | void RoadAccessCollector::Save() |
nothing calls this directly
no test coverage detected