-
Notifications
You must be signed in to change notification settings - Fork 0
/
Station.h
38 lines (33 loc) · 857 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
// Name: Jagbir Singh
// Seneca Student ID: 144019221
// Seneca email: [email protected]
// Date of completion: 12/03/2024
//
// I confirm that I am the only author of this file
// and the content was created entirely by me.
#ifndef SENECA_STATION_H
#define SENECA_STATION_H
#include <iomanip>
#include "Utilities.h"
namespace seneca
{
class Station
{
size_t m_id = 0;
std::string m_name = "";
std::string m_description = "";
size_t m_serialNumber = 0;
size_t m_stock = 0;
static size_t m_widthField;
static size_t id_generator;
public:
Station() = default;
Station(const std::string& line);
const std::string& getItemName() const;
size_t getNextSerialNumber();
size_t getQuantity() const;
void updateQuantity();
void display(std::ostream& os, bool full) const;
};
}
#endif