Hue::Device::Enumerator Class Reference
Abstract class to manage a list of devices. More...
#include <Device.h>
Inheritance diagram for Hue::Device::Enumerator:
Collaboration diagram for Hue::Device::Enumerator:
Public Member Functions | |
virtual Device * | find (Device::ID id) |
Lookup device by ID. More... | |
virtual Device * | find (const String &name) |
Lookup device by name. More... | |
Detailed Description
Abstract class to manage a list of devices.
- Note
- Applications must provide an implementation of this for the bridge. Returned device objects may only be considered valid for the duration of the current task call as they may be destroyed at any time.
Member Function Documentation
◆ find() [1/2]
|
virtual |
Lookup device by ID.
- Return values
-
Device* nullptr if not found
- Note
- With default implementation, enumerator position is updated
◆ find() [2/2]
Lookup device by name.
- Return values
-
Device* nullptr if not found
- Note
- With default implementation, enumerator position is updated
The documentation for this class was generated from the following file: