-
Notifications
You must be signed in to change notification settings - Fork 1
/
CD.h
63 lines (52 loc) · 1.31 KB
/
CD.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
#ifndef CD_H
#define CD_H
#include "Document.h"
/**
* \file CD.h
* \author Dutin Laure & Couradet Vanessa
* \brief Definition of CD class
*/
class CD : public Document
{
public:
/**
* \brief Add a new CD in the class
*/
CD();
/**
* \brief Add a new book in the class
* \param title the title of the CD
* \param autor teh autor of the CD
* \param style style of the CD
* \param pisteNumber the number of piste
*/
CD(std::string title, std::string autor, std::string style, int pisteNumber);
/**
* \brief Set the style
* \param style the new style
*/
void setStyle(const std::string& style);
/**
* \brief Set the pisteNumber
* \param pisteNumber the new number of piste
*/
void setPisteNumber(int pisteNumber);
/**
* \brief Return the style
* \return the style of the CD
*/
std::string getStyle() const;
/**
* \brief Return the number of piste
* \return the number of piste
*/
int getPisteNumber() const;
/**
* \brief Destructor
*/
virtual ~CD();
protected:
std::string _style;
int _pisteNumber;
};
#endif // CD_H