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.
141 lines
19 KiB
141 lines
19 KiB
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
|
<meta name="generator" content="Doxygen 1.9.8"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>My Project: src/app/interface/interface_client.h Source File</title>
|
|
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="jquery.js"></script>
|
|
<script type="text/javascript" src="dynsections.js"></script>
|
|
<link href="search/search.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="search/searchdata.js"></script>
|
|
<script type="text/javascript" src="search/search.js"></script>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
|
</head>
|
|
<body>
|
|
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
|
<div id="titlearea">
|
|
<table cellspacing="0" cellpadding="0">
|
|
<tbody>
|
|
<tr id="projectrow">
|
|
<td id="projectalign">
|
|
<div id="projectname">My Project
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.9.8 -->
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
var searchBox = new SearchBox("searchBox", "search/",'.html');
|
|
/* @license-end */
|
|
</script>
|
|
<script type="text/javascript" src="menudata.js"></script>
|
|
<script type="text/javascript" src="menu.js"></script>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
$(function() {
|
|
initMenu('',true,false,'search.php','Search');
|
|
$(document).ready(function() { init_search(); });
|
|
});
|
|
/* @license-end */
|
|
</script>
|
|
<div id="main-nav"></div>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
$(document).ready(function() { init_codefold(0); });
|
|
/* @license-end */
|
|
</script>
|
|
<!-- window showing the filter options -->
|
|
<div id="MSearchSelectWindow"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
|
</div>
|
|
|
|
<!-- iframe showing the search results (closed by default) -->
|
|
<div id="MSearchResultsWindow">
|
|
<div id="MSearchResults">
|
|
<div class="SRPage">
|
|
<div id="SRIndex">
|
|
<div id="SRResults"></div>
|
|
<div class="SRStatus" id="Loading">Loading...</div>
|
|
<div class="SRStatus" id="Searching">Searching...</div>
|
|
<div class="SRStatus" id="NoMatches">No Matches</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="nav-path" class="navpath">
|
|
<ul>
|
|
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_5194e5fea318fda12687127c23f8aba1.html">app</a></li><li class="navelem"><a class="el" href="dir_9a14f97cc8a04806f17ae0e592fed671.html">interface</a></li> </ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="headertitle"><div class="title">interface_client.h</div></div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<a href="interface__client_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span> </div>
|
|
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span><span class="preprocessor">#ifndef INTERFACE_CLIENT_H</span></div>
|
|
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span><span class="preprocessor">#define INTERFACE_CLIENT_H</span></div>
|
|
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span> </div>
|
|
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span><span class="preprocessor">#include <stdio.h></span></div>
|
|
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span><span class="preprocessor">#include <string.h></span></div>
|
|
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span><span class="preprocessor">#include "../core_logic/client.h"</span></div>
|
|
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span><span class="preprocessor">#include "../core_logic/responsable.h"</span></div>
|
|
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span><span class="preprocessor">#include "../interface/interface_resp.h"</span></div>
|
|
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span> </div>
|
|
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span><span class="keywordtype">void</span> <a class="code hl_function" href="interface__client_8h.html#a0ee281249d9a07abd6143449b761d212">affiche_client</a>(<span class="keywordtype">void</span>);</div>
|
|
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span> </div>
|
|
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span><span class="keywordtype">void</span> <a class="code hl_function" href="interface__client_8h.html#a49de18c6560633af132a56085d28a8ba">menu_client</a>(<span class="keywordtype">int</span> *choix);</div>
|
|
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span> </div>
|
|
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span><span class="keywordtype">void</span> <a class="code hl_function" href="interface__client_8h.html#aa92d76f0c1463d0ad7d6479e6c27e99e">ajouter_article_au_panier</a>(<span class="keywordtype">int</span> numeroClient, <span class="keywordtype">int</span> references[], <span class="keywordtype">float</span> poids[], <span class="keywordtype">float</span> volume[], <span class="keywordtype">float</span> prixUnitaire[],</div>
|
|
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span> <span class="keywordtype">int</span> numeros[], <span class="keywordtype">float</span> cagnottes[], <span class="keywordtype">int</span> suspendues[], <span class="keywordtype">int</span> nombreArticles, <span class="keywordtype">int</span> nombreClients,</div>
|
|
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span> <span class="keywordtype">float</span> volumeCoffre, <span class="keywordtype">float</span> chargeMaximale, <span class="keywordtype">int</span> panier[], <span class="keywordtype">int</span> quantites[], <span class="keywordtype">int</span> *taillePanier, <span class="keywordtype">float</span> budget);</div>
|
|
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span> </div>
|
|
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span><span class="keywordtype">void</span> <a class="code hl_function" href="interface__client_8h.html#a31471d992b6f14d5249bbb6efdeec3cd">supprimer_article_du_panier</a>(<span class="keywordtype">int</span> panier[], <span class="keywordtype">int</span> quantites[], <span class="keywordtype">int</span> *taillePanier, <span class="keywordtype">float</span> cagnottes[], <span class="keywordtype">int</span> numeroClient, <span class="keywordtype">int</span> numeros[], <span class="keywordtype">int</span> nombreClients, <span class="keywordtype">int</span> references[], <span class="keywordtype">float</span> prixUnitaire[]);</div>
|
|
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span> </div>
|
|
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"> 89</span><span class="keywordtype">void</span> <a class="code hl_function" href="interface__client_8h.html#aa7f83065dbcf53ea2df22f9724c47470">affiche_recap_panier</a>(<span class="keywordtype">int</span> panier[], <span class="keywordtype">int</span> taillePanier, <span class="keywordtype">int</span> references[], <span class="keywordtype">float</span> poids[], <span class="keywordtype">float</span> volume[],</div>
|
|
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"> 90</span> <span class="keywordtype">float</span> prixUnitaire[], <span class="keywordtype">int</span> quantites[], <span class="keywordtype">float</span> cagnottes[], <span class="keywordtype">int</span> numeroClient,</div>
|
|
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"> 91</span> <span class="keywordtype">int</span> numeros[], <span class="keywordtype">int</span> nombreClients, <span class="keywordtype">float</span> volumeCoffre, <span class="keywordtype">float</span> chargeMaximale, <span class="keywordtype">float</span> budget);</div>
|
|
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"> 92</span> </div>
|
|
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno"> 104</span><span class="keywordtype">void</span> <a class="code hl_function" href="interface__client_8h.html#a7caca9094610ed2dfcbfe0b350b678cf">configurer_session_client</a>(<span class="keywordtype">int</span> numeros[], <span class="keywordtype">int</span> suspendus[], <span class="keywordtype">int</span> nombreClients, <span class="keywordtype">double</span> *budget, <span class="keywordtype">float</span> *volumeCoffre, <span class="keywordtype">float</span> *chargeMaximale, <span class="keywordtype">int</span> *numeroClient);</div>
|
|
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno"> 105</span> </div>
|
|
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno"> 119</span><span class="keywordtype">void</span> <a class="code hl_function" href="interface__client_8h.html#a87e47382ab2c90e6d5949fa78f50900e">modifier_quantite_article_panier</a>(<span class="keywordtype">int</span> panier[], <span class="keywordtype">int</span> quantites[], <span class="keywordtype">int</span> *taillePanier, <span class="keywordtype">float</span> cagnottes[], <span class="keywordtype">int</span> numeroClient, <span class="keywordtype">float</span> prixUnitaire[], <span class="keywordtype">int</span> references[], <span class="keywordtype">int</span> nombreClients, <span class="keywordtype">int</span> numeros[]);</div>
|
|
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno"> 120</span> </div>
|
|
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno"> 134</span><span class="keywordtype">void</span> <a class="code hl_function" href="interface__client_8h.html#ac55e8aab165ed0541827f10be23c9d97">reinitialiser_panier</a>(<span class="keywordtype">int</span> panier[], <span class="keywordtype">int</span> quantites[], <span class="keywordtype">int</span> *taillePanier, <span class="keywordtype">float</span> cagnottes[], <span class="keywordtype">int</span> numeroClient, <span class="keywordtype">int</span> numeros[], <span class="keywordtype">int</span> nombreClients, <span class="keywordtype">int</span> references[], <span class="keywordtype">float</span> prixUnitaire[]);</div>
|
|
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno"> 135</span> </div>
|
|
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno"> 146</span><span class="keywordtype">void</span> <a class="code hl_function" href="interface__client_8h.html#a7203df964d63cb07d7b19912d5e3c3bd">deduire_cagnotte</a>(<span class="keywordtype">int</span> numeroClient, <span class="keywordtype">float</span> montant, <span class="keywordtype">int</span> numeros[], <span class="keywordtype">float</span> cagnottes[], <span class="keywordtype">int</span> nombreClients, <span class="keywordtype">int</span> suspendus[]);</div>
|
|
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno"> 147</span> </div>
|
|
<div class="line"><a id="l00165" name="l00165"></a><span class="lineno"> 165</span><span class="keywordtype">void</span> <a class="code hl_function" href="interface__client_8h.html#a75ce35e6cd3b58c6359897a8aa131509">quitter_application</a>(<span class="keywordtype">int</span> panier[], <span class="keywordtype">int</span> taillePanier, <span class="keywordtype">int</span> references[], <span class="keywordtype">float</span> poids[], <span class="keywordtype">float</span> volume[],</div>
|
|
<div class="line"><a id="l00166" name="l00166"></a><span class="lineno"> 166</span> <span class="keywordtype">float</span> prixUnitaire[], <span class="keywordtype">int</span> quantites[], <span class="keywordtype">float</span> cagnottes[], <span class="keywordtype">int</span> numeroClient,</div>
|
|
<div class="line"><a id="l00167" name="l00167"></a><span class="lineno"> 167</span> <span class="keywordtype">int</span> numeros[], <span class="keywordtype">int</span> nombreClients, <span class="keywordtype">float</span> budget, <span class="keywordtype">int</span> suspendus[]);</div>
|
|
<div class="line"><a id="l00168" name="l00168"></a><span class="lineno"> 168</span> </div>
|
|
<div class="line"><a id="l00172" name="l00172"></a><span class="lineno"> 172</span><span class="keywordtype">void</span> <a class="code hl_function" href="interface__client_8h.html#a40507f288c72ef9b92d113990bc0ed40">global_client</a>(<span class="keywordtype">void</span>);</div>
|
|
<div class="line"><a id="l00173" name="l00173"></a><span class="lineno"> 173</span> </div>
|
|
<div class="line"><a id="l00174" name="l00174"></a><span class="lineno"> 174</span><span class="preprocessor">#endif </span><span class="comment">// INTERFACE_CLIENT_H</span></div>
|
|
<div class="ttc" id="ainterface__client_8h_html_a0ee281249d9a07abd6143449b761d212"><div class="ttname"><a href="interface__client_8h.html#a0ee281249d9a07abd6143449b761d212">affiche_client</a></div><div class="ttdeci">void affiche_client(void)</div><div class="ttdoc">Afficher les informations du client.</div><div class="ttdef"><b>Definition</b> interface_client.c:5</div></div>
|
|
<div class="ttc" id="ainterface__client_8h_html_a31471d992b6f14d5249bbb6efdeec3cd"><div class="ttname"><a href="interface__client_8h.html#a31471d992b6f14d5249bbb6efdeec3cd">supprimer_article_du_panier</a></div><div class="ttdeci">void supprimer_article_du_panier(int panier[], int quantites[], int *taillePanier, float cagnottes[], int numeroClient, int numeros[], int nombreClients, int references[], float prixUnitaire[])</div><div class="ttdoc">Supprimer un article du panier du client.</div><div class="ttdef"><b>Definition</b> interface_client.c:122</div></div>
|
|
<div class="ttc" id="ainterface__client_8h_html_a40507f288c72ef9b92d113990bc0ed40"><div class="ttname"><a href="interface__client_8h.html#a40507f288c72ef9b92d113990bc0ed40">global_client</a></div><div class="ttdeci">void global_client(void)</div><div class="ttdoc">Exécute l'ensemble des fonctions de l'interface client.</div><div class="ttdef"><b>Definition</b> interface_client.c:423</div></div>
|
|
<div class="ttc" id="ainterface__client_8h_html_a49de18c6560633af132a56085d28a8ba"><div class="ttname"><a href="interface__client_8h.html#a49de18c6560633af132a56085d28a8ba">menu_client</a></div><div class="ttdeci">void menu_client(int *choix)</div><div class="ttdoc">Afficher le menu du client et enregistrer le choix de l'utilisateur.</div><div class="ttdef"><b>Definition</b> interface_client.c:414</div></div>
|
|
<div class="ttc" id="ainterface__client_8h_html_a7203df964d63cb07d7b19912d5e3c3bd"><div class="ttname"><a href="interface__client_8h.html#a7203df964d63cb07d7b19912d5e3c3bd">deduire_cagnotte</a></div><div class="ttdeci">void deduire_cagnotte(int numeroClient, float montant, int numeros[], float cagnottes[], int nombreClients, int suspendus[])</div><div class="ttdoc">Déduire un montant de la cagnotte du client.</div><div class="ttdef"><b>Definition</b> interface_client.c:311</div></div>
|
|
<div class="ttc" id="ainterface__client_8h_html_a75ce35e6cd3b58c6359897a8aa131509"><div class="ttname"><a href="interface__client_8h.html#a75ce35e6cd3b58c6359897a8aa131509">quitter_application</a></div><div class="ttdeci">void quitter_application(int panier[], int taillePanier, int references[], float poids[], float volume[], float prixUnitaire[], int quantites[], float cagnottes[], int numeroClient, int numeros[], int nombreClients, float budget, int suspendus[])</div><div class="ttdoc">Quitter l'application client.</div><div class="ttdef"><b>Definition</b> interface_client.c:335</div></div>
|
|
<div class="ttc" id="ainterface__client_8h_html_a7caca9094610ed2dfcbfe0b350b678cf"><div class="ttname"><a href="interface__client_8h.html#a7caca9094610ed2dfcbfe0b350b678cf">configurer_session_client</a></div><div class="ttdeci">void configurer_session_client(int numeros[], int suspendus[], int nombreClients, double *budget, float *volumeCoffre, float *chargeMaximale, int *numeroClient)</div><div class="ttdoc">Configurer la session client.</div><div class="ttdef"><b>Definition</b> interface_client.c:214</div></div>
|
|
<div class="ttc" id="ainterface__client_8h_html_a87e47382ab2c90e6d5949fa78f50900e"><div class="ttname"><a href="interface__client_8h.html#a87e47382ab2c90e6d5949fa78f50900e">modifier_quantite_article_panier</a></div><div class="ttdeci">void modifier_quantite_article_panier(int panier[], int quantites[], int *taillePanier, float cagnottes[], int numeroClient, float prixUnitaire[], int references[], int nombreClients, int numeros[])</div><div class="ttdoc">Modifier la quantité d'un article dans le panier du client.</div><div class="ttdef"><b>Definition</b> interface_client.c:262</div></div>
|
|
<div class="ttc" id="ainterface__client_8h_html_aa7f83065dbcf53ea2df22f9724c47470"><div class="ttname"><a href="interface__client_8h.html#aa7f83065dbcf53ea2df22f9724c47470">affiche_recap_panier</a></div><div class="ttdeci">void affiche_recap_panier(int panier[], int taillePanier, int references[], float poids[], float volume[], float prixUnitaire[], int quantites[], float cagnottes[], int numeroClient, int numeros[], int nombreClients, float volumeCoffre, float chargeMaximale, float budget)</div><div class="ttdoc">Afficher un récapitulatif du panier du client.</div><div class="ttdef"><b>Definition</b> interface_client.c:148</div></div>
|
|
<div class="ttc" id="ainterface__client_8h_html_aa92d76f0c1463d0ad7d6479e6c27e99e"><div class="ttname"><a href="interface__client_8h.html#aa92d76f0c1463d0ad7d6479e6c27e99e">ajouter_article_au_panier</a></div><div class="ttdeci">void ajouter_article_au_panier(int numeroClient, int references[], float poids[], float volume[], float prixUnitaire[], int numeros[], float cagnottes[], int suspendues[], int nombreArticles, int nombreClients, float volumeCoffre, float chargeMaximale, int panier[], int quantites[], int *taillePanier, float budget)</div><div class="ttdoc">Ajouter des articles au panier du client.</div><div class="ttdef"><b>Definition</b> interface_client.c:24</div></div>
|
|
<div class="ttc" id="ainterface__client_8h_html_ac55e8aab165ed0541827f10be23c9d97"><div class="ttname"><a href="interface__client_8h.html#ac55e8aab165ed0541827f10be23c9d97">reinitialiser_panier</a></div><div class="ttdeci">void reinitialiser_panier(int panier[], int quantites[], int *taillePanier, float cagnottes[], int numeroClient, int numeros[], int nombreClients, int references[], float prixUnitaire[])</div><div class="ttdoc">Réinitialiser le panier du client.</div><div class="ttdef"><b>Definition</b> interface_client.c:304</div></div>
|
|
</div><!-- fragment --></div><!-- contents -->
|
|
<!-- start footer part -->
|
|
<hr class="footer"/><address class="footer"><small>
|
|
Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.8
|
|
</small></address>
|
|
</body>
|
|
</html>
|