-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCoordGPS.cpp
More file actions
103 lines (85 loc) · 2.62 KB
/
CoordGPS.cpp
File metadata and controls
103 lines (85 loc) · 2.62 KB
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
/*************************************************************************
CoordGPS - description
-------------------
début : $DATE$
copyright : (C) $YEAR$ par $AUTHOR$
e-mail : $EMAIL$
*************************************************************************/
//---------- Réalisation de la classe <CoordGPS> (fichier CoordGPS.cpp) ------------
//---------------------------------------------------------------- INCLUDE
//-------------------------------------------------------- Include système
#include <iostream>
using namespace std;
//------------------------------------------------------ Include personnel
#include "CoordGPS.h"
//------------------------------------------------------------- Constantes
//----------------------------------------------------------------- PUBLIC
//----------------------------------------------------- Méthodes publiques
// type CoordGPS::Méthode ( liste des paramètres )
// Algorithme :
//
//{
//} //----- Fin de Méthode
float CoordGPS::GetLat(void) const
{
return this->latitude;
}
float CoordGPS::GetLng(void) const
{
return this->longitude;
}
void CoordGPS::SetLat(float lat)
{
this->latitude = lat;
}
void CoordGPS::SetLng(float lng)
{
this->latitude = lng;
}
//------------------------------------------------- Surcharge d'opérateurs
CoordGPS &CoordGPS::operator=(const CoordGPS &unCoordGPS)
// Algorithme :
//
{
} //----- Fin de operator =
//-------------------------------------------- Constructeurs - destructeur
CoordGPS::CoordGPS(const CoordGPS &unCoordGPS)
// Algorithme :
//
{
#ifdef MAP
cout << "Appel au constructeur de copie de <CoordGPS>" << endl;
#endif
latitude = unCoordGPS.latitude;
longitude = unCoordGPS.longitude;
} //----- Fin de CoordGPS (constructeur de copie)
CoordGPS::CoordGPS(float lat, float lng)
// Algorithme :
//
{
#ifdef MAP
cout << "Appel au constructeur de <CoordGPS>" << endl;
#endif
latitude = lat;
longitude = lng;
} //----- Fin de CoordGPS
CoordGPS::CoordGPS()
// Algorithme :
//
{
#ifdef MAP
cout << "Appel au constructeur de <CoordGPS>" << endl;
#endif
latitude = 0.0;
longitude = 0.0;
} //----- Fin de CoordGPS
CoordGPS::~CoordGPS()
// Algorithme :
//
{
#ifdef MAP
cout << "Appel au destructeur de <CoordGPS>" << endl;
#endif
} //----- Fin de ~CoordGPS
//------------------------------------------------------------------ PRIVE
//----------------------------------------------------- Méthodes protégées