-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathressource.h
40 lines (30 loc) · 878 Bytes
/
ressource.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
#ifndef RESSOURCE_H
#define RESSOURCE_H
#include "enum_string_type.h"
class ressource
{
protected:
int id;
string titre, auteur;
type_ressource type;
etat etat_actuel;
public:
ressource();
virtual ~ressource();
ressource(type_ressource _type, int _id, std::string _titre, std::string _auteur, etat etate);
virtual void show() const;
virtual void save(std::ofstream &infile) const;
virtual bool search(std::string str) const;
virtual void load(std::istream &file);
string getTitre() const;
void setTitre(const string &value);
string getAuteur() const;
void setAuteur(const string &value);
type_ressource getType() const;
void setType(const type_ressource &value);
int getId() const;
void setId(int value);
etat getEtat_actuel() const;
void setEtat_actuel(const etat &value);
};
#endif