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

Method fromJson

lib/propanalysis/FilePathAnalysisReport.cpp:12–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10}
11
12bool FilePathAnalysisReport::fromJson(Json::Value Report) {
13 try {
14 if (!Report.isMember(getReportType()))
15 return false;
16
17 auto FilePathReport = Report[getReportType()];
18 for (auto MemberName : FilePathReport.getMemberNames()) {
19 set(MemberName, FilePathReport[MemberName].asBool());
20 }
21 } catch (Json::Exception &E) {
22 return false;
23 }
24 return true;
25}
26
27const std::string FilePathAnalysisReport::getReportType() const {
28 return "FilePath";

Callers

nothing calls this directly

Calls 3

isMemberMethod · 0.80
getMemberNamesMethod · 0.80
asBoolMethod · 0.80

Tested by

no test coverage detected