Open Lighting Architecture: ola::rdm::PersonalityCollection Class Reference

| Open Lighting Architecture 0.10.9

Loading...
Searching...
No Matches
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< Personality > | PersonalityList

## Public Member Functions
| PersonalityCollection (const PersonalityList &personalities)
virtual | ~PersonalityCollection ()
uint8_t | PersonalityCount () const
const Personality * | Lookup (uint8_t personality) const

## Member Typedef Documentation

## ◆ PersonalityList

typedef std::vector<Personality> ola::rdm::PersonalityCollection::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:

- include/ola/rdm/ResponderPersonality.h
- common/rdm/ResponderPersonality.cpp