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

Method CreateValueString

cpp/src/Node.cpp:2719–2743  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

2717// Helper to create a new string value and add it to the value store
2718//-----------------------------------------------------------------------------
2719bool Node::CreateValueString
2720(
2721 ValueID::ValueGenre const _genre,
2722 uint8 const _commandClassId,
2723 uint8 const _instance,
2724 uint16 const _valueIndex,
2725 string const& _label,
2726 string const& _units,
2727 bool const _readOnly,
2728 bool const _writeOnly,
2729 string const& _default,
2730 uint8 const _pollIntensity
2731)
2732{
2733 ValueString* value = new ValueString( m_homeId, m_nodeId, _genre, _commandClassId, _instance, _valueIndex, _label, _units, _readOnly, _writeOnly, _default, _pollIntensity );
2734 ValueStore* store = GetValueStore();
2735 if( store->AddValue( value ) )
2736 {
2737 value->Release();
2738 return true;
2739 }
2740
2741 value->Release();
2742 return false;
2743}
2744
2745//-----------------------------------------------------------------------------
2746// <Node::RemoveValueList>

Callers 10

HandleMsgMethod · 0.80
CreateVarsMethod · 0.80
CreateVarsMethod · 0.80
CreateVarsMethod · 0.80
CreateVarsMethod · 0.80
CreateVarsMethod · 0.80
CreateVarsMethod · 0.80
HandleMsgMethod · 0.80
SetupEventsMethod · 0.80
CreateVarsMethod · 0.80

Calls 2

AddValueMethod · 0.45
ReleaseMethod · 0.45

Tested by 1

CreateVarsMethod · 0.64