-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathBook.h
78 lines (64 loc) · 1.69 KB
/
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#ifndef BOOK_H
#define BOOK_H
#include "Document.h"
/**
* \file Book.h
* \author Dutin Laure & Couradet Vanessa
* \brief Definition of Book class
*/
class Book : public Document
{
public:
/**
* \brief Add a new book in the class
*/
Book();
/**
* \brief Add a new book in the class
* \param title the title of the book
* \param autor the autor of the book
* \param resume A resume of the book
* \param editorYear the year of parution
* \param editor the editor of the book
*/
Book(std::string title, std::string autor, std::string resume, int editorYear, std::string editor);
/**
* \brief Set the resume
* \param resume the new resume
*/
void setResume(const std::string& resume);
/**
* \brief Set the editor year
* \param year the new editor year
*/
void setEditorYear(const int year);
/**
* \brief Set the editor
* \param editor the new editor
*/
void setEditor(const std::string& editor);
/**
* \brief Return the resume
* \return the resume of the book
*/
std::string getResume() const;
/**
* \brief Return the editor year
* \return the editor year
*/
int getEditorYear() const;
/**
* \brief Return the editor
* \return the editor
*/
std::string getEditor() const;
/**
* \brief Destructor
*/
virtual ~Book();
protected:
std::string _resume;
int _editorYear;
std::string _editor;
};
#endif // BOOK_H