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

Method CreateValueInt

cpp/src/Node.cpp:2568–2592  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

2566// Helper to create a new int value and add it to the value store
2567//-----------------------------------------------------------------------------
2568bool Node::CreateValueInt
2569(
2570 ValueID::ValueGenre const _genre,
2571 uint8 const _commandClassId,
2572 uint8 const _instance,
2573 uint16 const _valueIndex,
2574 string const& _label,
2575 string const& _units,
2576 bool const _readOnly,
2577 bool const _writeOnly,
2578 int32 const _default,
2579 uint8 const _pollIntensity
2580)
2581{
2582 ValueInt* value = new ValueInt( m_homeId, m_nodeId, _genre, _commandClassId, _instance, _valueIndex, _label, _units, _readOnly, _writeOnly, _default, _pollIntensity );
2583 ValueStore* store = GetValueStore();
2584 if( store->AddValue( value ) )
2585 {
2586 value->Release();
2587 return true;
2588 }
2589
2590 value->Release();
2591 return false;
2592}
2593
2594//-----------------------------------------------------------------------------
2595// <Node::CreateValueList>

Callers 11

CreateVarsMethod · 0.80
HandleMsgMethod · 0.80
HandleReportMethod · 0.80
CreateVarsMethod · 0.80
HandleMsgMethod · 0.80
CreateVarsMethod · 0.80
CreateVarsMethod · 0.80
CreateVarsMethod · 0.80
CreateVarsMethod · 0.80
RequestStateMethod · 0.80
SetupEventsMethod · 0.80

Calls 2

AddValueMethod · 0.45
ReleaseMethod · 0.45

Tested by 1

CreateVarsMethod · 0.64