-
Notifications
You must be signed in to change notification settings - Fork 0
/
Warehouse.h
38 lines (25 loc) · 935 Bytes
/
Warehouse.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
#ifndef WAREHOUSE_H
#define WAREHOUSE_H
class Warehouse
{
private:
int quantityGrass = 300;
int quantityMeat = 300;
int quantityFish = 300;
public:
Warehouse() = default;
int getQuantityGrass() const;
int getQuantityMeat() const;
int getQuantityFish() const;
void setQuantityGrass(int quantityGrass);
void setQuantityMeat(int quantityMeat);
void setQuantityFish(int quantityFish);
void loadWarehouseWithGrass();//Çàðåæäàíå íà ñêëàäà ñ òðåâà
void loadWarehouseWithMeat();//Çàðåæäàíå íà ñêëàäà ñ ìåñî
void loadWarehouseWithFish();//Çàðåæäàíå íà ñêëàäà ñ ðèáà
void loadWarehouse();//Çàðåæäàíå íà ñêëàäà ñ òðåâà, ìåñî è ðèáà
friend std::ostream& operator<<(std::ostream& out, const Warehouse& other);
void write(std::ofstream& out);//Çàïèñâàíå íà èíôîðìàöèÿ çà ñêëàäà â áèíàðåí ôàéë
void read(std::ifstream& in);//×åòåíå íà èíôîðìàöèÿ çà ñêëàäà îò áèíàðåí ôàéë
};
#endif