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

Function createJSONAlias

src/osvr/Common/AliasProcessor.cpp:206–218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

204 }
205
206 Json::Value createJSONAlias(std::string const &path,
207 Json::Value const &destination) {
208 Json::Value ret{Json::nullValue};
209 if (path.empty()) {
210 return ret;
211 }
212 if (destination.isNull()) {
213 return ret;
214 }
215 ret = Json::objectValue;
216 ret[path] = destination;
217 return ret;
218 }
219
220 Json::Value convertRouteToAlias(Json::Value const &val) {
221 Json::Value ret{val};

Callers 1

convertRouteToAliasFunction · 0.70

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected