Open Lighting Architecture  Latest Git
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
 

Member Typedef Documentation

◆ PersonalityList

The data type that stores the list of personalities for a responder.

Constructor & Destructor Documentation

◆ PersonalityCollection()

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

Takes ownership of the personalites

◆ ~PersonalityCollection()

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

Clean up

Member Function Documentation

◆ Lookup()

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

Look up a personality by index

◆ PersonalityCount()

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

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