@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.
| 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 |
nothing calls this directly
no outgoing calls
no test coverage detected