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

Method GetFlagInt

cpp/src/CompatOptionManager.cpp:317–332  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

315}
316
317uint32_t CompatOptionManager::GetFlagInt
318(
319 CompatOptionFlags flag
320) const
321{
322 if (m_CompatVals.count(flag) == 0) {
323 Log::Write(LogLevel_Warning, m_owner->GetNodeId(), "GetFlagInt: (%s) - Flag %s Not Enabled!", m_owner->GetCommandClassName().c_str(), GetFlagName(flag).c_str());
324 return 0;
325 }
326 if (m_CompatVals.at(flag).type != COMPAT_FLAG_TYPE_INT)
327 {
328 Log::Write(LogLevel_Warning, m_owner->GetNodeId(), "GetFlagInt: (%s) - Flag %s Not a Int Value!", m_owner->GetCommandClassName().c_str(), GetFlagName(flag).c_str());
329 return 0;
330 }
331 return m_CompatVals.at(flag).valInt;
332}
333
334bool CompatOptionManager::SetFlagBool
335(

Callers 3

SendPendingMethod · 0.80
HandleMsgMethod · 0.80
CreateVarsMethod · 0.80

Calls 4

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

Tested by

no test coverage detected