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

Method GetAllScenes

cpp/src/Scene.cpp:287–305  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Return an array of uint8 of used Scene IDs and the count -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

285// Return an array of uint8 of used Scene IDs and the count
286//-----------------------------------------------------------------------------
287uint8 Scene::GetAllScenes
288(
289 uint8** _sceneIds
290)
291{
292 if( s_sceneCnt > 0 )
293 {
294 *_sceneIds = new uint8[s_sceneCnt];
295 int j = 0;
296 for( int i = 1; i < 256; i++ )
297 {
298 if (s_scenes[i] != NULL)
299 {
300 (*_sceneIds)[j++] = s_scenes[i]->m_sceneId;
301 }
302 }
303 }
304 return s_sceneCnt;
305}
306
307//-----------------------------------------------------------------------------
308// <Scene::AddValue>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected