static void DumpNameChangedDescription(size_t& lineCount, const osmscout::RouteDescription::NameChangedDescriptionRef& nameChangedDescription) { NextLine(lineCount); std::cout << "Way changes name"; if (nameChangedDescription->GetOriginDesccription().Valid()) { std::cout << " from "; std::cout << "'" << nameChangedDescription->GetOriginDesccription()->GetDescription() << "'"; } std::cout << " to '"; std::cout << nameChangedDescription->GetTargetDesccription()->GetDescription(); std::cout << "'" << std::endl; }
void RoutingDialog::DumpNameChangedDescription(const osmscout::RouteDescription::NameChangedDescriptionRef& nameChangedDescription) { RouteStep changed; changed.description="Way changes name"; if (nameChangedDescription->GetOriginDesccription().Valid()) { changed.description+=" from '"; changed.description+=QString::fromUtf8(nameChangedDescription->GetOriginDesccription()->GetDescription().c_str()); changed.description+="'"; } changed.description+="' to '"; changed.description+=QString::fromUtf8(nameChangedDescription->GetTargetDesccription()->GetDescription().c_str()); changed.description+="'"; route.routeSteps.push_back(changed); }
void RoutingListModel::DumpNameChangedDescription(const osmscout::RouteDescription::NameChangedDescriptionRef& nameChangedDescription) { RouteStep changed; changed.description=""; if (nameChangedDescription->GetOriginDesccription()) { changed.description+="Way changes name<br/>"; changed.description+="from '"; changed.description+=QString::fromUtf8(nameChangedDescription->GetOriginDesccription()->GetDescription().c_str()); changed.description+="'<br/>"; changed.description+=" to '"; changed.description+=QString::fromUtf8(nameChangedDescription->GetTargetDesccription()->GetDescription().c_str()); changed.description+="'"; } else { changed.description+="Way changes name<br/>"; changed.description+="to '"; changed.description+=QString::fromUtf8(nameChangedDescription->GetTargetDesccription()->GetDescription().c_str()); changed.description+="'"; } route.routeSteps.push_back(changed); }