-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMain.h
35 lines (28 loc) · 877 Bytes
/
Main.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
#pragma once
#include <QtWidgets/QApplication>
#include <qdebug.h>
#include<iostream>
#include <fstream>
#include <sstream>
#include <unordered_map>
#include <algorithm>
#include <vector>
#include <string>
#include "User.h"
#include "LinkedList.h"
#include <queue>
//Global variables
inline string loggedInUserID; //the currently logged in user
inline string chosenUserID = ""; //admin chosen user
//Main.cpp variables
inline unordered_map <string, User> userHash;
inline vector <string> hashKeysOrdered; //to maintain the order of insertion of hash table
inline queue <string> not_vaccinated;
inline LinkedList vaccinated;
//Main.cpp functions
void save_data(unordered_map<string, User>&, string);
void load_data(unordered_map<string, User>&, string);
void handlingDoses();
void deleteUser(string);
bool isDigitString(const string&);
string trim(const std::string& s);