MCPcopy Create free account
hub / github.com/OSVR/OSVR-Core / parse

Method parse

src/osvr/Server/ConfigureServer.cpp:68–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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];

Callers 3

loadConfigMethod · 0.45
addExternalDeviceMethod · 0.45
attemptLoadFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected