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

Method SetFlagByte

cpp/src/CompatOptionManager.cpp:354–372  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

352}
353
354bool CompatOptionManager::SetFlagByte
355(
356 CompatOptionFlags flag,
357 uint8_t value
358)
359{
360 if (m_CompatVals.count(flag) == 0) {
361 Log::Write(LogLevel_Warning, m_owner->GetNodeId(), "SetFlagByte: (%s) - Flag %s Not Enabled!", m_owner->GetCommandClassName().c_str(), GetFlagName(flag).c_str());
362 return false;
363 }
364 if (m_CompatVals.at(flag).type != COMPAT_FLAG_TYPE_BYTE)
365 {
366 Log::Write(LogLevel_Warning, m_owner->GetNodeId(), "SetFlagByte: (%s) - Flag %s Not a Byte Value!", m_owner->GetCommandClassName().c_str(), GetFlagName(flag).c_str());
367 return false;
368 }
369 m_CompatVals.at(flag).valByte = value;
370 m_CompatVals.at(flag).changed = true;
371 return true;
372}
373
374bool CompatOptionManager::SetFlagShort
375(

Callers 10

HandleMsgMethod · 0.80
SetValueMethod · 0.80
HandleMsgMethod · 0.80
HandleMsgMethod · 0.80
HandleMsgMethod · 0.80
ClearStaticRequestMethod · 0.80
SetStaticRequestMethod · 0.80
SetVersionMethod · 0.80
SetMappingMethod · 0.80
HandleMsgMethod · 0.80

Calls 4

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

Tested by

no test coverage detected