-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathClient.hpp
33 lines (30 loc) · 896 Bytes
/
Client.hpp
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
/*********************************************************************
** Program Filename: Client.hpp [HEADER]
** Author: Shawn Hillyer
** Date: 11/06/2015
** Description: A Client class to handle user input and program
** output for a SearchSort object
** Input: User input at terminal to select options
** Output: Prints values to demonstrate searching/sorting
********************************************************************/
#ifndef SSHILLYER_CLIENT_HPP
#define SSHILLYER_CLIENT_HPP
#include "Menu.hpp"
#include "SearchSort.hpp"
#include <iostream>
#include <vector>
class Client
{
private:
Menu main_menu;
std::vector<SearchSort> data;
int prompt_search_key();
void perform_linear_search();
void perform_binary_search();
void perform_sort();
public:
Client();
void main_loop();
void exit() const;
};
#endif