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

Function mergeIdenticalInterfaces

src/osvr/Common/NormalizeDeviceDescriptor.cpp:63–65  ·  view source on GitHub ↗

@todo when appending interfaces you might encounter that there are independent interfaces that are same as subinterfaces for example, eyetracker device and tracker device plugin eyetracker breaks down into 4 interfaces including tracker so to avoid replacing tracker data, we need to safely merge them

Source from the content-addressed store, hash-verified

61 /// eyetracker breaks down into 4 interfaces including tracker
62 /// so to avoid replacing tracker data, we need to safely merge them
63 void mergeIdenticalInterfaces(Json::Value &existingIface,
64 Json::Value &newIface,
65 std::string const &detail) {}
66
67 /// @brief appends json value for a given string
68 void appendCurrentIface(Json::Value &augInterface,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected