-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEmployee.hpp
39 lines (33 loc) · 922 Bytes
/
Employee.hpp
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
//
// PROIekt - symulacja supermarketu
//
// Created by Ksawery Chodyniecki and Paweł Müller.
//
#ifndef Employee_hpp
#define Employee_hpp
#include <string>
class EmployeeInterface {
public:
virtual unsigned short getID() const = 0;
virtual unsigned short getScanSpeed() const = 0;
virtual std::string getName() const = 0;
virtual bool isOccupied() const = 0;
virtual void setFree() = 0;
virtual void setBusy() = 0;
};
class Employee {
/// Employee object, eaech representing a single employee
unsigned short objID;
std::string name;
bool occupied;
unsigned short scanSpeed;
public:
Employee(unsigned short argID, std::string argName, unsigned short scanSpeed);
unsigned short getID() const;
unsigned short getScanSpeed() const;
std::string getName() const;
bool isOccupied() const;
void setFree();
void setBusy();
};
#endif /* Employee_hpp */