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

Method IsValueSet

cpp/src/Manager.cpp:2031–2050  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Test whether the value has been set by a status message from the device -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

2029// Test whether the value has been set by a status message from the device
2030//-----------------------------------------------------------------------------
2031bool Manager::IsValueSet
2032(
2033 ValueID const& _id
2034)
2035{
2036 bool res = false;
2037 if( Driver* driver = GetDriver( _id.GetHomeId() ) )
2038 {
2039 LockGuard LG(driver->m_nodeMutex);
2040 if( Value* value = driver->GetValue( _id ) )
2041 {
2042 res = value->IsSet();
2043 value->Release();
2044 } else {
2045 OZW_ERROR(OZWException::OZWEXCEPTION_INVALID_VALUEID, "Invalid ValueID passed to IsValueSet");
2046 }
2047 }
2048
2049 return res;
2050}
2051
2052//-----------------------------------------------------------------------------
2053// <Manager::IsValuePolled>

Callers

nothing calls this directly

Calls 3

GetValueMethod · 0.45
IsSetMethod · 0.45
ReleaseMethod · 0.45

Tested by

no test coverage detected