From fb004677196801b89ac13eb5537847a85dc8bb14 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Tue, 14 Jun 2022 15:21:30 +0300 Subject: Added documentation --- docs/html/Menu_8h_source.html | 106 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 106 insertions(+) create mode 100644 docs/html/Menu_8h_source.html (limited to 'docs/html/Menu_8h_source.html') diff --git a/docs/html/Menu_8h_source.html b/docs/html/Menu_8h_source.html new file mode 100644 index 0000000..94ec010 --- /dev/null +++ b/docs/html/Menu_8h_source.html @@ -0,0 +1,106 @@ + + + + + + + +FMI Table: src/Generic/ConsoleInterface/Menu.h Source File + + + + + + + + + +
+
+ + + + + + +
+
FMI Table +
+
| Kamen Mladenov | FMI Computer Science Year 1 Group 6 | Project 2 | Project Topic 7 |
+
+
+ + + + + + + + +
+
+ + +
+ +
+ + +
+
+
Menu.h
+
+
+Go to the documentation of this file.
1#ifndef HEADER_CONSOLEINTERFACE_MENU
+
2#define HEADER_CONSOLEINTERFACE_MENU
+
3
+
8#include "Command.h"
+
9#include "../List/List.hpp"
+
10
+
17class Menu {
+
18 List<Command> menuOptions;
+
19
+
20public:
+
22 Menu();
+
24 Menu(const Command* commands, unsigned commandCount);
+
25
+
27 void addCommand(const Command& command);
+
28
+
30 void navigate() const;
+
31};
+
32
+
33#endif
+
Stores the declaration of class Command.
+
Stores a 256 character name and a function pointer to be executed when calling run()
Definition: Command.h:12
+ +
Handles navigation between multiple commands.
Definition: Menu.h:17
+
void navigate() const
Lists commands and after user input executes an appropriate command run() function.
Definition: Menu.cpp:30
+
void addCommand(const Command &command)
Adds a command to the internal Command list.
Definition: Menu.cpp:14
+
Menu(const Command *commands, unsigned commandCount)
Copies commands.
+
Menu()
Sets name as "Menu", leaves all flags to false and creates an empty Command list.
Definition: Menu.cpp:5
+
+ + + + -- cgit v1.3.1-23-gd82d