Home
last modified time | relevance | path

Searched refs:jsonFile (Results 1 – 25 of 34) sorted by relevance

12

/openbmc/ibm-logging/
H A Dpolicy_table.cpp34 Table::Table(const std::string& jsonFile) in Table() argument
36 if (fs::exists(jsonFile)) in Table()
38 load(jsonFile); in Table()
43 entry("FILE=%s", jsonFile.c_str())); in Table()
47 void Table::load(const std::string& jsonFile) in load() argument
51 std::ifstream file{jsonFile}; in load()
75 entry("FILE=%s", jsonFile.c_str()), in load()
H A Dpolicy_table.hpp59 explicit Table(const std::string& jsonFile);
122 void load(const std::string& jsonFile);
/openbmc/libbej/test/
H A Dbej_decoder_test.cpp28 .jsonFile = "../test/json/drive_oem.json",
36 .jsonFile = "../test/json/circuit.json",
44 .jsonFile = "../test/json/storage.json",
52 .jsonFile = "../test/json/dummysimple.json",
H A Dbej_encoder_test.cpp34 .jsonFile = "../test/json/dummysimple.json",
42 .jsonFile = "../test/json/drive_oem.json",
50 .jsonFile = "../test/json/chassis.json",
/openbmc/openbmc/meta-ibm/recipes-phosphor/ipmi/
H A Dphosphor-ipmi-config.bbappend42 with open(file, "r+") as jsonFile:
43 data = json.load(jsonFile)
44 jsonFile.seek(0)
45 jsonFile.truncate()
47 json.dump(data, jsonFile)
/openbmc/phosphor-state-manager/
H A Dsystemd_service_parser.cpp9 for (const auto& jsonFile : filePaths) in parseServiceFiles() local
13 std::cout << "Parsing input service file " << jsonFile << std::endl; in parseServiceFiles()
15 std::ifstream fileStream(jsonFile); in parseServiceFiles()
H A Dsystemd_target_parser.cpp43 for (const auto& jsonFile : filePaths) in parseFiles() local
47 std::cout << "Parsing input file " << jsonFile << std::endl; in parseFiles()
49 std::ifstream fileStream(jsonFile); in parseFiles()
/openbmc/phosphor-pid-control/buildjson/
H A Dbuildjson.cpp49 std::ifstream jsonFile(path); in parseValidateJson() local
50 if (!jsonFile.is_open()) in parseValidateJson()
55 auto data = json::parse(jsonFile, nullptr, false); in parseValidateJson()
/openbmc/google-ipmi-sys/bifurcation/
H A Dbifurcation_static.cpp49 std::ifstream jsonFile(bifurcationFile.c_str()); in getBifurcation() local
50 if (!jsonFile.is_open()) in getBifurcation()
60 jsonData = nlohmann::json::parse(jsonFile, nullptr, false); in getBifurcation()
/openbmc/phosphor-ipmi-flash/bmc/
H A Dbuildjson.hpp72 std::ifstream jsonFile(path); in buildHandlerConfigs() local
73 if (!jsonFile.is_open()) in buildHandlerConfigs()
80 auto data = nlohmann::json::parse(jsonFile, nullptr, false); in buildHandlerConfigs()
/openbmc/pldm/libpldmresponder/
H A Dfru_parser.cpp47 std::ifstream jsonFile(masterJsonPath); in setupDefaultDBusLookup() local
48 auto data = Json::parse(jsonFile, nullptr, false); in setupDefaultDBusLookup()
116 std::ifstream jsonFile(file.path()); in setupFruRecordMap() local
117 auto data = Json::parse(jsonFile, nullptr, false); in setupFruRecordMap()
H A Dpdr_utils.hpp98 std::ifstream jsonFile(path); in readJson() local
99 if (!jsonFile.is_open()) in readJson()
105 return Json::parse(jsonFile); in readJson()
H A Devent_parser.cpp37 std::ifstream jsonFile(file.path()); in StateSensorHandler() local
39 auto data = Json::parse(jsonFile, nullptr, false); in StateSensorHandler()
/openbmc/libbej/test/include/
H A Dbej_common_test.hpp20 const char* jsonFile; member
58 std::ifstream jsonInput(files.jsonFile); in loadInputs()
61 std::cerr << "Cannot open file: " << files.jsonFile << "\n"; in loadInputs()
/openbmc/google-ipmi-sys/
H A Dutil.cpp42 std::ifstream jsonFile(file); in parseConfig() local
43 if (!jsonFile.is_open()) in parseConfig()
49 auto data = nlohmann::json::parse(jsonFile, nullptr, false); in parseConfig()
/openbmc/pldm/oem/ibm/libpldmresponder/
H A Dfile_table.cpp17 std::ifstream jsonFile(fileTableConfigPath); in FileTable() local
18 if (!jsonFile.is_open()) in FileTable()
25 auto data = Json::parse(jsonFile, nullptr, false); in FileTable()
/openbmc/phosphor-host-ipmid/app/
H A Dchannel.cpp43 std::ifstream jsonFile(configFile); in getCipherRecords() local
44 if (!jsonFile.is_open()) in getCipherRecords()
50 auto data = Json::parse(jsonFile, nullptr, false); in getCipherRecords()
/openbmc/phosphor-host-ipmid/user_channel/
H A Dcipher_mgmt.cpp97 std::ifstream jsonFile(csFileName); in readCSPrivilegeLevels() local
98 if (!jsonFile.good()) in readCSPrivilegeLevels()
107 data = Json::parse(jsonFile, nullptr, false); in readCSPrivilegeLevels()
/openbmc/phosphor-health-monitor/
H A Dhealth_metric_config.cpp116 std::ifstream jsonFile(configFile); in parseConfigFile() local
117 if (!jsonFile.is_open()) in parseConfigFile()
125 return json::parse(jsonFile, nullptr, true); in parseConfigFile()
/openbmc/ibm-logging/test/
H A Dtest_policy.cpp211 jsonFile = jsonDir / "policy.json"; in SetUp()
213 std::ofstream f{jsonFile}; in SetUp()
223 fs::path jsonFile; member in PolicyTableTest
231 policy::Table policy{jsonFile}; in TEST_F()
275 policy::Table policy{jsonFile}; in TEST_F()
/openbmc/phosphor-net-ipmid/command/
H A Dchannel_auth.cpp121 std::ifstream jsonFile(configFile); in getCipherRecords() local
122 if (!jsonFile.is_open()) in getCipherRecords()
129 auto data = Json::parse(jsonFile, nullptr, false); in getCipherRecords()
/openbmc/phosphor-led-manager/manager/
H A Djson-parser.hpp42 std::ifstream jsonFile(path); in readJson() local
43 return Json::parse(jsonFile); in readJson()
/openbmc/pldm/host-bmc/
H A Dutils.cpp226 std::ifstream jsonFile(filePath); in parseEntityMap() local
227 auto data = Json::parse(jsonFile); in parseEntityMap()
/openbmc/phosphor-fan-presence/monitor/
H A Dfan_error.cpp186 fs::path jsonFile{tmpFile}; in makeJsonFFDCFile() local
187 return std::make_unique<FFDCFile>(jsonFile); in makeJsonFFDCFile()
/openbmc/phosphor-led-manager/manager/lamptest/
H A Dlamptest.cpp339 std::ifstream jsonFile(path); in getPhysicalLEDNamesFromJson() local
340 auto json = Json::parse(jsonFile); in getPhysicalLEDNamesFromJson()

12