#include <exigence.h>

Public Member Functions | |
| Exigence (const std::string &id) | |
| Constructeur pour initialiser une exigence avec un identifiant. | |
| std::string | getId () const |
| getId | |
| std::string | toString () const |
| toString | |
| Exigence::Exigence | ( | const std::string & | id | ) |
Constructeur pour initialiser une exigence avec un identifiant.
Ce constructeur initialise une instance de la classe "Exigence" avec un identifiant spécifique.
| id | L'identifiant de l'exigence. |

| std::string Exigence::getId | ( | ) | const |
getId
Récupère l'identifiant de l'exigence.
Cette méthode retourne l'identifiant de l'exigence sous forme de chaîne de caractères.

| std::string Exigence::toString | ( | ) | const |
toString
Retourne une représentation textuelle de l’exigence.
Cette méthode retourne une chaîne de caractères du type "Id : <identifiant>". Si l’attribut "id" est vide, elle retourne une chaîne vide afin d’éviter d'afficher des exigences sans identifiant.