From 6948746e76e76f49fd7ce9602a9830a335fb36ad Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sun, 1 May 2022 09:41:00 +0300 Subject: Autocommit at 01.05.2022 @ 09:41 --- src/ConsoleInterface/Command.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/ConsoleInterface/Command.cpp (limited to 'src/ConsoleInterface/Command.cpp') diff --git a/src/ConsoleInterface/Command.cpp b/src/ConsoleInterface/Command.cpp new file mode 100644 index 0000000..ec32cc9 --- /dev/null +++ b/src/ConsoleInterface/Command.cpp @@ -0,0 +1,11 @@ +#include "Command.h" +#include + +Command::Command(const char* nameInMenu, void (*exec)()) { + strcpy(this->nameInMenu, nameInMenu); + this->exec = exec; +} + +void Command::run() const { + exec(); +} -- cgit v1.3.1-23-gd82d