----------------------------------------------------------------------------- Helper to create a new byte value and add it to the value store -----------------------------------------------------------------------------
| 2506 | // Helper to create a new byte value and add it to the value store |
| 2507 | //----------------------------------------------------------------------------- |
| 2508 | bool Node::CreateValueByte |
| 2509 | ( |
| 2510 | ValueID::ValueGenre const _genre, |
| 2511 | uint8 const _commandClassId, |
| 2512 | uint8 const _instance, |
| 2513 | uint16 const _valueIndex, |
| 2514 | string const& _label, |
| 2515 | string const& _units, |
| 2516 | bool const _readOnly, |
| 2517 | bool const _writeOnly, |
| 2518 | uint8 const _default, |
| 2519 | uint8 const _pollIntensity |
| 2520 | ) |
| 2521 | { |
| 2522 | ValueByte* value = new ValueByte( m_homeId, m_nodeId, _genre, _commandClassId, _instance, _valueIndex, _label, _units, _readOnly, _writeOnly, _default, _pollIntensity ); |
| 2523 | ValueStore* store = GetValueStore(); |
| 2524 | if( store->AddValue( value ) ) |
| 2525 | { |
| 2526 | value->Release(); |
| 2527 | return true; |
| 2528 | } |
| 2529 | |
| 2530 | value->Release(); |
| 2531 | return false; |
| 2532 | } |
| 2533 | |
| 2534 | //----------------------------------------------------------------------------- |
| 2535 | // <Node::CreateValueDecimal> |
no test coverage detected