MCPcopy Create free account
hub / github.com/MITK/MITK / LoadStandardSuggestions

Method LoadStandardSuggestions

Modules/Multilabel/src/mitkLabelSuggestionHelper.cpp:69–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67 LabelSuggestionHelper::~LabelSuggestionHelper() {}
68
69 void LabelSuggestionHelper::LoadStandardSuggestions()
70 {
71 auto suggestionPref = mitk::LabelSuggestionHelper::GetSuggestionPreferences();
72
73 auto json = GetStandardSuggesitions();
74
75 if (json.has_value())
76 {
77 this->ParseSuggestions(json.value());
78 }
79 else
80 { //no standard is defined. Suggestions should be empty
81 m_Suggestions.clear();
82 }
83 }
84
85 bool LabelSuggestionHelper::ParseSuggestions(const std::string& filePath, bool replaceExisting)
86 {

Callers 2

Calls 3

ParseSuggestionsMethod · 0.95
valueMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected