----------------------------------------------------------------------------- Helper to create a new int value and add it to the value store -----------------------------------------------------------------------------
| 2566 | // Helper to create a new int value and add it to the value store |
| 2567 | //----------------------------------------------------------------------------- |
| 2568 | bool Node::CreateValueInt |
| 2569 | ( |
| 2570 | ValueID::ValueGenre const _genre, |
| 2571 | uint8 const _commandClassId, |
| 2572 | uint8 const _instance, |
| 2573 | uint16 const _valueIndex, |
| 2574 | string const& _label, |
| 2575 | string const& _units, |
| 2576 | bool const _readOnly, |
| 2577 | bool const _writeOnly, |
| 2578 | int32 const _default, |
| 2579 | uint8 const _pollIntensity |
| 2580 | ) |
| 2581 | { |
| 2582 | ValueInt* value = new ValueInt( m_homeId, m_nodeId, _genre, _commandClassId, _instance, _valueIndex, _label, _units, _readOnly, _writeOnly, _default, _pollIntensity ); |
| 2583 | ValueStore* store = GetValueStore(); |
| 2584 | if( store->AddValue( value ) ) |
| 2585 | { |
| 2586 | value->Release(); |
| 2587 | return true; |
| 2588 | } |
| 2589 | |
| 2590 | value->Release(); |
| 2591 | return false; |
| 2592 | } |
| 2593 | |
| 2594 | //----------------------------------------------------------------------------- |
| 2595 | // <Node::CreateValueList> |