-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathorder.h
47 lines (38 loc) · 877 Bytes
/
order.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
#include <iostream>
#include <string.h>
#include "itemProduct.h"
#include "vendor.h"
#include "customer.h"
using namespace std;
#ifndef ORDER_H
#define ORDER_H
class Order{
private:
int index=0;
float totPrice;
char date[10];
itemProduct items[10];
Customer customer;
Vendor vendor;
public:
//constructor
Order(){};
Order(char *date, Customer cust, Vendor vend);
//transactional
void addItems(itemProduct itemList);
void addTotalValue(float value);
//getters
itemProduct * getItems();
itemProduct getItem(int index);
Customer getCustomer();
Vendor getVendor();
char * getDate();
float getTotPrice();
//setters
void setCustomer(Customer cus);
void setVendor(Vendor ven);
void setDate(char *dt);
void setTotPrice(float tot);
virtual void display();
};
#endif // ORDER_H