----------------------------------------------------------------------------- Constructor -----------------------------------------------------------------------------
| 41 | // Constructor |
| 42 | //----------------------------------------------------------------------------- |
| 43 | ValueList::ValueList |
| 44 | ( |
| 45 | uint32 const _homeId, |
| 46 | uint8 const _nodeId, |
| 47 | ValueID::ValueGenre const _genre, |
| 48 | uint8 const _commandClassId, |
| 49 | uint8 const _instance, |
| 50 | uint16 const _index, |
| 51 | string const& _label, |
| 52 | string const& _units, |
| 53 | bool const _readOnly, |
| 54 | bool const _writeOnly, |
| 55 | vector<Item> const& _items, |
| 56 | int32 const _valueIdx, |
| 57 | uint8 const _pollIntensity, |
| 58 | uint8 const _size // = 4 |
| 59 | ): |
| 60 | Value( _homeId, _nodeId, _genre, _commandClassId, _instance, _index, ValueID::ValueType_List, _label, _units, _readOnly, _writeOnly, false, _pollIntensity ), |
| 61 | m_items( _items ), |
| 62 | m_valueIdx( _valueIdx ), |
| 63 | m_valueIdxCheck( 0 ), |
| 64 | m_size( _size ) |
| 65 | { |
| 66 | for( vector<Item>::iterator it = m_items.begin(); it != m_items.end(); ++it ) |
| 67 | { |
| 68 | /* first what is currently in m_label is the default text for a Item, so set it */ |
| 69 | Localization::Get()->SetValueItemLabel(_commandClassId, _index, -1, it->m_value, it->m_label, ""); |
| 70 | /* now set to the Localized Value */ |
| 71 | it->m_label = Localization::Get()->GetValueItemLabel(_commandClassId, _index, -1, it->m_value); |
| 72 | } |
| 73 | } |
| 74 | |
| 75 | //----------------------------------------------------------------------------- |
| 76 | // <ValueList::ValueList> |
nothing calls this directly
no test coverage detected