Website Summary Files Commits Branches @commit @diff @stats
path: root / src / Generic / ConsoleInterface / Command.h
diff options
context:
space:
mode:
Commit7b72e6a872a82450796d7da65a290bab9c100ae3 (patch)
Author
 Syndamia <kamen@syndamia.com>
2022-05-28 20:25:05 +0300
Committer
 Syndamia <kamen@syndamia.com>
2022-05-28 20:25:05 +0300
Files6cccbd464955cbd13d6eee92e5ed5dc880e7db60 /src/Generic/ConsoleInterface/Command.h
FMI-OOP-P2_Tables-7b72e6a872a82450796d7da65a290bab9c100ae3.tar
FMI-OOP-P2_Tables-7b72e6a872a82450796d7da65a290bab9c100ae3.tar.gz
FMI-OOP-P2_Tables-7b72e6a872a82450796d7da65a290bab9c100ae3.zip
Parentf3671d418a098f1fd7aa530b2ef6c975193fce1f (diff)
Autocommit at 28.05.2022 @ 20:25
1 files changed, 4 insertions, 4 deletions
-rw-r--r--src/Generic/ConsoleInterface/Command.h8
diff --git a/src/Generic/ConsoleInterface/Command.h b/src/Generic/ConsoleInterface/Command.h
index f1eb55b..8e40955 100644
--- a/src/Generic/ConsoleInterface/Command.h
+++ b/src/Generic/ConsoleInterface/Command.h
@@ -10,18 +10,18 @@
* Menu uses this class for a more generic implementation of it's navigate function.
*/
class Command {
- char nameInMenu[256];
- void (*exec)();
+ char name[256];
+ void (*exec)(const char* params);
public:
//! Leaves name empty and exec function pointer to nullptr
Command();
//! Copies contents of nameInMenu and stores exec
- Command(const char* nameInMenu, void (*exec)());
+ Command(const char* name, void (*exec)(const char* params));
//! Executes the stored function pointer
void run() const;
- const char* get_nameInMenu() const;
+ const char* get_name() const;
};
#endif