-
Notifications
You must be signed in to change notification settings - Fork 0
/
Employee.cpp
45 lines (37 loc) · 1005 Bytes
/
Employee.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
//
// PROIekt - symulacja supermarketu
//
// Created by Ksawery Chodyniecki and Paweł Müller.
//
#include "Employee.hpp"
Employee::Employee(unsigned short argID, std::string argName, unsigned short argScanSpeed) {
/// Employee object constructor, a primitive version of
objID = argID;
name = argName;
occupied = false;
scanSpeed = argScanSpeed;
}
unsigned short Employee::getID() const {
/// returns the ID of Employee object
return objID;
}
std::string Employee::getName() const {
/// returns full name of this Employee
return name;
};
unsigned short Employee::getScanSpeed() const {
/// returns the scanSpeed of Employee object
return scanSpeed;
}
bool Employee::isOccupied() const {
/// returns current status of this Employee
return occupied;
};
void Employee::setFree() {
/// changes current status of this Employee into free
occupied = false;
};
void Employee::setBusy() {
/// changes current status of this Employee into busy
occupied = true;
};