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

Method processRoutes

src/osvr/Server/ConfigureServer.cpp:265–277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

263
264 static const char ROUTES_KEY[] = "routes";
265 bool ConfigureServer::processRoutes() {
266 bool success = false;
267 Json::Value const &routes = m_data->getMember(ROUTES_KEY);
268 if (routes.isNull()) {
269 return success;
270 }
271 for (Json::ArrayIndex i = 0, e = routes.size(); i < e; ++i) {
272 const Json::Value thisRoute = routes[i];
273 m_server->addRoute(thisRoute.toStyledString());
274 success = true;
275 }
276 return success;
277 }
278
279 static const char ALIASES_KEY[] = "aliases";
280 bool ConfigureServer::processAliases() {

Callers 1

configureServerFromFileFunction · 0.80

Calls 2

sizeMethod · 0.45
addRouteMethod · 0.45

Tested by

no test coverage detected