TraceX
 
Loading...
Searching...
No Matches
Exigence Class Reference

#include <exigence.h>

Inheritance diagram for Exigence:

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
 

Constructor & Destructor Documentation

◆ Exigence()

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.

Parameters
idL'identifiant de l'exigence.
Here is the caller graph for this function:

Member Function Documentation

◆ getId()

std::string Exigence::getId ( ) const

getId

Récupère l'identifiant de l'exigence.

Returns
retourne l'attribut 'id' (l'identifiant de l'exigence = nom de l'exigence)
Author
Malek

Cette méthode retourne l'identifiant de l'exigence sous forme de chaîne de caractères.

Returns
std::string L'identifiant de l'exigence.
Author
Malek
Here is the caller graph for this function:

◆ toString()

std::string Exigence::toString ( ) const

toString

Retourne une représentation textuelle de l’exigence.

Returns
retourne une chaine de caractères de la forme (attribut : valeurs)
Author
Malek

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.

Returns
Une chaîne de caractères décrivant l’exigence, ou une chaîne vide si l’id est vide.
Author
Jacques Zheng
Date
02/05/2025

The documentation for this class was generated from the following files: