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.
122 lines
12 KiB
122 lines
12 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/core_logic/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_b5c97184117f1879a3567c3d06daf03f.html">core_logic</a></li> </ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="headertitle"><div class="title">client.h</div></div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<a href="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><span class="preprocessor">#ifndef SAE_101_CLIENT_H</span></div>
|
|
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="preprocessor">#define SAE_101_CLIENT_H</span></div>
|
|
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span> </div>
|
|
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span><span class="preprocessor">#include <stdio.h></span></div>
|
|
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span><span class="preprocessor">#include <stdlib.h></span></div>
|
|
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span> </div>
|
|
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span><span class="keywordtype">int</span> <a class="code hl_function" href="client_8h.html#a8bc792436cb2773b638667f7a898a625">charger_clients</a>(<span class="keywordtype">int</span> numeros[], <span class="keywordtype">float</span> cagnottes[], <span class="keywordtype">int</span> suspendues[], <span class="keywordtype">int</span> tPhysique);</div>
|
|
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span> </div>
|
|
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span><span class="keywordtype">void</span> <a class="code hl_function" href="client_8h.html#a08acbb5bd9bf4235f8d5cdd2edb0749a">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="l00043" name="l00043"></a><span class="lineno"> 43</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="l00044" name="l00044"></a><span class="lineno"> 44</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);</div>
|
|
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span> </div>
|
|
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span><span class="keywordtype">void</span> <a class="code hl_function" href="client_8h.html#ae12d225761d8ad5a091665228bfe676e">supprimer_article_du_panier</a>(<span class="keywordtype">int</span> panier[], <span class="keywordtype">int</span> quantites[], <span class="keywordtype">int</span> *taillePanier);</div>
|
|
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span> </div>
|
|
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span><span class="keywordtype">void</span> <a class="code hl_function" href="client_8h.html#a927a335cb51f714f0e6e89c49f2d0258">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="l00067" name="l00067"></a><span class="lineno"> 67</span> <span class="keywordtype">float</span> prixUnitaire[], <span class="keywordtype">int</span> quantites[]);</div>
|
|
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span> </div>
|
|
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span><span class="keywordtype">void</span> <a class="code hl_function" href="client_8h.html#affb9999893c1599e32ff604b5b50899d">modifier_quantite_article_panier</a>(<span class="keywordtype">int</span> panier[], <span class="keywordtype">int</span> quantites[], <span class="keywordtype">int</span> *taillePanier);</div>
|
|
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"> 77</span> </div>
|
|
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"> 85</span><span class="keywordtype">void</span> <a class="code hl_function" href="client_8h.html#acbac92090885f76ac2ea79c3449af58e">reinitialiser_panier</a>(<span class="keywordtype">int</span> panier[], <span class="keywordtype">int</span> quantites[], <span class="keywordtype">int</span> *taillePanier);</div>
|
|
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"> 86</span> </div>
|
|
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"> 97</span><span class="keywordtype">void</span> <a class="code hl_function" href="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="l00098" name="l00098"></a><span class="lineno"> 98</span> </div>
|
|
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"> 99</span><span class="preprocessor">#endif </span><span class="comment">// SAE_101_CLIENT_H</span></div>
|
|
<div class="ttc" id="aclient_8h_html_a08acbb5bd9bf4235f8d5cdd2edb0749a"><div class="ttname"><a href="client_8h.html#a08acbb5bd9bf4235f8d5cdd2edb0749a">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)</div><div class="ttdoc">Ajoute un article au panier du client.</div><div class="ttdef"><b>Definition</b> client.c:68</div></div>
|
|
<div class="ttc" id="aclient_8h_html_a7203df964d63cb07d7b19912d5e3c3bd"><div class="ttname"><a href="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éduit un montant de la cagnotte du client.</div><div class="ttdef"><b>Definition</b> client.c:319</div></div>
|
|
<div class="ttc" id="aclient_8h_html_a8bc792436cb2773b638667f7a898a625"><div class="ttname"><a href="client_8h.html#a8bc792436cb2773b638667f7a898a625">charger_clients</a></div><div class="ttdeci">int charger_clients(int numeros[], float cagnottes[], int suspendues[], int tPhysique)</div><div class="ttdoc">Charge les données des clients à partir d'un fichier.</div><div class="ttdef"><b>Definition</b> client.c:23</div></div>
|
|
<div class="ttc" id="aclient_8h_html_a927a335cb51f714f0e6e89c49f2d0258"><div class="ttname"><a href="client_8h.html#a927a335cb51f714f0e6e89c49f2d0258">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[])</div><div class="ttdoc">Affiche un récapitulatif du contenu du panier.</div><div class="ttdef"><b>Definition</b> client.c:211</div></div>
|
|
<div class="ttc" id="aclient_8h_html_acbac92090885f76ac2ea79c3449af58e"><div class="ttname"><a href="client_8h.html#acbac92090885f76ac2ea79c3449af58e">reinitialiser_panier</a></div><div class="ttdeci">void reinitialiser_panier(int panier[], int quantites[], int *taillePanier)</div><div class="ttdoc">Réinitialise le panier du client.</div><div class="ttdef"><b>Definition</b> client.c:302</div></div>
|
|
<div class="ttc" id="aclient_8h_html_ae12d225761d8ad5a091665228bfe676e"><div class="ttname"><a href="client_8h.html#ae12d225761d8ad5a091665228bfe676e">supprimer_article_du_panier</a></div><div class="ttdeci">void supprimer_article_du_panier(int panier[], int quantites[], int *taillePanier)</div><div class="ttdoc">Supprime un article du panier du client.</div><div class="ttdef"><b>Definition</b> client.c:165</div></div>
|
|
<div class="ttc" id="aclient_8h_html_affb9999893c1599e32ff604b5b50899d"><div class="ttname"><a href="client_8h.html#affb9999893c1599e32ff604b5b50899d">modifier_quantite_article_panier</a></div><div class="ttdeci">void modifier_quantite_article_panier(int panier[], int quantites[], int *taillePanier)</div><div class="ttdoc">Modifie la quantité d'un article dans le panier du client.</div><div class="ttdef"><b>Definition</b> client.c:258</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>
|