MCPcopy Create free account
hub / github.com/CalcProgrammer1/OpenRGB / getPendingConfig

Method getPendingConfig

dependencies/hueplusplus-1.0.0/src/Sensor.cpp:167–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165}
166
167std::vector<std::string> Sensor::getPendingConfig() const
168{
169 const nlohmann::json& config = state.getValue().at("config");
170 const auto pendingIt = config.find("pending");
171 if (pendingIt == config.end() || !pendingIt->is_array())
172 {
173 return {};
174 }
175 std::vector<std::string> result;
176 result.reserve(pendingIt->size());
177 for (const nlohmann::json& pending : *pendingIt)
178 {
179 result.push_back(pending.get<std::string>());
180 }
181 return result;
182}
183
184bool Sensor::hasLEDIndication() const
185{

Callers 1

TEST_FFunction · 0.80

Calls 5

getValueMethod · 0.80
findMethod · 0.45
endMethod · 0.45
sizeMethod · 0.45
push_backMethod · 0.45

Tested by 1

TEST_FFunction · 0.64