Home
last modified time | relevance | path

Searched refs:JsonCfg (Results 1 - 9 of 9) sorted by relevance

/base/security/security_guard/services/config_manager/src/
H A Dmodel_cfg_marshalling.cpp121 JsonCfg::Unmarshal(modelId, jsonObj, MODEL_CFG_MODEL_ID_KEY); in from_json()
127 JsonCfg::Unmarshal(modelCfg.path, jsonObj, MODEL_CFG_PATH_KEY); in from_json()
128 JsonCfg::Unmarshal(modelCfg.format, jsonObj, MODEL_CFG_FORMAT_KEY); in from_json()
129 JsonCfg::Unmarshal(modelCfg.startMode, jsonObj, MODEL_CFG_START_MODE_KEY); in from_json()
132 JsonCfg::Unmarshal(preLoads, jsonObj, MODEL_CFG_PRELOAD_KEY); in from_json()
142 JsonCfg::Unmarshal(eventList, jsonObj, MODEL_CFG_EVENT_LIST_KEY); in from_json()
150 JsonCfg::Unmarshal(modelCfg.permissions, jsonObj, MODEL_CFG_PERMISSIONS_KEY); in from_json()
151 JsonCfg::Unmarshal(modelCfg.dbTable, jsonObj, MODEL_CFG_DB_TABLE_KEY); in from_json()
152 JsonCfg::Unmarshal(modelCfg.runningCntl, jsonObj, MODEL_CFG_RUNNING_CNTL_KEY); in from_json()
153 JsonCfg in from_json()
[all...]
H A Devent_config.cpp121 bool success = JsonCfg::Unmarshal<EventCfg>(configs, jsonObj, EVENT_CFG_KEY); in ParseEventConfig()
H A Dmodel_config.cpp115 return JsonCfg::Unmarshal<ModelCfg>(configs, jsonObj, MODEL_CFG_KEY); in ParseModelConfig()
/base/security/security_guard/services/security_collector/src/
H A Dcollector_cfg_marshalling.cpp41 SecurityGuard::JsonCfg::Unmarshal(eventList, jsonObj, EVENT_ID); in from_json()
49 SecurityGuard::JsonCfg::Unmarshal(moduleCfg.moduleId, jsonObj, MODULE_ID); in from_json()
51 SecurityGuard::JsonCfg::Unmarshal(moduleCfg.moduleName, jsonObj, MODULE_NAME); in from_json()
52 SecurityGuard::JsonCfg::Unmarshal(moduleCfg.modulePath, jsonObj, MODULE_PATH); in from_json()
53 SecurityGuard::JsonCfg::Unmarshal(moduleCfg.version, jsonObj, MODULE_VERSION); in from_json()
54 SecurityGuard::JsonCfg::Unmarshal(moduleCfg.collectorType, jsonObj, MODULE_COLLECTOR_TYPE); in from_json()
H A Ddata_collection.cpp201 if (!SecurityGuard::JsonCfg::Unmarshal<ModuleCfgSt>(moduleCfgs, json, MODULES)) { in GetCollectorPath()
250 if (!SecurityGuard::JsonCfg::Unmarshal<ModuleCfgSt>(moduleCfgs, json, MODULES)) { in GetCollectorType()
/base/security/security_guard/frameworks/common/json/src/
H A Djson_cfg.cpp19 bool JsonCfg::Unmarshal(uint64_t &data, nlohmann::json jsonObj, std::string key) in Unmarshal()
26 bool JsonCfg::Unmarshal(int64_t &data, nlohmann::json jsonObj, std::string key) in Unmarshal()
33 bool JsonCfg::Unmarshal(uint32_t &data, nlohmann::json jsonObj, std::string key) in Unmarshal()
40 bool JsonCfg::Unmarshal(int32_t &data, nlohmann::json jsonObj, std::string key) in Unmarshal()
47 bool JsonCfg::Unmarshal(std::string &data, nlohmann::json jsonObj, std::string key) in Unmarshal()
54 bool JsonCfg::Unmarshal(std::vector<int32_t> &data, nlohmann::json jsonObj, std::string key) in Unmarshal()
67 bool JsonCfg::Unmarshal(std::vector<std::string> &data, nlohmann::json jsonObj, std::string key) in Unmarshal()
80 bool JsonCfg::Unmarshal(std::vector<int64_t> &data, nlohmann::json jsonObj, std::string key) in Unmarshal()
/base/security/security_guard/test/unittest/config_manager/src/
H A Dsecurity_guard_config_manager_test.cpp712 EXPECT_TRUE(JsonCfg::Unmarshal(i32Data, jsonOb, "detectMaxRecord")); in HWTEST_F()
713 EXPECT_FALSE(JsonCfg::Unmarshal(i32Data, jsonOb, "releaseTime")); in HWTEST_F()
714 EXPECT_FALSE(JsonCfg::Unmarshal(i32Data, jsonOb, "isexist")); in HWTEST_F()
716 EXPECT_TRUE(JsonCfg::Unmarshal(u32Data, jsonOb, "detectMaxRecord")); in HWTEST_F()
717 EXPECT_FALSE(JsonCfg::Unmarshal(u32Data, jsonOb, "releaseTime")); in HWTEST_F()
718 EXPECT_FALSE(JsonCfg::Unmarshal(u32Data, jsonOb, "isexist")); in HWTEST_F()
720 EXPECT_TRUE(JsonCfg::Unmarshal(data, jsonOb, "detectMaxRecord")); in HWTEST_F()
721 EXPECT_FALSE(JsonCfg::Unmarshal(data, jsonOb, "releaseTime")); in HWTEST_F()
722 EXPECT_FALSE(JsonCfg::Unmarshal(data, jsonOb, "isexist")); in HWTEST_F()
724 EXPECT_TRUE(JsonCfg in HWTEST_F()
[all...]
/base/security/security_guard/test/fuzztest/config_manager/configmanager_fuzzer/
H A Dconfig_manager_fuzzer.cpp129 JsonCfg::Unmarshal(uint64, jsonObj, string); in JsonConfigFuzzTest()
133 JsonCfg::Unmarshal(int64, jsonObj1, string); in JsonConfigFuzzTest()
137 JsonCfg::Unmarshal(vec32, jsonObj2, string); in JsonConfigFuzzTest()
141 JsonCfg::Unmarshal(vec64, jsonObj3, string); in JsonConfigFuzzTest()
/base/security/security_guard/frameworks/common/json/include/
H A Djson_cfg.h32 class JsonCfg { class
65 JsonCfg() = default;

Completed in 4 milliseconds