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

Method SetValue

cpp/src/Scene.cpp:447–462  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Set a ValueID's value as string -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

445// Set a ValueID's value as string
446//-----------------------------------------------------------------------------
447bool Scene::SetValue
448(
449 ValueID const& _valueId,
450 string const& _value
451)
452{
453 for( vector<SceneStorage*>::iterator it = m_values.begin(); it != m_values.end(); ++it )
454 {
455 if( (*it)->m_id == _valueId )
456 {
457 (*it)->m_value = _value;
458 return true;
459 }
460 }
461 return false;
462}
463
464//-----------------------------------------------------------------------------
465// <Scene::Activate>

Callers 1

ActivateMethod · 0.45

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected