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

Function wrapRoute

apps/WrapRoute.h:38–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36// - none
37
38inline Json::Value wrapRoute(Json::Value currentRoute, Json::Value newLevel) {
39 namespace routing_keys = osvr::common::routing_keys;
40 Json::Value ret = currentRoute;
41 Json::Value prevSource = currentRoute[routing_keys::source()];
42 ret[routing_keys::source()] = newLevel;
43 ret[routing_keys::source()][routing_keys::child()] = prevSource;
44 return ret;
45}
46
47#endif // INCLUDED_WrapRoute_h_GUID_CC93B3E1_2C30_42AE_9880_FE43AD40AB81

Callers 1

mainFunction · 0.85

Calls 2

sourceFunction · 0.85
childFunction · 0.85

Tested by

no test coverage detected