-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathStation.h
40 lines (27 loc) · 860 Bytes
/
Station.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
/* I have done all the coding by myself and only copied the code that my professor provided to complete my workshops and assignments.
Name: Hayaturehman Ahmadzai
Email: [email protected]
Student ID: 122539166
Created on 2021-07-09.*/
#ifndef SDDS_STATION_H
#define SDDS_STATION_H
#include <string>
namespace sdds {
class Station {
int m_id;
std::string m_name;
std::string m_desc;
int m_nextSerial;
int m_stockQty;
static size_t m_widthField;
static size_t id_generator;
public:
Station(const std::string& record);
const std::string& getItemName() const;
size_t getNextSerialNumber();
size_t getQuantity() const;
void updateQuantity();
void display(std::ostream& os, bool full) const;
};
}
#endif //SDDS_STATION_H