MCPcopy Create free account
hub / github.com/OpenZWave/open-zwave / CreateValueDecimal

Method CreateValueDecimal

cpp/src/Node.cpp:2538–2562  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Helper to create a new decimal value and add it to the value store -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

2536// Helper to create a new decimal value and add it to the value store
2537//-----------------------------------------------------------------------------
2538bool Node::CreateValueDecimal
2539(
2540 ValueID::ValueGenre const _genre,
2541 uint8 const _commandClassId,
2542 uint8 const _instance,
2543 uint16 const _valueIndex,
2544 string const& _label,
2545 string const& _units,
2546 bool const _readOnly,
2547 bool const _writeOnly,
2548 string const& _default,
2549 uint8 const _pollIntensity
2550)
2551{
2552 ValueDecimal* value = new ValueDecimal( m_homeId, m_nodeId, _genre, _commandClassId, _instance, _valueIndex, _label, _units, _readOnly, _writeOnly, _default, _pollIntensity );
2553 ValueStore* store = GetValueStore();
2554 if( store->AddValue( value ) )
2555 {
2556 value->Release();
2557 return true;
2558 }
2559
2560 value->Release();
2561 return false;
2562}
2563
2564//-----------------------------------------------------------------------------
2565// <Node::CreateValueInt>

Callers 7

HandleSupportedReportMethod · 0.80
HandleReportMethod · 0.80
CreateVarsMethod · 0.80
HandleMsgMethod · 0.80
CreateVarsMethod · 0.80
HandleMsgMethod · 0.80
CreateVarsMethod · 0.80

Calls 2

AddValueMethod · 0.45
ReleaseMethod · 0.45

Tested by

no test coverage detected