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

Method GetChangeVerified

cpp/src/Manager.cpp:3307–3325  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Get the verify changes flag for the specified value -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

3305// Get the verify changes flag for the specified value
3306//-----------------------------------------------------------------------------
3307bool Manager::GetChangeVerified
3308(
3309 ValueID const& _id
3310)
3311{
3312 bool res = false;
3313 if( Driver* driver = GetDriver( _id.GetHomeId() ) )
3314 {
3315 LockGuard LG(driver->m_nodeMutex);
3316 if( Value* value = driver->GetValue( _id ) )
3317 {
3318 res = value->GetChangeVerified();
3319 value->Release();
3320 } else {
3321 OZW_ERROR(OZWException::OZWEXCEPTION_INVALID_VALUEID, "Invalid ValueID passed to GetChangeVerified");
3322 }
3323 }
3324 return res;
3325}
3326
3327
3328//-----------------------------------------------------------------------------

Callers

nothing calls this directly

Calls 2

GetValueMethod · 0.45
ReleaseMethod · 0.45

Tested by

no test coverage detected