/* * Command.hpp * * Created on: Jul 8, 2021 * Author: Andreas Berthoud */ #ifndef SRC_COMMAND_H_ #define SRC_COMMAND_H_ #include "commands.hpp" typedef enum { com_channel_type_usb, com_channel_type_ble, } com_channel_type_t; class Command { public: CommandId id; virtual ~Command() {}; virtual CommandId get_command_id() = 0; virtual bool execute() = 0; }; void push_command(Command * command); #endif /* SRC_COMMAND_H_ */