-
Notifications
You must be signed in to change notification settings - Fork 0
/
mark.h
93 lines (81 loc) · 2.05 KB
/
mark.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
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
85
86
87
88
89
90
91
92
93
#ifndef MARK_H
#define MARK_H
#include <QString>
#include <QVector>
#include "operation.h"
class mark
{
QString internalCode;
QString name;
int qty;
double weight;
//double prodTime;
QString shape;
QVector<double> dimensions;//ok?? is mai multe dimensiuni, in functie de shape
QString material;
QVector<operation> operations;
public:
mark(const QString &a, const QString &b, const int &c, const double &d,
const QString &f, const QVector<double> &g, const QString &h,const QVector<operation> &i) :
internalCode{a}, name{b}, qty{c}, weight{d}, shape{f},dimensions{g},
material{h},operations{i}{};
//copy constructor
mark(const mark &ot) : internalCode{ot.internalCode}, name{ot.name}, qty{ot.qty}, weight{ot.weight},
shape{ot.shape}, dimensions{ot.dimensions}, material{ot.material},
operations{ot.operations}{};
QString getInternalCode() const{
return internalCode;
}
QString getName() const{
return name;
}
int getQty(){
return qty;
}
double getWeight(){
return weight;
}
// int getNoOperations(){
// return noOperations;
// }
QString getShape(){
return shape;
}
QVector<double> getDimensions(){
return dimensions;
}
QString getMaterial(){
return material;
}
QVector<operation> getOperations(){
return operations;
}
void setInternalCode(QString a){
this->internalCode = a;
}
void setName(QString b){
this->name = b;
}
void setQty(int c){
this->qty = c;
}
void setWeight(double d){
this->weight = d;
}
// void setNoOperations(int e){
// this->noOperations = e;
// }
void setShape(QString shape){
this->shape = shape;
}
void setDimensions(QVector<double> v){
this->dimensions = v;
}
void setMaterial(QString m){
this->material = m;
}
void setOperations(QVector<operation> op){
this->operations = op;
}
};
#endif // MARK_H