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

Method hasURL

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

Source from the content-addressed store, hash-verified

152}
153
154bool Sensor::hasURL() const
155{
156 return state.getValue().at("config").count("url") != 0;
157}
158std::string Sensor::getURL() const
159{
160 return state.getValue().at("config").at("url").get<std::string>();

Callers 2

TEST_FFunction · 0.45
TEST_FFunction · 0.45

Calls 2

getValueMethod · 0.80
countMethod · 0.45

Tested by 2

TEST_FFunction · 0.36
TEST_FFunction · 0.36