| 66 | class ConfigureServerData : boost::noncopyable { |
| 67 | public: |
| 68 | template <typename T> inline void parse(T &json) { |
| 69 | Json::Reader reader; |
| 70 | bool parsingSuccessful = reader.parse(json, root); |
| 71 | if (!parsingSuccessful) { |
| 72 | throw std::runtime_error("Error in parsing JSON: " + |
| 73 | reader.getFormattedErrorMessages()); |
| 74 | } |
| 75 | } |
| 76 | |
| 77 | Json::Value const &getMember(const char *memberName) const { |
| 78 | return root[memberName]; |
no outgoing calls
no test coverage detected