From 35831ff8dc30c9884a7c3340414f005a0d4ada10 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Thu, 12 May 2022 20:21:09 +0300 Subject: Completely reworked documentation --- docs/html/Command_8h_source.html | 98 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 98 insertions(+) create mode 100644 docs/html/Command_8h_source.html (limited to 'docs/html/Command_8h_source.html') diff --git a/docs/html/Command_8h_source.html b/docs/html/Command_8h_source.html new file mode 100644 index 0000000..4888f3f --- /dev/null +++ b/docs/html/Command_8h_source.html @@ -0,0 +1,98 @@ + + + + + + + +FMI Ticket System: src/Generic/ConsoleInterface/Command.h Source File + + + + + + + + + +
+
+ + + + + + +
+
FMI Ticket System +
+
| Kamen Mladenov | FMI Computer Science Year 1 Group 6 | Project 1 | Project Topic 4 |
+
+
+ + + + + + + + +
+
+ + +
+ +
+ + +
+
+
Command.h
+
+
+Go to the documentation of this file.
1#ifndef HEADER_CONSOLEINTERFACE_COMMAND
+
2#define HEADER_CONSOLEINTERFACE_COMMAND
+
3
+
12class Command {
+
13 char nameInMenu[256];
+
14 void (*exec)();
+
15
+
16public:
+
18 Command();
+
20 Command(const char* nameInMenu, void (*exec)());
+
22 void run() const;
+
23
+
24 const char* get_nameInMenu() const;
+
25};
+
26
+
27#endif
+
Stores a 256 character name and a function pointer to be executed when calling run()
Definition: Command.h:12
+
Command()
Leaves name empty and exec function pointer to nullptr.
Definition: Command.cpp:4
+
void run() const
Executes the stored function pointer.
Definition: Command.cpp:17
+
+ + + + -- cgit v1.3.1-23-gd82d