实现策略配置功能

This commit is contained in:
lixiaoyuan
2025-08-28 18:42:37 +08:00
parent 8f6c83147b
commit dda905cda0
47 changed files with 1311 additions and 863 deletions

View File

@@ -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>>();
}
}
};