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.
134 lines
17 KiB
134 lines
17 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.5"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>My Project: /Users/alloux/SAE102_2022_GOIGOUX_JEUDI/src/II/deux.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.5 -->
|
|
<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>
|
|
<!-- 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_9170cd96d41fdbdbf8a9ef7aa4556cb5.html">II</a></li> </ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="headertitle"><div class="title">deux.h</div></div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<a href="deux_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="l00010" name="l00010"></a><span class="lineno"> 10</span><span class="comment">//FONCTIONS ET DOCUMENTATION</span></div>
|
|
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span> </div>
|
|
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span><a class="code hl_struct" href="struct_candidat.html">Candidat</a>* <a class="code hl_function" href="deux_8h.html#a9fd89bafa880d71f757f84466bd9141d">creerCandidat</a>(<span class="keywordtype">void</span>);</div>
|
|
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span> </div>
|
|
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span><a class="code hl_struct" href="struct_candidature.html">Candidature</a>* <a class="code hl_function" href="deux_8h.html#a8a7f12cc6517d640aea8a0d80797737a">creerCandidature</a>(<span class="keywordtype">void</span>);</div>
|
|
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</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="deux_8h.html#a54eb9bc5dbdbdb457257dbd4727ec59f">ajouterCandidat</a>(<a class="code hl_struct" href="struct_candidat.html">ListeCandidats</a>* listePointer, <span class="keywordtype">int</span>* nbCandidats, <a class="code hl_struct" href="struct_candidat.html">Candidat</a>* candidat);</div>
|
|
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span> </div>
|
|
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span><span class="keywordtype">void</span> <a class="code hl_function" href="deux_8h.html#a581b991f3ee0dc610d684f27dce120ae">ajouterCandidature</a>(<a class="code hl_struct" href="struct_candidat.html">Candidat</a>* candidat, <a class="code hl_struct" href="struct_candidature.html">Candidature</a>* candidature);</div>
|
|
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span> </div>
|
|
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span><span class="keywordtype">void</span> <a class="code hl_function" href="deux_8h.html#a346ec11b7cfecb53142039ba1125e31e">menuCandidat_candidater</a>(<a class="code hl_struct" href="struct_ville_i_u_t.html">VilleIUT</a>** tiut, <span class="keywordtype">int</span> nbVilles, <a class="code hl_struct" href="struct_candidat.html">Candidat</a>* candidat);</div>
|
|
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span> </div>
|
|
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span><span class="keywordtype">int</span> <a class="code hl_function" href="deux_8h.html#a6b5755efb0bb15c7ee98372c76763fa1">checkCandidature</a>(<a class="code hl_struct" href="struct_candidat.html">Candidat</a>* candidat, <a class="code hl_struct" href="struct_candidature.html">Candidature</a> candid);</div>
|
|
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span> </div>
|
|
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span> </div>
|
|
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span><span class="keywordtype">void</span> <a class="code hl_function" href="deux_8h.html#af5b94a22bd855987ee7db353ce1cc00a">afficherListeCandidats</a>(<a class="code hl_struct" href="struct_candidat.html">ListeCandidats</a> liste, <span class="keywordtype">int</span> nbCandidats);</div>
|
|
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span> </div>
|
|
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"> 67</span><span class="keywordtype">void</span> <a class="code hl_function" href="deux_8h.html#a7fe4daeb12de384a0a66b98f0b4cdf30">afficherCandidat</a>(<a class="code hl_struct" href="struct_candidat.html">Candidat</a>* candidat);</div>
|
|
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span> </div>
|
|
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span><span class="keywordtype">void</span> <a class="code hl_function" href="deux_8h.html#a3f92b836fa2cfadc62f0ad9c11a449c5">afficherCandidatures</a>(<a class="code hl_struct" href="struct_candidature.html">ListeCandidatures</a> candidatures, <span class="keywordtype">int</span> nbCandidatures);</div>
|
|
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span> </div>
|
|
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span><a class="code hl_struct" href="struct_candidat.html">ListeCandidats</a> <a class="code hl_function" href="deux_8h.html#ab23f833bdb8e7e5f6705a427b803940c">readCandidats</a>(<span class="keywordtype">int</span>* nbCandidats);</div>
|
|
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"> 82</span> </div>
|
|
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"> 89</span><span class="keywordtype">int</span> <a class="code hl_function" href="deux_8h.html#a144c1ecbcf346d4181e31a558ba84ac5">saveCandidats</a>(<a class="code hl_struct" href="struct_candidat.html">ListeCandidats</a> liste, <span class="keywordtype">int</span> nbCandidats);</div>
|
|
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"> 90</span> </div>
|
|
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"> 97</span><span class="keywordtype">int</span> <a class="code hl_function" href="deux_8h.html#ae77539e0374e7072d44cfc37f1b09821">compareCandidats</a>(<span class="keyword">const</span> <span class="keywordtype">void</span>* c1, <span class="keyword">const</span> <span class="keywordtype">void</span>* c2);</div>
|
|
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"> 98</span> </div>
|
|
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno"> 103</span><span class="keywordtype">int</span> <a class="code hl_function" href="deux_8h.html#ab69176142c7bc496d57694e11e7deb16">readStatus</a>(<span class="keywordtype">void</span>);</div>
|
|
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno"> 104</span> </div>
|
|
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"> 109</span><span class="keywordtype">void</span> <a class="code hl_function" href="deux_8h.html#a3bba1ba5f848dde11fbc93cab5278878">saveStatus</a>(<span class="keywordtype">int</span> status);</div>
|
|
<div class="ttc" id="adeux_8h_html_a144c1ecbcf346d4181e31a558ba84ac5"><div class="ttname"><a href="deux_8h.html#a144c1ecbcf346d4181e31a558ba84ac5">saveCandidats</a></div><div class="ttdeci">int saveCandidats(ListeCandidats liste, int nbCandidats)</div><div class="ttdoc">Enregistre la liste des candidats dans le fichier texte candidats.don.</div><div class="ttdef"><b>Definition:</b> <a href="deux_8c_source.html#l00337">deux.c:337</a></div></div>
|
|
<div class="ttc" id="adeux_8h_html_a346ec11b7cfecb53142039ba1125e31e"><div class="ttname"><a href="deux_8h.html#a346ec11b7cfecb53142039ba1125e31e">menuCandidat_candidater</a></div><div class="ttdeci">void menuCandidat_candidater(VilleIUT **tiut, int nbVilles, Candidat *candidat)</div><div class="ttdoc">Permet au candidat de déposer une candidature.</div><div class="ttdef"><b>Definition:</b> <a href="deux_8c_source.html#l00063">deux.c:63</a></div></div>
|
|
<div class="ttc" id="adeux_8h_html_a3bba1ba5f848dde11fbc93cab5278878"><div class="ttname"><a href="deux_8h.html#a3bba1ba5f848dde11fbc93cab5278878">saveStatus</a></div><div class="ttdeci">void saveStatus(int status)</div><div class="ttdoc">Enregistre sur le fichier texte status.don le status actuel de la phase de candidature (0 si la phase...</div><div class="ttdef"><b>Definition:</b> <a href="deux_8c_source.html#l00393">deux.c:393</a></div></div>
|
|
<div class="ttc" id="adeux_8h_html_a3f92b836fa2cfadc62f0ad9c11a449c5"><div class="ttname"><a href="deux_8h.html#a3f92b836fa2cfadc62f0ad9c11a449c5">afficherCandidatures</a></div><div class="ttdeci">void afficherCandidatures(ListeCandidatures candidatures, int nbCandidatures)</div><div class="ttdoc">Affiche récursivement toutes les candidatures d'un seul candidat.</div><div class="ttdef"><b>Definition:</b> <a href="deux_8c_source.html#l00160">deux.c:160</a></div></div>
|
|
<div class="ttc" id="adeux_8h_html_a54eb9bc5dbdbdb457257dbd4727ec59f"><div class="ttname"><a href="deux_8h.html#a54eb9bc5dbdbdb457257dbd4727ec59f">ajouterCandidat</a></div><div class="ttdeci">void ajouterCandidat(ListeCandidats *listePointer, int *nbCandidats, Candidat *candidat)</div><div class="ttdoc">Ajoute l'adresse du candidat dans le tableau de pointeur "liste".</div><div class="ttdef"><b>Definition:</b> <a href="deux_8c_source.html#l00042">deux.c:42</a></div></div>
|
|
<div class="ttc" id="adeux_8h_html_a581b991f3ee0dc610d684f27dce120ae"><div class="ttname"><a href="deux_8h.html#a581b991f3ee0dc610d684f27dce120ae">ajouterCandidature</a></div><div class="ttdeci">void ajouterCandidature(Candidat *candidat, Candidature *candidature)</div><div class="ttdoc">Ajoute une candidature dans la liste des candidatures associées au candidat correspondant dans les pa...</div><div class="ttdef"><b>Definition:</b> <a href="deux_8c_source.html#l00057">deux.c:57</a></div></div>
|
|
<div class="ttc" id="adeux_8h_html_a6b5755efb0bb15c7ee98372c76763fa1"><div class="ttname"><a href="deux_8h.html#a6b5755efb0bb15c7ee98372c76763fa1">checkCandidature</a></div><div class="ttdeci">int checkCandidature(Candidat *candidat, Candidature candid)</div><div class="ttdoc">Verifie si la candidature à ajouter n'existe pas déjà</div><div class="ttdef"><b>Definition:</b> <a href="deux_8c_source.html#l00114">deux.c:114</a></div></div>
|
|
<div class="ttc" id="adeux_8h_html_a7fe4daeb12de384a0a66b98f0b4cdf30"><div class="ttname"><a href="deux_8h.html#a7fe4daeb12de384a0a66b98f0b4cdf30">afficherCandidat</a></div><div class="ttdeci">void afficherCandidat(Candidat *candidat)</div><div class="ttdoc">Affiche un candidat précis.</div><div class="ttdef"><b>Definition:</b> <a href="deux_8c_source.html#l00149">deux.c:149</a></div></div>
|
|
<div class="ttc" id="adeux_8h_html_a8a7f12cc6517d640aea8a0d80797737a"><div class="ttname"><a href="deux_8h.html#a8a7f12cc6517d640aea8a0d80797737a">creerCandidature</a></div><div class="ttdeci">Candidature * creerCandidature(void)</div><div class="ttdoc">Alloue de la mémoire de la taille d'une structure Candidature avec un malloc avec les valeurs par déf...</div><div class="ttdef"><b>Definition:</b> <a href="deux_8c_source.html#l00029">deux.c:29</a></div></div>
|
|
<div class="ttc" id="adeux_8h_html_a9fd89bafa880d71f757f84466bd9141d"><div class="ttname"><a href="deux_8h.html#a9fd89bafa880d71f757f84466bd9141d">creerCandidat</a></div><div class="ttdeci">Candidat * creerCandidat(void)</div><div class="ttdoc">Alloue de la mémoire de la taille d'une structure Candidat avec un malloc.</div><div class="ttdef"><b>Definition:</b> <a href="deux_8c_source.html#l00018">deux.c:18</a></div></div>
|
|
<div class="ttc" id="adeux_8h_html_ab23f833bdb8e7e5f6705a427b803940c"><div class="ttname"><a href="deux_8h.html#ab23f833bdb8e7e5f6705a427b803940c">readCandidats</a></div><div class="ttdeci">ListeCandidats readCandidats(int *nbCandidats)</div><div class="ttdoc">Lit la liste des candidats dans le fichier texte candidats.don puis les met dans la structure ListeCa...</div><div class="ttdef"><b>Definition:</b> <a href="deux_8c_source.html#l00263">deux.c:263</a></div></div>
|
|
<div class="ttc" id="adeux_8h_html_ab69176142c7bc496d57694e11e7deb16"><div class="ttname"><a href="deux_8h.html#ab69176142c7bc496d57694e11e7deb16">readStatus</a></div><div class="ttdeci">int readStatus(void)</div><div class="ttdoc">Lis le status actuel de la phase de candidature (0 si la phase est arrêtée et 1 si elle est lancée)</div><div class="ttdef"><b>Definition:</b> <a href="deux_8c_source.html#l00376">deux.c:376</a></div></div>
|
|
<div class="ttc" id="adeux_8h_html_ae77539e0374e7072d44cfc37f1b09821"><div class="ttname"><a href="deux_8h.html#ae77539e0374e7072d44cfc37f1b09821">compareCandidats</a></div><div class="ttdeci">int compareCandidats(const void *c1, const void *c2)</div><div class="ttdoc">Compare deux candidats suivant l'ordre alphabetique.</div><div class="ttdef"><b>Definition:</b> <a href="deux_8c_source.html#l00323">deux.c:323</a></div></div>
|
|
<div class="ttc" id="adeux_8h_html_af5b94a22bd855987ee7db353ce1cc00a"><div class="ttname"><a href="deux_8h.html#af5b94a22bd855987ee7db353ce1cc00a">afficherListeCandidats</a></div><div class="ttdeci">void afficherListeCandidats(ListeCandidats liste, int nbCandidats)</div><div class="ttdoc">Affiche tous les candidats triés par nom.</div><div class="ttdef"><b>Definition:</b> <a href="deux_8c_source.html#l00125">deux.c:125</a></div></div>
|
|
<div class="ttc" id="astruct_candidat_html"><div class="ttname"><a href="struct_candidat.html">Candidat</a></div><div class="ttdef"><b>Definition:</b> <a href="structures_8h_source.html#l00027">structures.h:27</a></div></div>
|
|
<div class="ttc" id="astruct_candidature_html"><div class="ttname"><a href="struct_candidature.html">Candidature</a></div><div class="ttdef"><b>Definition:</b> <a href="structures_8h_source.html#l00020">structures.h:20</a></div></div>
|
|
<div class="ttc" id="astruct_ville_i_u_t_html"><div class="ttname"><a href="struct_ville_i_u_t.html">VilleIUT</a></div><div class="ttdef"><b>Definition:</b> <a href="structures_8h_source.html#l00014">structures.h:14</a></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.5
|
|
</small></address>
|
|
</body>
|
|
</html>
|