Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CalcProgrammer1/OpenRGB
/ hasBatteryState
Method
hasBatteryState
dependencies/hueplusplus-1.0.0/src/Sensor.cpp:75–78 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
73
}
74
75
bool Sensor::hasBatteryState() const
76
{
77
return state.getValue().at(
"config"
).count(
"battery"
) != 0;
78
}
79
int Sensor::getBatteryState() const
80
{
81
return state.getValue().at(
"config"
).at(
"battery"
).get<int>();
Callers
2
TYPED_TEST
Function · 0.45
TEST_F
Function · 0.45
Calls
2
getValue
Method · 0.80
count
Method · 0.45
Tested by
2
TYPED_TEST
Function · 0.36
TEST_F
Function · 0.36