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

Function processSemanticFromDescriptor

src/osvr/Common/ProcessDeviceDescriptor.cpp:130–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128 } // namespace
129
130 static inline util::Flag
131 processSemanticFromDescriptor(PathNode &devNode, Json::Value const &desc) {
132 util::Flag changed;
133 Json::Value const &sem = desc[SEMANTIC_KEY];
134 if (!sem.isObject()) {
135 // Semantic member isn't an object or isn't a member
136 return changed;
137 }
138 SemanticRecursion f{devNode};
139 changed += f(sem);
140 return changed;
141 }
142 static inline bool processAutomaticFromDescriptor(PathNode &devNode,
143 Json::Value const &desc) {
144 Json::Value const &automatic = desc[AUTOMATIC_KEY];

Calls

no outgoing calls

Tested by

no test coverage detected