Advertisement
Guest User

Untitled

a guest
Oct 28th, 2013
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.39 KB | None | 0 0
  1.         Json::Reader reader;
  2.         Json::Value root;
  3.         string configData;
  4.  
  5.         configData = LoadFile(configFile);
  6.         if (!reader.parse(configData, root)) {
  7.             throw UException("failed to parse file");
  8.         }
  9.  
  10.         ServerPort = root["server_port"].asUInt();
  11.         Threads = root["threads"].asUInt();
  12.         int sectionedValue = root["section"]["param"];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement