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

Method CreateScene

cpp/src/Manager.cpp:4575–4590  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Create a new scene and return new Scene ID. -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

4573// Create a new scene and return new Scene ID.
4574//-----------------------------------------------------------------------------
4575uint8 Manager::CreateScene
4576(
4577)
4578{
4579 for( int i = 1; i < 256; i++ )
4580 {
4581 Scene* scene = Scene::Get( i );
4582 if( scene != NULL )
4583 {
4584 continue;
4585 }
4586 new Scene( i );
4587 return i;
4588 }
4589 return 0;
4590}
4591
4592//-----------------------------------------------------------------------------
4593// <Manager::RemoveScene>

Callers

nothing calls this directly

Calls 1

GetFunction · 0.70

Tested by

no test coverage detected