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

Method AddSceneValue

cpp/src/Manager.cpp:4614–4627  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Add a bool ValueID/value pair to the scene -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

4612// Add a bool ValueID/value pair to the scene
4613//-----------------------------------------------------------------------------
4614bool Manager::AddSceneValue
4615(
4616 uint8 const _sceneId,
4617 ValueID const& _valueId,
4618 bool const _value
4619)
4620{
4621 Scene *scene = Scene::Get( _sceneId );
4622 if( scene != NULL )
4623 {
4624 return scene->AddValue( _valueId, _value ? "True" : "False");
4625 }
4626 return false;
4627}
4628
4629//-----------------------------------------------------------------------------
4630// <Manager::AddSceneValue>

Callers

nothing calls this directly

Calls 2

GetFunction · 0.70
AddValueMethod · 0.45

Tested by

no test coverage detected