-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRider.h
More file actions
60 lines (43 loc) · 966 Bytes
/
Copy pathRider.h
File metadata and controls
60 lines (43 loc) · 966 Bytes
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
#ifndef RIDER_H
#define RIDER_H
#include <string>
#include <iostream>
#include <sstream>
#include <mysql.h>
#include <functional>
#include "sha256.h"
#include "External.h"
#include <boost/algorithm/string.hpp>
using namespace std;
#pragma once
struct RiderDetails {
int id;
string username;
string password;
string phone;
string name;
};
class Rider {
private:
int riderID;
string riderName, riderUsername, riderPass, riderPhone;
RiderDetails data[100];
vector<vector<string>> order;
public:
Rider();
~Rider();
bool login(string, string, int);
void registerRider(MYSQL*);
string inputNoPhone();
int fetchData(MYSQL_RES*);
void viewProfile(function<void()>, MYSQL*);
void selectOrderDetails(MYSQL*, int, int&);
void viewOrderDetails(MYSQL*, int);
void updateDeliveryStatus(MYSQL*, int);
vector<vector<string>> getOrder();
void fetchOrder(vector<vector<string>>);
string getName();
int getID();
string getPassword();
};
#endif