|
AwesomeStudioPedal
A programmable, multi-profile foot controller for DAWs, score readers, and studio automation
|
Action that outputs text to serial console. More...
#include <serial_action.h>
Public Member Functions | |
| SerialOutputAction (std::string message) | |
| Constructs a SerialOutputAction. | |
| void | execute () override |
| Executes the serial output action. | |
| Action::Type | getType () const override |
| Gets the type of this action. | |
| bool | isSendAction () const override |
| Checks if this action is a send action. | |
| const std::string & | getMessage () const |
| Gets the message that will be output. | |
Public Member Functions inherited from Action | |
| void | setName (const std::string &n) |
| const std::string & | getName () const |
| bool | hasName () const |
| virtual uint32_t | getDelay () const |
| virtual bool | isInProgress () const |
| Returns true if the action is currently in progress (e.g. | |
| virtual void | getJsonProperties (JsonObject &json) const |
| virtual | ~Action ()=default |
Additional Inherited Members | |
Public Types inherited from Action | |
| enum class | Type : uint8_t { Unknown , SendString , SendChar , SendKey , SendMediaKey , SerialOutput , Delayed } |
Action that outputs text to serial console.
Example of a non-send action that demonstrates the extensibility of the Action hierarchy for debugging and logging purposes.
Definition at line 12 of file serial_action.h.
|
explicit |
Constructs a SerialOutputAction.
Constructs a SerialOutputAction with the specified message.
| message | The message to output to serial console |
Definition at line 11 of file serial_action.cpp.
|
overridevirtual |
Executes the serial output action.
Outputs the configured message to the serial console.
Outputs the configured message to the serial console with an "ACTION: " prefix. This method handles both Arduino environment (Serial) and host test environment (std::cout).
Implements Action.
Definition at line 22 of file serial_action.cpp.
|
inline |
Gets the message that will be output.
Definition at line 55 of file serial_action.h.
|
inlineoverridevirtual |
Gets the type of this action.
Reimplemented from Action.
Definition at line 37 of file serial_action.h.
|
inlineoverridevirtual |
Checks if this action is a send action.
Reimplemented from Action.
Definition at line 48 of file serial_action.h.