----------------------------------------------------------------------------- Test whether the value has been set by a status message from the device -----------------------------------------------------------------------------
| 2029 | // Test whether the value has been set by a status message from the device |
| 2030 | //----------------------------------------------------------------------------- |
| 2031 | bool 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> |