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

Method IsValuePolled

cpp/src/Manager.cpp:2056–2075  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Test whether the value is currently being polled -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

2054// Test whether the value is currently being polled
2055//-----------------------------------------------------------------------------
2056bool Manager::IsValuePolled
2057(
2058 ValueID const& _id
2059)
2060{
2061 bool res = false;
2062 if( Driver* driver = GetDriver( _id.GetHomeId() ) )
2063 {
2064 LockGuard LG(driver->m_nodeMutex);
2065 if( Value* value = driver->GetValue( _id ) )
2066 {
2067 res = value->IsPolled();
2068 value->Release();
2069 } else {
2070 OZW_ERROR(OZWException::OZWEXCEPTION_INVALID_VALUEID, "Invalid ValueID passed to IsValuePolled");
2071 }
2072 }
2073
2074 return res;
2075}
2076
2077//-----------------------------------------------------------------------------
2078// <Manager::GetValueAsBitSet>

Callers

nothing calls this directly

Calls 3

IsPolledMethod · 0.80
GetValueMethod · 0.45
ReleaseMethod · 0.45

Tested by

no test coverage detected