----------------------------------------------------------------------------- Test whether the value is currently being polled -----------------------------------------------------------------------------
| 2054 | // Test whether the value is currently being polled |
| 2055 | //----------------------------------------------------------------------------- |
| 2056 | bool 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> |