forked from ChicoState/NotPOSPOS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
26 lines (24 loc) · 651 Bytes
/
main.cpp
File metadata and controls
26 lines (24 loc) · 651 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
#include <iostream>
#include <iomanip>
#include <string>
#include "order.h"
#include "item.h"
#include "StoreInventory.h"
#include "cashierView.h"
#include "registerController.h"
#include "keypadController.h"
const char DB_FILE[] = "fruit.db";
int main()
{
StoreInventory inventory (DB_FILE);
std::cout<<"======================\n"
<<"NotPOSPOS Version 0.1\n"
<<"======================\n";
order currentOrder;
keypadController keypad(¤tOrder);
registerController ticket(&inventory, ¤tOrder);
currentOrder.addObserver(&keypad);
currentOrder.addObserver(&ticket);
ticket.processOrder();
return 0;
}