You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
370 B
25 lines
370 B
/*
|
|
* Command.hpp
|
|
*
|
|
* Created on: Jul 8, 2021
|
|
* Author: Andreas Berthoud
|
|
*/
|
|
|
|
#ifndef SRC_COMMAND_H_
|
|
#define SRC_COMMAND_H_
|
|
|
|
#include "commands.hpp"
|
|
|
|
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_ */
|
|
|