Open Lighting Architecture  0.10.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Types | Public Member Functions | List of all members
ola::rdm::PersonalityCollection Class Reference

Detailed Description

Holds the list of personalities for a class of responder. A single instance is shared between all responders of the same type. Subclass this and use a singleton.

Public Types

typedef std::vector< PersonalityPersonalityList
 

Public Member Functions

 PersonalityCollection (const PersonalityList &personalities)
 
virtual ~PersonalityCollection ()
 
uint8_t PersonalityCount () const
 
const PersonalityLookup (uint8_t personality) const
 

Constructor & Destructor Documentation

ola::rdm::PersonalityCollection::PersonalityCollection ( const PersonalityList &  personalities)
explicit

Takes ownership of the personalites

ola::rdm::PersonalityCollection::~PersonalityCollection ( )
virtual

Clean up

Member Function Documentation

const Personality * ola::rdm::PersonalityCollection::Lookup ( uint8_t  personality) const

Look up a personality by index

uint8_t ola::rdm::PersonalityCollection::PersonalityCount ( ) const
Returns
the number of personalities

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