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

Method GetFlagByte

cpp/src/CompatOptionManager.cpp:283–298  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

281}
282
283uint8_t CompatOptionManager::GetFlagByte
284(
285 CompatOptionFlags flag
286) const
287{
288 if (m_CompatVals.count(flag) == 0) {
289 Log::Write(LogLevel_Warning, m_owner->GetNodeId(), "GetFlagByte: (%s) - Flag %s Not Enabled!", m_owner->GetCommandClassName().c_str(), GetFlagName(flag).c_str());
290 return 0;
291 }
292 if (m_CompatVals.at(flag).type != COMPAT_FLAG_TYPE_BYTE)
293 {
294 Log::Write(LogLevel_Warning, m_owner->GetNodeId(), "GetFlagByte: (%s) - Flag %s Not a Byte Value!", m_owner->GetCommandClassName().c_str(), GetFlagName(flag).c_str());
295 return 0;
296 }
297 return m_CompatVals.at(flag).valByte;
298}
299
300uint16_t CompatOptionManager::GetFlagShort
301(

Callers 15

SetValueMethod · 0.80
GetMappingMethod · 0.80
HandleMsgMethod · 0.80
HandleMsgMethod · 0.80
RequestStateMethod · 0.80
RequestValueMethod · 0.80
HandleMsgMethod · 0.80
SetValueMethod · 0.80
GetVersionFunction · 0.80
HasStaticRequestFunction · 0.80
HandleMsgMethod · 0.80
ValueToIntegerMethod · 0.80

Calls 4

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

Tested by

no test coverage detected