----------------------------------------------------------------------------- Gets the minimum for a value -----------------------------------------------------------------------------
| 1929 | // Gets the minimum for a value |
| 1930 | //----------------------------------------------------------------------------- |
| 1931 | int32 Manager::GetValueMin |
| 1932 | ( |
| 1933 | ValueID const& _id |
| 1934 | ) |
| 1935 | { |
| 1936 | int32 limit = 0; |
| 1937 | if( Driver* driver = GetDriver( _id.GetHomeId() ) ) |
| 1938 | { |
| 1939 | LockGuard LG(driver->m_nodeMutex); |
| 1940 | if( Value* value = driver->GetValue( _id ) ) |
| 1941 | { |
| 1942 | limit = value->GetMin(); |
| 1943 | value->Release(); |
| 1944 | } else { |
| 1945 | OZW_ERROR(OZWException::OZWEXCEPTION_INVALID_VALUEID, "Invalid ValueID passed to GetValueMin"); |
| 1946 | } |
| 1947 | } |
| 1948 | |
| 1949 | return limit; |
| 1950 | } |
| 1951 | |
| 1952 | //----------------------------------------------------------------------------- |
| 1953 | // <Manager::GetValueMax> |