19 actions[button] = std::move(action);
32 return actions[button].get();
Base class for all pedal actions.
void addAction(uint8_t button, std::unique_ptr< Action > action)
Adds an action to a specific button in this profile.
const std::string & getDescription() const
Gets the description of this profile.
void setDescription(const std::string &description)
Sets the description of this profile.
Action * getAction(uint8_t button) const
Gets the action associated with a button in this profile.
static constexpr uint8_t MAX_BUTTONS
Maximum buttons per profile (A–Z)
Profile(std::string name)
Constructs a Profile with a name.
const std::string & getName() const
Gets the name of this profile.