-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBook.h
48 lines (43 loc) · 935 Bytes
/
Book.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
41
42
43
44
45
46
47
48
#pragma once
#include <string>
using namespace std;
#ifndef BOOK_H
#define BOOK_H
class Book {
private:
enum BookCategorie {
CULTURE,
SCIENCE,
FICTION
};
string serialNumber;
string title;
string author;
int pageCount;
int freePage;
int categorie;
bool visibilityStatus;
bool availabilityStatus;
public:
Book();
Book(string sn, string t, string a, int pc, int fp, bool vs, bool as, int c = -1);
~Book();
string getSerialNumber();
string getTitle();
string getAuthor();
int getPageCount();
int getFreePage();
string getCategorie();
bool getVisibilityStatus();
bool getAvailabilityStatus();
void setSerialNumber(string sn);
void setTitle(string);
void setAuthor(string);
void setPageCount(int);
void setFreePage(int);
void setCategorie(int);
void setVisibilityStatus(bool);
void setAvailabilityStatus(bool);
Book& operator=(const Book& b);
};
#endif