forked from jacobjhicks/BuildingClassCIT241
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathOrder.h
40 lines (32 loc) · 785 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
#include <string>
#include <iostream>
#include <sstream>
#include <vector>
#include "Date.h"
#include <list>
#include "orderItem.h"
#pragma once
using namespace std;
class Order
{
friend ostream& operator<<(ostream& out, Order & rightOrder);
public:
Order();
Order(string orderID, Date orderDate, Date deliveryDate);
~Order();
bool isOrder(string inStr);
bool operator==(Order& rhs);
bool operator<(Order& rhs);
string printOrder();
void addOrderItem(const orderItem& inItem);
void removeOrderItem(orderItem& inItem);
string getOrderID();
Date getOrderDate();
Date getDeliveryDate();
// orderitem& findOrderItem(string itemid);
private:
string orderID;
Date orderDate;
Date deliveryDate;
list<orderItem> orderItems;
};