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

Function appendCurrentIface

src/osvr/Common/NormalizeDeviceDescriptor.cpp:68–80  ·  view source on GitHub ↗

@brief appends json value for a given string

Source from the content-addressed store, hash-verified

66
67 /// @brief appends json value for a given string
68 void appendCurrentIface(Json::Value &augInterface,
69 Json::Value &currInterface) {
70
71 for (auto &detail : currInterface.getMemberNames()) {
72 Json::Value const &obj = augInterface[detail];
73 if (obj.isObject()) {
74 /// @todo mergeIdenticalInterfaces(currInterface, augInterface,
75 /// detail)
76 } else {
77 augInterface[detail] = currInterface[detail];
78 }
79 }
80 }
81
82 /// @brief For eyetracker, it will add the following interfaces to the
83 /// descriptor provided that they are set to true:

Callers 1

normalizeForEyeTrackerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected