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

Method Activate

cpp/src/Scene.cpp:468–481  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Execute scene activation by running each ValueId/value -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

466// Execute scene activation by running each ValueId/value
467//-----------------------------------------------------------------------------
468bool Scene::Activate
469(
470)
471{
472 bool res = true;
473 for( vector<SceneStorage*>::iterator it = m_values.begin(); it != m_values.end(); ++it )
474 {
475 if ( !Manager::Get()->SetValue( (*it)->m_id, (*it)->m_value ) )
476 {
477 res = false;
478 }
479 }
480 return res;
481}

Callers 1

ActivateSceneMethod · 0.80

Calls 4

GetFunction · 0.70
beginMethod · 0.45
endMethod · 0.45
SetValueMethod · 0.45

Tested by

no test coverage detected