----------------------------------------------------------------------------- Helper to create a new decimal value and add it to the value store -----------------------------------------------------------------------------
| 2536 | // Helper to create a new decimal value and add it to the value store |
| 2537 | //----------------------------------------------------------------------------- |
| 2538 | bool Node::CreateValueDecimal |
| 2539 | ( |
| 2540 | ValueID::ValueGenre const _genre, |
| 2541 | uint8 const _commandClassId, |
| 2542 | uint8 const _instance, |
| 2543 | uint16 const _valueIndex, |
| 2544 | string const& _label, |
| 2545 | string const& _units, |
| 2546 | bool const _readOnly, |
| 2547 | bool const _writeOnly, |
| 2548 | string const& _default, |
| 2549 | uint8 const _pollIntensity |
| 2550 | ) |
| 2551 | { |
| 2552 | ValueDecimal* value = new ValueDecimal( m_homeId, m_nodeId, _genre, _commandClassId, _instance, _valueIndex, _label, _units, _readOnly, _writeOnly, _default, _pollIntensity ); |
| 2553 | ValueStore* store = GetValueStore(); |
| 2554 | if( store->AddValue( value ) ) |
| 2555 | { |
| 2556 | value->Release(); |
| 2557 | return true; |
| 2558 | } |
| 2559 | |
| 2560 | value->Release(); |
| 2561 | return false; |
| 2562 | } |
| 2563 | |
| 2564 | //----------------------------------------------------------------------------- |
| 2565 | // <Node::CreateValueInt> |
no test coverage detected