MCPcopy Create free account
hub / github.com/YACReader/yacreader / removeLibrary

Method removeLibrary

YACReaderLibraryServer/console_ui_library_creator.cpp:105–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104
105void ConsoleUILibraryCreator::removeLibrary(const QString &name)
106{
107 // TODO add error handling
108 YACReaderLibraries yacreaderLibraries;
109 yacreaderLibraries.load();
110 if (!yacreaderLibraries.contains(name)) {
111 std::cout << "No Library named \"" << name.toUtf8().constData() << "\" in database." << std::endl;
112 return;
113 }
114 yacreaderLibraries.remove(name);
115 yacreaderLibraries.save();
116
117 std::cout << "Library removed : " << name.toUtf8().constData() << std::endl;
118}
119
120void ConsoleUILibraryCreator::rescanXMLInfoLibrary(const QString &path)
121{

Callers 1

removeLibraryFunction · 0.45

Calls 4

loadMethod · 0.45
containsMethod · 0.45
removeMethod · 0.45
saveMethod · 0.45

Tested by

no test coverage detected