-
Notifications
You must be signed in to change notification settings - Fork 0
/
System.hpp
50 lines (41 loc) · 983 Bytes
/
System.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#pragma once
#include <iostream>
#include <vector>
#include "Till.hpp"
#include "User.hpp"
#include "Item.hpp"
#include <FL/Fl.H>
#include <FL/Fl_Window.H>
#include <FL/Fl_Button.H>
#include <Fl/Fl_Box.H>
#include <FL/Fl_Text_Display.H>
#include <FL/Fl_Input.H>
#include <FL/Fl_PNG_Image.H>
#include <FL/Fl_Clock.H>
#include <FL/fl_ask.H>
#include <FL/Fl_Choice.H>
#include <fstream>
#include <sstream>
#include <string>
class System
{
public:
System();
void posMain(User* currentUser);
void resetSettings();
bool retrieveSettings();
User* login();
void setNewUser(User* newUser);
std::vector<User*>& getUserlist();
std::vector<Food>& getFoodList();
std::vector<char*>& getOrder2Free();
private:
std::vector<User*> userList;
std::vector<Food> foodList;
std::vector<Beverage> beverageList;
std::vector<char*> order2free;
};
struct UIComp;
struct mainData;
void createFoodItems(std::vector<Food>& foodItems);
std::shared_ptr<std::string> dailyMesssageDemo();