Open Lighting Architecture
Latest Git
|
Holds the list of settings for a class of responder. A single instance is shared between all responders of the same type. Subclass this and use a singleton.
Public Member Functions | |
SettingCollection (const typename SettingType::ArgType args[], unsigned int arg_count, bool zero_offset=false) | |
uint8_t | Count () const |
const SettingType * | Lookup (uint8_t index) const |
unsigned int | Offset () const |
|
inline |
zero_offset is used for the LOCK_STATE which is special because it has the unlocked state at index 0. However the 0 state isn't counted towards the total and does not have a description