mirror of
https://gitee.com/js-yhsec/energy_storage.git
synced 2026-05-28 11:19:24 +08:00
实现策略配置功能
This commit is contained in:
@@ -91,6 +91,15 @@ public:
|
||||
std::cout << "JSON read error: " << e.what() << std::endl;
|
||||
}
|
||||
}
|
||||
|
||||
static void parse(std::string jsonstr, std::vector<std::string>& vd)
|
||||
{
|
||||
NJsonNode jsonroot;
|
||||
if (NJson::parse(jsonstr, jsonroot))
|
||||
{
|
||||
vd = jsonroot.get<std::vector<std::string>>();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user