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

Method m_processObject

src/osvr/Common/AliasProcessor.cpp:120–132  ·  view source on GitHub ↗

@brief Takes in an object, retrieves the priority specified by the PRIORITY_KEY, if any, then passes all other entries in the object to m_processEntry() along with the default or retrieved priority.

Source from the content-addressed store, hash-verified

118 /// the object to m_processEntry() along with the default or
119 /// retrieved priority.
120 void m_processObject(Json::Value const &obj) {
121 AliasPriority priority{m_opts.defaultPriority};
122 if (obj.isMember(PRIORITY_KEY)) {
123 priority =
124 static_cast<AliasPriority>(obj[PRIORITY_KEY].asInt());
125 }
126 for (auto const &key : obj.getMemberNames()) {
127 if (PRIORITY_KEY == key) {
128 continue;
129 }
130 m_processEntry(key, obj[key], priority);
131 }
132 }
133
134 /// @brief Process a name:value entry in an alias description
135 /// object, with the given priority. Calls m_processSingleEntry() to

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected