-
Notifications
You must be signed in to change notification settings - Fork 0
/
menu.h
71 lines (58 loc) · 1.53 KB
/
menu.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#ifndef DA_PROJETO2_MENU_H
#define DA_PROJETO2_MENU_H
#include "WParser.h"
#include "WGraph.h"
#include "DataParserMatrix.h"
#include "Utils.h"
#include "TSPSolver.h"
#include <climits>
#include <iomanip>
/**
* @brief Class of the menu system for analyzing graphs.
*
* The Menu class provides functionality to build and interact with various
* types of graphs. It supports operations such as selecting graphs, displaying menu
* options, and performing specific algorithms on the graphs.
*/
class Menu{
public:
MGraph g1; //com haversine distance automática
MGraph g2; //sem haversine distance automática
Graph g3;
bool parsed3;
/**
* @brief Constructs a Menu object.
*/
Menu();
void openMenu();
/**
* @brief Waits for user input to continue.
*
* @param graph The name of the graph being analyzed.
*/
void wait(string graph);
/**
* @brief Displays the initial options menu.
*
* Menu where the user can select the algorithm to perform.
*
* @param graph The name of the graph being analyzed.
*/
void initialOptions(string graph);
/**
* @brief Closes the menu.
*/
int closeMenu();
/**
* @brief Prompts the user to choose a graph to analyze.
*/
void chooseGraph();
/**
* @brief Continues menu interaction after a wait period.
*
* @param graph The name of the graph being analyzed.
*/
void continueM(string graph);
//void buildGraph(string graph);
};
#endif //DA_PROJETO2_MENU_H