----------------------------------------------------------------------------- Helper to create a new bool value and add it to the value store -----------------------------------------------------------------------------
| 2450 | // Helper to create a new bool value and add it to the value store |
| 2451 | //----------------------------------------------------------------------------- |
| 2452 | bool Node::CreateValueBool |
| 2453 | ( |
| 2454 | ValueID::ValueGenre const _genre, |
| 2455 | uint8 const _commandClassId, |
| 2456 | uint8 const _instance, |
| 2457 | uint16 const _valueIndex, |
| 2458 | string const& _label, |
| 2459 | string const& _units, |
| 2460 | bool const _readOnly, |
| 2461 | bool const _writeOnly, |
| 2462 | bool const _default, |
| 2463 | uint8 const _pollIntensity |
| 2464 | ) |
| 2465 | { |
| 2466 | ValueBool* value = new ValueBool( m_homeId, m_nodeId, _genre, _commandClassId, _instance, _valueIndex, _label, _units, _readOnly, _writeOnly, _default, _pollIntensity ); |
| 2467 | ValueStore* store = GetValueStore(); |
| 2468 | if( store->AddValue( value ) ) |
| 2469 | { |
| 2470 | value->Release(); |
| 2471 | return true; |
| 2472 | } |
| 2473 | |
| 2474 | value->Release(); |
| 2475 | return false; |
| 2476 | } |
| 2477 | |
| 2478 | //----------------------------------------------------------------------------- |
| 2479 | // <Node::CreateValueButton> |
no test coverage detected