----------------------------------------------------------------------------- Sets a help string describing the value's purpose and usage -----------------------------------------------------------------------------
| 1894 | // Sets a help string describing the value's purpose and usage |
| 1895 | //----------------------------------------------------------------------------- |
| 1896 | void Manager::SetValueHelp |
| 1897 | ( |
| 1898 | ValueID const& _id, |
| 1899 | string const& _value, |
| 1900 | int32 _pos |
| 1901 | ) |
| 1902 | { |
| 1903 | if( Driver* driver = GetDriver( _id.GetHomeId() ) ) |
| 1904 | { |
| 1905 | LockGuard LG(driver->m_nodeMutex); |
| 1906 | if (_pos != -1) { |
| 1907 | if (_id.GetType() != ValueID::ValueType_BitSet) { |
| 1908 | OZW_ERROR(OZWException::OZWEXCEPTION_INVALID_VALUEID, "ValueID passed to SetValueHelp is not a BitSet but a position was requested"); |
| 1909 | return; |
| 1910 | } |
| 1911 | ValueBitSet *value = static_cast<ValueBitSet *>(driver->GetValue( _id )); |
| 1912 | value->SetBitHelp(_pos, _value); |
| 1913 | value->Release(); |
| 1914 | return; |
| 1915 | } else { |
| 1916 | if( Value* value = driver->GetValue( _id ) ) |
| 1917 | { |
| 1918 | value->SetHelp( _value ); |
| 1919 | value->Release(); |
| 1920 | return; |
| 1921 | } |
| 1922 | } |
| 1923 | } |
| 1924 | OZW_ERROR(OZWException::OZWEXCEPTION_INVALID_VALUEID, "Invalid ValueID passed to SetValueHelp"); |
| 1925 | } |
| 1926 | |
| 1927 | //----------------------------------------------------------------------------- |
| 1928 | // <Manager::GetValueMin> |
no test coverage detected