-
Notifications
You must be signed in to change notification settings - Fork 0
/
CustomerOrder.h
59 lines (40 loc) · 1.25 KB
/
CustomerOrder.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
48
49
50
51
52
53
54
55
56
57
58
59
//Declaration of CustomerOrder class which manages and processes customer order objects
//File Name: CustomerOrder.h
//Author : Miraz Ahmed
//Date Last Modified : July 19, 2019
#ifndef SICT_CUSTOMERORDER_H
#define SICT_CUSTOMERORDER_H
#include <iostream>
#include "ItemSet.h"
#include "Utilities.h"
namespace sict {
struct ItemInfo;
class CustomerOrder
{
std::string custName{};
std::string prodName{};
ItemInfo* itemArray = nullptr;
size_t noOfItem{ 0 };
Utilities utilities;
public:
CustomerOrder();
CustomerOrder(const std::string&);
CustomerOrder(CustomerOrder&) = delete;
CustomerOrder(CustomerOrder&&);
~CustomerOrder();
void fillItem(ItemSet& item, std::ostream& os);
bool isFilled() const;
bool isItemFilled(const std::string& item) const;
std::string getNameProduct() const;
void display(std::ostream& os, bool showDetail = false) const;
CustomerOrder& operator=(CustomerOrder&) = delete;
CustomerOrder& operator=(CustomerOrder&&);
};
struct ItemInfo
{
std::string itemName{};
unsigned int itemSerial{ 0 };
bool filledStatus{ false };
};
}
#endif