-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheaderA.h
More file actions
84 lines (79 loc) · 1.58 KB
/
headerA.h
File metadata and controls
84 lines (79 loc) · 1.58 KB
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
#include "stdafx.h"
#include "headerN.h"
class Console
{
public:
static void printStartInfo();
static void printInfo(string);
static void printMenuInfo();
static string getDate();
};
class Date
{
public:
struct tm date;
string dateStr;
private:
void dateToStr();
public:
string isDateValid(string);
bool isPeriodValid(struct tm, struct tm);
void swapPeriodDates(struct tm*, struct tm*);
string dateToStr(struct tm);
struct tm strToDate(string);
struct tm setTodayDate();
void setDate(struct tm);
unsigned int countDays(struct tm, struct tm);
};
class Report
{
private:
int reportType; // [1..4]
struct tm date1;
struct tm date2;
public:
unsigned int amountDays;
string reportPath;
public:
void setReportType();
int getReportType();
void setDate1(struct tm);
struct tm getDate1();
void setDate2(struct tm);
struct tm getDate2();
void clearFile();
void printDate(string path, string date);
};
class DayData
{
private:
Position_in_kc* orders;
public:
Menu menu;
Checks checks;
Kitchen kitchen;
Date date;
Report report;
double moneyLose;
public:
void inputData();
int calculationOrders();
double countLoses();
void printLoses(string);
};
class Cafe
{
private:
DayData* dd;
public:
map<string, DayData*> dataThatDay;
public:
~Cafe();
void start();
void theftDish();
int callFunc(bool flag);
int callFuncCycle(int i, bool flag); // flag = true if âûçâàí îò÷åò ïî êðàæàì, false if ñòàòèñòèêà ïî çàêàçàì
void ordersStats();
void printTotalStats();
void menuChanges(string, string);
};