You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

223 lines
12 KiB

\doxysection{src/app/core\+\_\+logic/responsable.h File Reference}
\hypertarget{responsable_8h}{}\label{responsable_8h}\index{src/app/core\_logic/responsable.h@{src/app/core\_logic/responsable.h}}
Déclaration des fonctions de \doxylink{responsable_8c}{responsable.\+c}.
{\ttfamily \#include $<$stdio.\+h$>$}\newline
\doxysubsubsection*{Functions}
\begin{DoxyCompactItemize}
\item
int \mbox{\hyperlink{responsable_8h_a937ddfa15445cc5d2336130fb6567ce1}{chargement\+Articles}} (int t\+Ref\mbox{[}$\,$\mbox{]}, float t\+Poids\mbox{[}$\,$\mbox{]}, float t\+Vol\mbox{[}$\,$\mbox{]}, float t\+Prix\mbox{[}$\,$\mbox{]}, int t\+Physique)
\begin{DoxyCompactList}\small\item\em Charge les informations des articles à partir d\textquotesingle{}un fichier dans des tableaux. \end{DoxyCompactList}\item
void \mbox{\hyperlink{responsable_8h_ac9e79c89d04823f4b1b5572c9865e57d}{sauvegard\+Articles}} (int t\+Ref\mbox{[}$\,$\mbox{]}, float t\+Poids\mbox{[}$\,$\mbox{]}, float t\+Vol\mbox{[}$\,$\mbox{]}, float t\+Prix\mbox{[}$\,$\mbox{]}, int t\+Logique)
\begin{DoxyCompactList}\small\item\em Sauvegarde les informations des articles dans un fichier. \end{DoxyCompactList}\item
int \mbox{\hyperlink{responsable_8h_abce68a203cf18b85ebdad34e468815f0}{ajouter\+Article}} (int t\+Ref\mbox{[}$\,$\mbox{]}, float t\+Poids\mbox{[}$\,$\mbox{]}, float t\+Vol\mbox{[}$\,$\mbox{]}, float t\+Prix\mbox{[}$\,$\mbox{]}, int \texorpdfstring{$\ast$}{*}t\+Logique, int t\+Physique, int ref, float poids, float volume, float prix)
\begin{DoxyCompactList}\small\item\em Ajoute un nouvel article aux tableaux d\textquotesingle{}articles. \end{DoxyCompactList}\item
void \mbox{\hyperlink{responsable_8h_a33f342ec6aaff14efce87b42350d9bee}{recherche\+Ref\+Article}} (int t\+Ref\mbox{[}$\,$\mbox{]}, int ref, int \texorpdfstring{$\ast$}{*}index, int t\+Logique)
\begin{DoxyCompactList}\small\item\em Recherche une référence d\textquotesingle{}article dans le tableau t\+Ref. \end{DoxyCompactList}\item
void \mbox{\hyperlink{responsable_8h_a0f8076a332f73d1edca58cfaeb42167e}{supprimer\+Article}} (int t\+Ref\mbox{[}$\,$\mbox{]}, float t\+Poids\mbox{[}$\,$\mbox{]}, float t\+Vol\mbox{[}$\,$\mbox{]}, float t\+Prix\mbox{[}$\,$\mbox{]}, int \texorpdfstring{$\ast$}{*}t\+Logique)
\begin{DoxyCompactList}\small\item\em Supprime un article des tableaux d\textquotesingle{}articles. \end{DoxyCompactList}\item
void \mbox{\hyperlink{responsable_8h_ab02f9ff38b359630bc980bae859f7512}{modifier\+Article}} (int t\+Ref\mbox{[}$\,$\mbox{]}, float t\+Poids\mbox{[}$\,$\mbox{]}, float t\+Vol\mbox{[}$\,$\mbox{]}, float t\+Prix\mbox{[}$\,$\mbox{]}, int t\+Logique)
\begin{DoxyCompactList}\small\item\em Modifie les informations d\textquotesingle{}un article existant. \end{DoxyCompactList}\item
void \mbox{\hyperlink{responsable_8h_a185476dbf2dae604d3deb6a3085580a2}{ajouter\+Client}} (int t\+Num\+Client\mbox{[}$\,$\mbox{]}, float t\+Cagnotte\mbox{[}$\,$\mbox{]}, int t\+Sus\mbox{[}$\,$\mbox{]}, int \texorpdfstring{$\ast$}{*}t\+Logique, int t\+Physique)
\begin{DoxyCompactList}\small\item\em Ajoute un nouveau client aux tableaux de clients. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection{Detailed Description}
Déclaration des fonctions de \doxylink{responsable_8c}{responsable.\+c}.
\doxysubsection{Function Documentation}
\Hypertarget{responsable_8h_abce68a203cf18b85ebdad34e468815f0}\label{responsable_8h_abce68a203cf18b85ebdad34e468815f0}
\index{responsable.h@{responsable.h}!ajouterArticle@{ajouterArticle}}
\index{ajouterArticle@{ajouterArticle}!responsable.h@{responsable.h}}
\doxysubsubsection{\texorpdfstring{ajouterArticle()}{ajouterArticle()}}
{\footnotesize\ttfamily int ajouter\+Article (\begin{DoxyParamCaption}\item[{int}]{t\+Ref\mbox{[}$\,$\mbox{]}, }\item[{float}]{t\+Poids\mbox{[}$\,$\mbox{]}, }\item[{float}]{t\+Vol\mbox{[}$\,$\mbox{]}, }\item[{float}]{t\+Prix\mbox{[}$\,$\mbox{]}, }\item[{int \texorpdfstring{$\ast$}{*}}]{t\+Logique, }\item[{int}]{t\+Physique, }\item[{int}]{ref, }\item[{float}]{poids, }\item[{float}]{volume, }\item[{float}]{prix }\end{DoxyParamCaption})}
Ajoute un nouvel article aux tableaux d\textquotesingle{}articles.
Cette fonction ajoute un nouvel article aux tableaux t\+Ref, t\+Poids, t\+Vol, et t\+Prix et incrémente la taille logique.
\begin{DoxyParams}{Parameters}
{\em t\+Ref} & Tableau des références d\textquotesingle{}articles. \\
\hline
{\em t\+Poids} & Tableau des poids des articles. \\
\hline
{\em t\+Vol} & Tableau des volumes des articles. \\
\hline
{\em t\+Prix} & Tableau des prix unitaires des articles. \\
\hline
{\em t\+Logique} & Taille logique des tableaux. \\
\hline
{\em t\+Physique} & Taille physique des tableaux. \\
\hline
{\em ref} & Référence du nouvel article. \\
\hline
{\em poids} & Poids du nouvel article. \\
\hline
{\em volume} & Volume du nouvel article. \\
\hline
{\em prix} & Prix unitaire du nouvel article. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
0 en cas de succès, -\/2 si le tableau est plein.
\end{DoxyReturn}
\Hypertarget{responsable_8h_a185476dbf2dae604d3deb6a3085580a2}\label{responsable_8h_a185476dbf2dae604d3deb6a3085580a2}
\index{responsable.h@{responsable.h}!ajouterClient@{ajouterClient}}
\index{ajouterClient@{ajouterClient}!responsable.h@{responsable.h}}
\doxysubsubsection{\texorpdfstring{ajouterClient()}{ajouterClient()}}
{\footnotesize\ttfamily void ajouter\+Client (\begin{DoxyParamCaption}\item[{int}]{t\+Num\+Client\mbox{[}$\,$\mbox{]}, }\item[{float}]{t\+Cagnotte\mbox{[}$\,$\mbox{]}, }\item[{int}]{t\+Sus\mbox{[}$\,$\mbox{]}, }\item[{int \texorpdfstring{$\ast$}{*}}]{t\+Logique, }\item[{int}]{t\+Physique }\end{DoxyParamCaption})}
Ajoute un nouveau client aux tableaux de clients.
Cette fonction ajoute un nouveau client aux tableaux t\+Num\+Client, t\+Cagnotte et t\+Sus et incrémente la taille logique.
\begin{DoxyParams}{Parameters}
{\em t\+Num\+Client} & Tableau des numéros de client. \\
\hline
{\em t\+Cagnotte} & Tableau des cagnottes des clients. \\
\hline
{\em t\+Sus} & Tableau des états de suspension des clients. \\
\hline
{\em t\+Logique} & Pointeur vers la taille logique des tableaux. \\
\hline
{\em t\+Physique} & Taille physique des tableaux. \\
\hline
\end{DoxyParams}
\Hypertarget{responsable_8h_a937ddfa15445cc5d2336130fb6567ce1}\label{responsable_8h_a937ddfa15445cc5d2336130fb6567ce1}
\index{responsable.h@{responsable.h}!chargementArticles@{chargementArticles}}
\index{chargementArticles@{chargementArticles}!responsable.h@{responsable.h}}
\doxysubsubsection{\texorpdfstring{chargementArticles()}{chargementArticles()}}
{\footnotesize\ttfamily int chargement\+Articles (\begin{DoxyParamCaption}\item[{int}]{t\+Ref\mbox{[}$\,$\mbox{]}, }\item[{float}]{t\+Poids\mbox{[}$\,$\mbox{]}, }\item[{float}]{t\+Vol\mbox{[}$\,$\mbox{]}, }\item[{float}]{t\+Prix\mbox{[}$\,$\mbox{]}, }\item[{int}]{t\+Physique }\end{DoxyParamCaption})}
Charge les informations des articles à partir d\textquotesingle{}un fichier dans des tableaux.
Cette fonction lit les informations des articles à partir du fichier "{}donnee/articles.\+txt"{} et les stocke dans les tableaux t\+Ref, t\+Poids, t\+Vol, et t\+Prix.
\begin{DoxyParams}{Parameters}
{\em t\+Ref} & Tableau des références d\textquotesingle{}articles. \\
\hline
{\em t\+Poids} & Tableau des poids des articles. \\
\hline
{\em t\+Vol} & Tableau des volumes des articles. \\
\hline
{\em t\+Prix} & Tableau des prix unitaires des articles. \\
\hline
{\em t\+Physique} & Taille physique des tableaux. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
Le nombre d\textquotesingle{}articles chargés avec succès ou -\/1 en cas d\textquotesingle{}erreur.
\end{DoxyReturn}
\Hypertarget{responsable_8h_ab02f9ff38b359630bc980bae859f7512}\label{responsable_8h_ab02f9ff38b359630bc980bae859f7512}
\index{responsable.h@{responsable.h}!modifierArticle@{modifierArticle}}
\index{modifierArticle@{modifierArticle}!responsable.h@{responsable.h}}
\doxysubsubsection{\texorpdfstring{modifierArticle()}{modifierArticle()}}
{\footnotesize\ttfamily void modifier\+Article (\begin{DoxyParamCaption}\item[{int}]{t\+Ref\mbox{[}$\,$\mbox{]}, }\item[{float}]{t\+Poids\mbox{[}$\,$\mbox{]}, }\item[{float}]{t\+Vol\mbox{[}$\,$\mbox{]}, }\item[{float}]{t\+Prix\mbox{[}$\,$\mbox{]}, }\item[{int}]{t\+Logique }\end{DoxyParamCaption})}
Modifie les informations d\textquotesingle{}un article existant.
Cette fonction permet de modifier les informations (poids, volume, prix) d\textquotesingle{}un article existant.
\begin{DoxyParams}{Parameters}
{\em t\+Ref} & Tableau des références d\textquotesingle{}articles. \\
\hline
{\em t\+Poids} & Tableau des poids des articles. \\
\hline
{\em t\+Vol} & Tableau des volumes des articles. \\
\hline
{\em t\+Prix} & Tableau des prix unitaires des articles. \\
\hline
{\em t\+Logique} & Taille logique des tableaux. \\
\hline
\end{DoxyParams}
\Hypertarget{responsable_8h_a33f342ec6aaff14efce87b42350d9bee}\label{responsable_8h_a33f342ec6aaff14efce87b42350d9bee}
\index{responsable.h@{responsable.h}!rechercheRefArticle@{rechercheRefArticle}}
\index{rechercheRefArticle@{rechercheRefArticle}!responsable.h@{responsable.h}}
\doxysubsubsection{\texorpdfstring{rechercheRefArticle()}{rechercheRefArticle()}}
{\footnotesize\ttfamily void recherche\+Ref\+Article (\begin{DoxyParamCaption}\item[{int}]{t\+Ref\mbox{[}$\,$\mbox{]}, }\item[{int}]{ref, }\item[{int \texorpdfstring{$\ast$}{*}}]{index, }\item[{int}]{t\+Logique }\end{DoxyParamCaption})}
Recherche une référence d\textquotesingle{}article dans le tableau t\+Ref.
Cette fonction recherche une référence d\textquotesingle{}article dans le tableau t\+Ref et renvoie l\textquotesingle{}index si l\textquotesingle{}article est trouvé.
\begin{DoxyParams}{Parameters}
{\em t\+Ref} & Tableau des références d\textquotesingle{}articles. \\
\hline
{\em ref} & Référence de l\textquotesingle{}article à rechercher. \\
\hline
{\em index} & Pointeur vers la variable pour stocker l\textquotesingle{}index de l\textquotesingle{}article trouvé. \\
\hline
{\em t\+Logique} & Taille logique des tableaux. \\
\hline
\end{DoxyParams}
\Hypertarget{responsable_8h_ac9e79c89d04823f4b1b5572c9865e57d}\label{responsable_8h_ac9e79c89d04823f4b1b5572c9865e57d}
\index{responsable.h@{responsable.h}!sauvegardArticles@{sauvegardArticles}}
\index{sauvegardArticles@{sauvegardArticles}!responsable.h@{responsable.h}}
\doxysubsubsection{\texorpdfstring{sauvegardArticles()}{sauvegardArticles()}}
{\footnotesize\ttfamily void sauvegard\+Articles (\begin{DoxyParamCaption}\item[{int}]{t\+Ref\mbox{[}$\,$\mbox{]}, }\item[{float}]{t\+Poids\mbox{[}$\,$\mbox{]}, }\item[{float}]{t\+Vol\mbox{[}$\,$\mbox{]}, }\item[{float}]{t\+Prix\mbox{[}$\,$\mbox{]}, }\item[{int}]{t\+Logique }\end{DoxyParamCaption})}
Sauvegarde les informations des articles dans un fichier.
Cette fonction sauvegarde les informations des articles depuis les tableaux t\+Ref, t\+Poids, t\+Vol et t\+Prix dans le fichier "{}donnee/articles.\+txt"{}.
\begin{DoxyParams}{Parameters}
{\em t\+Ref} & Tableau des références d\textquotesingle{}articles. \\
\hline
{\em t\+Poids} & Tableau des poids des articles. \\
\hline
{\em t\+Vol} & Tableau des volumes des articles. \\
\hline
{\em t\+Prix} & Tableau des prix unitaires des articles. \\
\hline
{\em t\+Logique} & Taille logique des tableaux. \\
\hline
\end{DoxyParams}
\Hypertarget{responsable_8h_a0f8076a332f73d1edca58cfaeb42167e}\label{responsable_8h_a0f8076a332f73d1edca58cfaeb42167e}
\index{responsable.h@{responsable.h}!supprimerArticle@{supprimerArticle}}
\index{supprimerArticle@{supprimerArticle}!responsable.h@{responsable.h}}
\doxysubsubsection{\texorpdfstring{supprimerArticle()}{supprimerArticle()}}
{\footnotesize\ttfamily void supprimer\+Article (\begin{DoxyParamCaption}\item[{int}]{t\+Ref\mbox{[}$\,$\mbox{]}, }\item[{float}]{t\+Poids\mbox{[}$\,$\mbox{]}, }\item[{float}]{t\+Vol\mbox{[}$\,$\mbox{]}, }\item[{float}]{t\+Prix\mbox{[}$\,$\mbox{]}, }\item[{int \texorpdfstring{$\ast$}{*}}]{t\+Logique }\end{DoxyParamCaption})}
Supprime un article des tableaux d\textquotesingle{}articles.
Cette fonction supprime un article des tableaux t\+Ref, t\+Poids, t\+Vol, et t\+Prix et met à jour la taille logique.
\begin{DoxyParams}{Parameters}
{\em t\+Ref} & Tableau des références d\textquotesingle{}articles. \\
\hline
{\em t\+Poids} & Tableau des poids des articles. \\
\hline
{\em t\+Vol} & Tableau des volumes des articles. \\
\hline
{\em t\+Prix} & Tableau des prix unitaires des articles. \\
\hline
{\em t\+Logique} & Pointeur vers la taille logique des tableaux. \\
\hline
\end{DoxyParams}