Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Json::Reader reader;
- Json::Value root;
- string configData;
- configData = LoadFile(configFile);
- if (!reader.parse(configData, root)) {
- throw UException("failed to parse file");
- }
- ServerPort = root["server_port"].asUInt();
- Threads = root["threads"].asUInt();
- int sectionedValue = root["section"]["param"];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement