21 #ifndef INCLUDE_OLA_RDM_RESPONDERPERSONALITY_H_
22 #define INCLUDE_OLA_RDM_RESPONDERPERSONALITY_H_
40 Personality(uint16_t footprint,
const std::string &description);
41 Personality(uint16_t footprint,
const std::string &description,
44 uint16_t Footprint()
const {
return m_footprint; }
45 std::string Description()
const {
return m_description; }
49 const SlotData *GetSlotData(uint16_t slot_number)
const {
50 return m_slot_data.
Lookup(slot_number);
55 std::string m_description;
67 typedef std::vector<Personality> PersonalityList;
80 const PersonalityList m_personalities;
94 uint8_t PersonalityCount()
const;
95 bool SetActivePersonality(uint8_t personality);
96 uint8_t ActivePersonalityNumber()
const {
return m_active_personality; }
98 uint16_t ActivePersonalityFootprint()
const;
99 std::string ActivePersonalityDescription()
const;
100 const Personality *Lookup(uint8_t personality)
const;
104 uint8_t m_active_personality;
110 #endif // INCLUDE_OLA_RDM_RESPONDERPERSONALITY_H_
Definition: ResponderPersonality.h:65
Personality(uint16_t footprint, const std::string &description)
Definition: ResponderPersonality.cpp:40
virtual ~PersonalityCollection()
Definition: ResponderPersonality.cpp:63
Holds information about a set of slots.
Definition: ResponderSlotData.h:151
Definition: ResponderPersonality.h:89
const Personality * Lookup(uint8_t personality) const
Definition: ResponderPersonality.cpp:76
uint8_t PersonalityCount() const
Definition: ResponderPersonality.cpp:69
const SlotData * Lookup(uint16_t slot) const
Lookup slot data based on the slot index.
Definition: ResponderSlotData.cpp:99
Holds the information about DMX slots.
The namespace containing all OLA symbols.
Definition: Credentials.cpp:44
Header file for OLA Logging.
Holds information about a single DMX slot.
Definition: ResponderSlotData.h:44
Definition: ResponderPersonality.h:38