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

Method CreateValueByte

cpp/src/Node.cpp:2508–2532  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

2506// Helper to create a new byte value and add it to the value store
2507//-----------------------------------------------------------------------------
2508bool 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>

Callers 15

CreateVarsMethod · 0.80
CreateVarsMethod · 0.80
CreateVarsMethod · 0.80
CreateVarsMethod · 0.80
CreateVarsMethod · 0.80
CreateVarsMethod · 0.80
CreateVarsMethod · 0.80
HandleMsgMethod · 0.80
SetMappingMethod · 0.80
CreateVarsMethod · 0.80
CreateVarsMethod · 0.80
CreateVarsMethod · 0.80

Calls 2

AddValueMethod · 0.45
ReleaseMethod · 0.45

Tested by

no test coverage detected