-
Notifications
You must be signed in to change notification settings - Fork 0
/
order.cpp
71 lines (57 loc) · 1.04 KB
/
order.cpp
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
#include "order.h"
#include <QDebug>
Order::Order(std::vector<std::string> words, Status status, std::size_t experience, std::size_t price, Client client,
std::string solution = "")
{
words_ = words;
status_ = status;
experience_ = experience;
price_ = price;
client_ = client;
solution_ = solution;
}
vector<std::string> Order::get_words()
{
return words_;
}
Status Order::get_status()
{
return status_;
}
std::size_t Order::get_experience()
{
return experience_;
}
std::size_t Order::get_price()
{
return price_;
}
Client Order::get_client()
{
return client_;
}
std::string Order::get_solution()
{
return solution_;
}
// setters
void Order::set_status(Status status)
{
status_ = status;
}
void Order::set_experience(std::size_t experience)
{
experience_ = experience;
}
void Order::set_price(std::size_t price)
{
price_ = price;
}
void Order::set_client(Client client)
{
client_ = client;
}
void Order::set_solution(std::string solution)
{
solution_ = solution;
}