MCPcopy Create free account
hub / github.com/awawa-dev/HyperHDR / readFile

Function readFile

sources/json-utils/JsonUtils.cpp:12–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10namespace JsonUtils {
11
12 bool readFile(const QString& path, QJsonObject& obj, Logger* log, bool ignError)
13 {
14 QString data;
15 if (!FileUtils::readFile(path, data, log, ignError))
16 return false;
17
18 if (!parse(path, data, obj, log))
19 return false;
20
21 return true;
22 }
23
24 bool readSchema(const QString& path, QJsonObject& obj, Logger* log)
25 {

Callers 2

readSchemaFunction · 0.70
validateFunction · 0.70

Calls 1

parseFunction · 0.85

Tested by

no test coverage detected