-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAttribute.cpp
More file actions
85 lines (70 loc) · 2.4 KB
/
Attribute.cpp
File metadata and controls
85 lines (70 loc) · 2.4 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
/*************************************************************************
Attribute - description
-------------------
début : $DATE$
copyright : (C) $YEAR$ par $AUTHOR$
e-mail : $EMAIL$
*************************************************************************/
//---------- Réalisation de la classe <Attribute> (fichier Attribute.cpp) ------------
//---------------------------------------------------------------- INCLUDE
//-------------------------------------------------------- Include système
#include <iostream>
using namespace std;
//------------------------------------------------------ Include personnel
#include "Attribute.h"
//------------------------------------------------------------- Constantes
//----------------------------------------------------------------- PUBLIC
//----------------------------------------------------- Méthodes publiques
// type Attribute::Méthode ( liste des paramètres )
// Algorithme :
//
//{
//} //----- Fin de Méthode
string Attribute::getAttributeID(void) const
{
return attributeID;
}
//------------------------------------------------- Surcharge d'opérateurs
Attribute &Attribute::operator=(const Attribute &unAttribute)
// Algorithme :
//
{
} //----- Fin de operator =
//-------------------------------------------- Constructeurs - destructeur
Attribute::Attribute(const Attribute &unAttribute)
// Algorithme :
//
{
#ifdef MAP
cout << "Appel au constructeur de copie de <Attribute>" << endl;
#endif
} //----- Fin de Attribute (constructeur de copie)
Attribute::Attribute()
// Algorithme :
//
{
#ifdef MAP
cout << "Appel au constructeur de <Attribute>" << endl;
#endif
} //----- Fin de Attribute
Attribute::Attribute(string id, string unit, string description)
// Algorithme :
//
{
#ifdef MAP
cout << "Appel au constructeur de <Attribute>" << endl;
#endif
this->attributeID = id;
this->unit = unit;
this->description = description;
} //----- Fin de Attribute
Attribute::~Attribute()
// Algorithme :
//
{
#ifdef MAP
cout << "Appel au destructeur de <Attribute>" << endl;
#endif
} //----- Fin de ~Attribute
//------------------------------------------------------------------ PRIVE
//----------------------------------------------------- Méthodes protégées