Esempio n. 1
0
IVehicleModel::RoadAvailability BicycleModel::GetRoadAvailability(feature::TypesHolder const & types) const
{
  if (types.Has(m_yesBicycleType))
    return RoadAvailability::Available;
  if (types.Has(m_noBicycleType))
    return RoadAvailability::NotAvailable;
  return RoadAvailability::Unknown;
}
Esempio n. 2
0
IVehicleModel::RoadAvailability PedestrianModel::GetRoadAvailability(feature::TypesHolder const & types) const
{
  if (types.Has(m_yesFootType))
    return RoadAvailability::Available;
  if (types.Has(m_noFootType))
    return RoadAvailability::NotAvailable;
  return RoadAvailability::Unknown;
}
Esempio n. 3
0
// private
EditableProperties Editor::GetEditablePropertiesForTypes(feature::TypesHolder const & types) const
{
    editor::TypeAggregatedDescription desc;
    if (m_config.Get()->GetTypeDescription(types.ToObjectNames(), desc))
        return {desc.GetEditableFields(), desc.IsNameEditable(), desc.IsAddressEditable()};
    return {};
}
Esempio n. 4
0
bool VehicleModel::IsOneWay(feature::TypesHolder const & types) const
{
  return types.Has(m_onewayType);
}
Esempio n. 5
0
bool BicycleModel::IsBicycleBidir(feature::TypesHolder const & types) const
{
  return types.Has(m_bidirBicycleType);
}
Esempio n. 6
0
bool BicycleModel::IsYesBicycle(feature::TypesHolder const & types) const
{
  return find(types.begin(), types.end(), m_yesBicycleType) != types.end();
}