| 47 | namespace hierarchy |
| 48 | { |
| 49 | uint32_t GetMainType(FeatureParams::Types const & types) |
| 50 | { |
| 51 | auto const & airportChecker = ftypes::IsAirportChecker::Instance(); |
| 52 | auto it = base::FindIf(types, airportChecker); |
| 53 | if (it != std::cend(types)) |
| 54 | return *it; |
| 55 | |
| 56 | auto const & attractChecker = ftypes::AttractionsChecker::Instance(); |
| 57 | auto const type = attractChecker.GetBestType(types); |
| 58 | if (type != ftype::GetEmptyValue()) |
| 59 | return type; |
| 60 | |
| 61 | auto const & eatChecker = ftypes::IsEatChecker::Instance(); |
| 62 | it = base::FindIf(types, eatChecker); |
| 63 | if (it != std::cend(types)) |
| 64 | return *it; |
| 65 | |
| 66 | auto const & buildingPartChecker = ftypes::IsBuildingPartChecker::Instance(); |
| 67 | it = base::FindIf(types, buildingPartChecker); |
| 68 | return it != std::cend(types) ? *it : ftype::GetEmptyValue(); |
| 69 | } |
| 70 | |
| 71 | std::string HierarchyEntryToCsvString(HierarchyEntry const & entry, char delim) |
| 72 | { |
no test coverage detected