Open Lighting Architecture  0.9.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
ola::rdm::SettingCollection< SettingType > Class Template Reference

Detailed Description

template<class SettingType>
class ola::rdm::SettingCollection< SettingType >

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.

Note
Settings are indexed from zero. SettingManager responsible for reporting correct indices with correct offset.

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

Constructor & Destructor Documentation

template<class SettingType>
ola::rdm::SettingCollection< SettingType >::SettingCollection ( const typename SettingType::ArgType  args[],
unsigned int  arg_count,
bool  zero_offset = false 
)
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


The documentation for this class was generated from the following file: