MCPcopy Create free account
hub / github.com/Samsung/UTopia / load

Method load

lib/apiloader/APIJsonLoader.cpp:13–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11}
12
13const std::set<std::string> APIJsonLoader::load() {
14 std::set<std::string> APINames;
15 Json::Value PublicAPIJson =
16 util::parseJsonFileToJsonValue(this->JsonFilePath.c_str());
17
18 assert(PublicAPIJson && "Invalid Json");
19
20 for (std::string &LibName : PublicAPIJson.getMemberNames()) {
21 if (isDeprecatedLibrary(LibName)) {
22 continue;
23 }
24
25 for (Json::Value &FuncName : PublicAPIJson[LibName]) {
26 APINames.insert(FuncName.asString());
27 }
28 }
29 return APINames;
30};
31
32} // namespace ftg

Callers

nothing calls this directly

Calls 3

parseJsonFileToJsonValueFunction · 0.85
getMemberNamesMethod · 0.80
asStringMethod · 0.80

Tested by

no test coverage detected