----------------------------------------------------------------------------- Helper method to set the level -----------------------------------------------------------------------------
| 238 | // Helper method to set the level |
| 239 | //----------------------------------------------------------------------------- |
| 240 | void Basic::Set |
| 241 | ( |
| 242 | uint8 const _level |
| 243 | ) |
| 244 | { |
| 245 | // This may look like a long winded way to do this, but |
| 246 | // it ensures that all the proper notifications get sent. |
| 247 | if( ValueByte* value = static_cast<ValueByte*>( GetValue( 1, 0 ) ) ) |
| 248 | { |
| 249 | value->Set( _level ); |
| 250 | value->Release(); |
| 251 | } |
| 252 | } |
| 253 | |
| 254 | //----------------------------------------------------------------------------- |
| 255 | // <Basic::SetMapping> |
no test coverage detected