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

Function Save

libs/editor/editor_notes.cpp:111–117  ·  view source on GitHub ↗

Not thread-safe, use synchronization.

Source from the content-addressed store, hash-verified

109
110/// Not thread-safe, use synchronization.
111bool Save(std::string const & fileName, std::list<editor::Note> const & notes, uint32_t const uploadedNotesCount)
112{
113 pugi::xml_document xml;
114 SaveToXml(notes, xml, uploadedNotesCount);
115 return base::WriteToTempAndRenameToFile(
116 fileName, [&xml](std::string const & fileName) { return xml.save_file(fileName.data(), " "); });
117}
118} // namespace
119
120namespace editor

Callers 15

GetEditJournalMethod · 0.70
CreateNoteMethod · 0.70
UploadMethod · 0.70
SaveTransactionMethod · 0.70
AddMethod · 0.50
TryToSaveEditsMethod · 0.50
SaveWithLastMethod · 0.50
operator()Method · 0.50
SaveMethod · 0.50
SetFacilityMethod · 0.50
SetSchemeMethod · 0.50

Calls 3

SaveToXmlFunction · 0.85
dataMethod · 0.45

Tested by 1

SaveMethod · 0.40