MCPcopy Create free account
hub / github.com/computationalpathologygroup/ASAP / saveRepositoryToFile

Method saveRepositoryToFile

annotation/AnnotationService.cpp:43–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43bool AnnotationService::saveRepositoryToFile(const std::string& source) {
44 if (source.rfind(std::string(".xml")) != source.npos) {
45 _repo = std::make_shared<XmlRepository>(_list);
46 _repo->setSource(source);
47 }
48 else if (source.rfind(std::string(".ndpa")) != source.npos) {
49 _repo = std::make_shared<NDPARepository>(_list);
50 _repo->setSource(source);
51 }
52 return _repo->save();
53}
54
55bool AnnotationService::load() {
56 if (_repo) {

Callers 1

onSaveButtonPressedMethod · 0.80

Calls 2

setSourceMethod · 0.80
saveMethod · 0.45

Tested by

no test coverage detected