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

Method SetFlagBool

cpp/src/CompatOptionManager.cpp:334–352  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

332}
333
334bool CompatOptionManager::SetFlagBool
335(
336 CompatOptionFlags flag,
337 bool value
338)
339{
340 if (m_CompatVals.count(flag) == 0) {
341 Log::Write(LogLevel_Warning, m_owner->GetNodeId(), "SetFlagBool: (%s) - Flag %s Not Enabled!", m_owner->GetCommandClassName().c_str(), GetFlagName(flag).c_str());
342 return false;
343 }
344 if (m_CompatVals.at(flag).type != COMPAT_FLAG_TYPE_BOOL)
345 {
346 Log::Write(LogLevel_Warning, m_owner->GetNodeId(), "SetFlagBool: (%s) - Flag %s Not a Bool Value!", m_owner->GetCommandClassName().c_str(), GetFlagName(flag).c_str());
347 return false;
348 }
349 m_CompatVals.at(flag).valBool = value;
350 m_CompatVals.at(flag).changed = true;
351 return true;
352}
353
354bool CompatOptionManager::SetFlagByte
355(

Callers 3

SetAfterMarkFunction · 0.80
SetSecuredFunction · 0.80
SetInNIFFunction · 0.80

Calls 4

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

Tested by

no test coverage detected