Projet Bee-Honey't  0.2
BTS SNIR LaSalle Avignon 2020
ruche.h
Aller à la documentation de ce fichier.
1 #ifndef RUCHE_H
2 #define RUCHE_H
3 
11 #include <QString>
12 
17 struct Ruche
18 {
19  QString nom;
20  QString topicTTN;
21  QString miseEnService;
22  QString adresse;
23  QString latitude;
24  QString longitude;
25  bool operator==(const Ruche &r) const
26  {
27  // le nom aussi ?
28  if(this->topicTTN != r.topicTTN)
29  return false;
30  return true;
31  }
32  bool operator!=(const Ruche &r) const
33  {
34  return !(*this == r);
35  }
36 };
37 
38 #endif // RUCHE_H
QString miseEnService
la date de mise en service
Definition: ruche.h:21
QString adresse
l&#39;adresse
Definition: ruche.h:22
QString topicTTN
le topic TTN associé à la ruche
Definition: ruche.h:20
Structure qui définit une ruche.
Definition: ruche.h:17
bool operator==(const Ruche &r) const
Definition: ruche.h:25
QString latitude
la latitude
Definition: ruche.h:23
QString nom
le nom de la ruche
Definition: ruche.h:19
QString longitude
la longitude
Definition: ruche.h:24
bool operator!=(const Ruche &r) const
Definition: ruche.h:32