----------------------------------------------------------------------------- Helper to create a new list value and add it to the value store -----------------------------------------------------------------------------
| 2596 | // Helper to create a new list value and add it to the value store |
| 2597 | //----------------------------------------------------------------------------- |
| 2598 | bool Node::CreateValueList |
| 2599 | ( |
| 2600 | ValueID::ValueGenre const _genre, |
| 2601 | uint8 const _commandClassId, |
| 2602 | uint8 const _instance, |
| 2603 | uint16 const _valueIndex, |
| 2604 | string const& _label, |
| 2605 | string const& _units, |
| 2606 | bool const _readOnly, |
| 2607 | bool const _writeOnly, |
| 2608 | uint8 const _size, |
| 2609 | vector<ValueList::Item> const& _items, |
| 2610 | int32 const _default, |
| 2611 | uint8 const _pollIntensity |
| 2612 | ) |
| 2613 | { |
| 2614 | ValueList* value = new ValueList(m_homeId, m_nodeId, _genre, _commandClassId, _instance, _valueIndex, _label, _units, _readOnly, _writeOnly, _items, _default, _pollIntensity, _size); |
| 2615 | ValueStore* store = GetValueStore(); |
| 2616 | if (store->AddValue(value)) |
| 2617 | { |
| 2618 | value->Release(); |
| 2619 | return true; |
| 2620 | } |
| 2621 | value->Release(); |
| 2622 | return false; |
| 2623 | } |
| 2624 | |
| 2625 | //----------------------------------------------------------------------------- |
| 2626 | // <Node::CreateValueRaw> |
no test coverage detected