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

Method CreateValueBool

cpp/src/Node.cpp:2452–2476  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

2450// Helper to create a new bool value and add it to the value store
2451//-----------------------------------------------------------------------------
2452bool Node::CreateValueBool
2453(
2454 ValueID::ValueGenre const _genre,
2455 uint8 const _commandClassId,
2456 uint8 const _instance,
2457 uint16 const _valueIndex,
2458 string const& _label,
2459 string const& _units,
2460 bool const _readOnly,
2461 bool const _writeOnly,
2462 bool const _default,
2463 uint8 const _pollIntensity
2464)
2465{
2466 ValueBool* value = new ValueBool( m_homeId, m_nodeId, _genre, _commandClassId, _instance, _valueIndex, _label, _units, _readOnly, _writeOnly, _default, _pollIntensity );
2467 ValueStore* store = GetValueStore();
2468 if( store->AddValue( value ) )
2469 {
2470 value->Release();
2471 return true;
2472 }
2473
2474 value->Release();
2475 return false;
2476}
2477
2478//-----------------------------------------------------------------------------
2479// <Node::CreateValueButton>

Callers 10

CreateVarsMethod · 0.80
CreateVarsMethod · 0.80
HandleSupportedReportMethod · 0.80
CreateVarsMethod · 0.80
CreateVarsMethod · 0.80
CreateVarsMethod · 0.80
CreateVarsMethod · 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