----------------------------------------------------------------------------- Helper to create a new string value and add it to the value store -----------------------------------------------------------------------------
| 2717 | // Helper to create a new string value and add it to the value store |
| 2718 | //----------------------------------------------------------------------------- |
| 2719 | bool Node::CreateValueString |
| 2720 | ( |
| 2721 | ValueID::ValueGenre const _genre, |
| 2722 | uint8 const _commandClassId, |
| 2723 | uint8 const _instance, |
| 2724 | uint16 const _valueIndex, |
| 2725 | string const& _label, |
| 2726 | string const& _units, |
| 2727 | bool const _readOnly, |
| 2728 | bool const _writeOnly, |
| 2729 | string const& _default, |
| 2730 | uint8 const _pollIntensity |
| 2731 | ) |
| 2732 | { |
| 2733 | ValueString* value = new ValueString( m_homeId, m_nodeId, _genre, _commandClassId, _instance, _valueIndex, _label, _units, _readOnly, _writeOnly, _default, _pollIntensity ); |
| 2734 | ValueStore* store = GetValueStore(); |
| 2735 | if( store->AddValue( value ) ) |
| 2736 | { |
| 2737 | value->Release(); |
| 2738 | return true; |
| 2739 | } |
| 2740 | |
| 2741 | value->Release(); |
| 2742 | return false; |
| 2743 | } |
| 2744 | |
| 2745 | //----------------------------------------------------------------------------- |
| 2746 | // <Node::RemoveValueList> |