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

Method SaveBookmarkCategory

libs/map/bookmark_manager.cpp:3056–3065  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3054}
3055
3056bool BookmarkManager::SaveBookmarkCategory(kml::MarkGroupId groupId)
3057{
3058 CHECK_THREAD_CHECKER(m_threadChecker, ());
3059 auto collection = PrepareToSaveBookmarks({groupId});
3060 if (!collection || collection->empty())
3061 return false;
3062 auto const & file = collection->front().first;
3063 auto & kmlData = *collection->front().second;
3064 return SaveKmlFileByExt(kmlData, file);
3065}
3066
3067bool BookmarkManager::SaveBookmarkCategory(kml::MarkGroupId groupId, Writer & writer, KmlFileType fileType) const
3068{

Callers 2

UNIT_CLASS_TESTFunction · 0.80
UNIT_TESTFunction · 0.80

Calls 4

SaveKmlFileByExtFunction · 0.85
SaveKmlDataFunction · 0.85
frontMethod · 0.80
emptyMethod · 0.45

Tested by 2

UNIT_CLASS_TESTFunction · 0.64
UNIT_TESTFunction · 0.64