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

Method m_recurse

src/osvr/Common/ProcessDeviceDescriptor.cpp:101–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99 relativeSemanticPath, ALIASPRIORITY_SEMANTICROUTE);
100 }
101 void m_recurse(Json::Value const &currentLevel,
102 std::string const &relativeSemanticPath) {
103 if (currentLevel.isString()) {
104 m_flag += m_add(currentLevel, relativeSemanticPath);
105 return;
106 }
107 if (currentLevel.isObject()) {
108 Json::Value target = currentLevel[TARGET_KEY];
109 if (!target.isNull()) {
110 m_flag += m_add(target, relativeSemanticPath);
111 }
112
113 for (auto const &memberName :
114 currentLevel.getMemberNames()) {
115 if (TARGET_KEY == memberName) {
116 continue;
117 }
118 m_recurse(currentLevel[memberName],
119 relativeSemanticPath + getPathSeparator() +
120 memberName);
121 }
122 }
123 }
124 PathNode &m_devNode;
125 util::Flag m_flag;
126 };

Callers

nothing calls this directly

Calls 1

getPathSeparatorFunction · 0.85

Tested by

no test coverage detected