MCPcopy Create free account
hub / github.com/OpenZWave/open-zwave / GetFlagBool

Method GetFlagBool

cpp/src/CompatOptionManager.cpp:265–281  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

263}
264
265bool CompatOptionManager::GetFlagBool
266(
267 CompatOptionFlags const flag
268) const
269{
270 if (m_CompatVals.count(flag) == 0)
271 {
272 Log::Write(LogLevel_Warning, m_owner->GetNodeId(), "GetFlagBool: (%s) - Flag %s Not Enabled!", m_owner->GetCommandClassName().c_str(), GetFlagName(flag).c_str());
273 return false;
274 }
275 if (m_CompatVals.at(flag).type != COMPAT_FLAG_TYPE_BOOL)
276 {
277 Log::Write(LogLevel_Warning, m_owner->GetNodeId(), "GetFlagBool: (%s) - Flag %s Not a Boolean Value!", m_owner->GetCommandClassName().c_str(), GetFlagName(flag).c_str());
278 return false;
279 }
280 return m_CompatVals.at(flag).valBool;
281}
282
283uint8_t CompatOptionManager::GetFlagByte
284(

Callers 15

RequestValueMethod · 0.80
RequestValueMethod · 0.80
RequestValueMethod · 0.80
RequestValueMethod · 0.80
RequestValueMethod · 0.80
RequestValueMethod · 0.80
RequestValueMethod · 0.80
HandleMsgMethod · 0.80
RequestValueMethod · 0.80
HandleMsgMethod · 0.80
IsAfterMarkFunction · 0.80
IsSecuredFunction · 0.80

Calls 4

WriteFunction · 0.85
GetNodeIdMethod · 0.80
c_strMethod · 0.45
GetCommandClassNameMethod · 0.45

Tested by 1

RequestValueMethod · 0.64