MCPcopy Create free account
hub / github.com/comaps/comaps / GetFileNameForExport

Function GetFileNameForExport

libs/map/bookmark_manager.cpp:87–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85};
86
87std::string GetFileNameForExport(BookmarkManager::KMLDataCollectionPtr::element_type::value_type const & kmlToShare)
88{
89 std::string fileName = RemoveInvalidSymbols(kml::GetDefaultStr(kmlToShare.second->m_categoryData.m_name));
90 if (fileName.empty())
91 fileName = base::GetNameFromFullPathWithoutExt(kmlToShare.first);
92 return fileName;
93}
94
95BookmarkManager::SharingResult ExportSingleFileKml(
96 BookmarkManager::KMLDataCollectionPtr::element_type::value_type const & kmlToShare)

Callers 3

ExportSingleFileKmlFunction · 0.85
ExportSingleFileGpxFunction · 0.85
ExportMultipleFilesFunction · 0.85

Calls 4

RemoveInvalidSymbolsFunction · 0.85
GetDefaultStrFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected