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

Method Parse

Modules/CppMicroServices/src/usModuleManifest.cpp:95–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93}
94
95void ModuleManifest::Parse(std::istream& is)
96{
97 json root;
98
99 try
100 {
101 root = json::parse(is);
102 }
103 catch (const json::exception& e)
104 {
105 throw std::runtime_error(e.what());
106 }
107
108 if (!root.is_object())
109 {
110 throw std::runtime_error("The Json root element must be an object.");
111 }
112
113 ParseJsonObject(root, m_Properties);
114}
115
116bool ModuleManifest::Contains(const std::string& key) const
117{

Callers 13

DoReadMethod · 0.45
ModulePrivateMethod · 0.45
DoReadMethod · 0.45
DoReadMethod · 0.45
LoadBehaviorMethod · 0.45
XML2EventParserMethod · 0.45
EventConfigMethod · 0.45
AddConfigMethod · 0.45

Calls 2

ParseJsonObjectFunction · 0.85
whatMethod · 0.80

Tested by

no test coverage detected