-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsimpleJourney.h
56 lines (42 loc) · 2.02 KB
/
simpleJourney.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
/*************************************************************************
simpleJourney
-------------------
début : 27/11/2023
copyright : (C) 2023 par Jixiang, Adam, Clément, Louis
binome : B3311 et B3309
*************************************************************************/
//--- Interface de la classe <simpleJourney> (fichier simpleJourney.h) ---
#ifndef SIMPLEJOURNEY_H_
#define SIMPLEJOURNEY_H_
//--------------------------------------------------- Interfaces utilisées
#include "journey.h"
//------------------------------------------------------------------------
// Rôle de la classe <simpleJourney>
//
// This class represents a simpleJourney.
// It is used to store a journey that is composed of a start, an end and a transportMethod.
//
//------------------------------------------------------------------------
class SimpleJourney : public Journey {
//----------------------------------------------------------------- PUBLIC
public:
//-------------------------------------------- Constructeurs - destructeur
SimpleJourney(const char *start = "", const char *end = "", const char *transportMethod = "");
// Mode d'emploi :
// This function will create a simpleJourney with the given start, end and transportMethod.
// start : the start of the simpleJourney
// end : the end of the simpleJourney
// transportMethod : the transportMethod of the simpleJourney
// Contrat :
// The start, end and transportMethod must be valid strings.
virtual ~SimpleJourney();
//-------------------------------------------------------------- PROTECTED
protected:
//----------------------------------------------------- Attributs protégés
const char *_transportMethod;
//------------------------------------------------------------------ PRIVE
private:
//------------------------------------------------------- Méthodes privées
void show(void) const;
};
#endif