/usr/share/doc/fflas-ffpack-dev-doc/fflas-ffpack_2utils_2args-parser_8h.html is in fflas-ffpack-dev-doc 1.6.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>FflasFfpack: args-parser.h File Reference</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="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 style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">FflasFfpack
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.1.1 -->
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="pages.html"><span>Related Pages</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Data Structures</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File List</span></a></li>
<li><a href="globals.html"><span>Globals</span></a></li>
</ul>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_eac799a5944e2226b86d15a6d06c7d67.html">fflas-ffpack</a></li><li class="navelem"><a class="el" href="dir_baa9b3441ad9816cbf70b99fdc27293e.html">utils</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#nested-classes">Data Structures</a> |
<a href="#namespaces">Namespaces</a> |
<a href="#define-members">Macros</a> |
<a href="#enum-members">Enumerations</a> |
<a href="#func-members">Functions</a> </div>
<div class="headertitle">
<div class="title">fflas-ffpack/utils/args-parser.h File Reference</div> </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include <iostream></code><br/>
<code>#include <fstream></code><br/>
<code>#include <vector></code><br/>
<code>#include <string></code><br/>
<code>#include <cstring></code><br/>
<code>#include <list></code><br/>
<code>#include <stdlib.h></code><br/>
<code>#include "<a class="el" href="fflas-ffpack_2utils_2print-utils_8h.html">fflas-ffpack/utils/print-utils.h</a>"</code><br/>
</div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="nested-classes"></a>
Data Structures</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="struct_argument.html">Argument</a></td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="namespaces"></a>
Namespaces</h2></td></tr>
<tr class="memitem:namespace_f_f_l_a_s"><td class="memItemLeft" align="right" valign="top">namespace  </td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_f_f_l_a_s.html">FFLAS</a></td></tr>
<tr class="memdesc:namespace_f_f_l_a_s"><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="namespace_f_f_l_a_s.html" title="FFLAS: Finite Field Linear Algebra Subroutines.">FFLAS</a>: <b>F</b>inite <b>F</b>ield <b>L</b>inear <b>A</b>lgebra <b>S</b>ubroutines. <br/></td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:a375775d23dbf60915db33f1add80c006"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="fflas-ffpack_2utils_2args-parser_8h.html#a375775d23dbf60915db33f1add80c006">TYPE_BOOL</a>   <a class="el" href="utils_2args-parser_8h.html#aa15f3f718db408445afc1b93c12294c5a01a66f4d8d66e4614c1c900c5a1c37ff">TYPE_NONE</a></td></tr>
<tr class="memitem:a88d2fcd09e06a248dcb34d1a23958b1d"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="fflas-ffpack_2utils_2args-parser_8h.html#a88d2fcd09e06a248dcb34d1a23958b1d">END_OF_ARGUMENTS</a>   { '\0', "\0", "\0", <a class="el" href="utils_2args-parser_8h.html#aa15f3f718db408445afc1b93c12294c5a01a66f4d8d66e4614c1c900c5a1c37ff">TYPE_NONE</a>, NULL }</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:aa15f3f718db408445afc1b93c12294c5"><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="fflas-ffpack_2utils_2args-parser_8h.html#aa15f3f718db408445afc1b93c12294c5">ArgumentType</a> { <br/>
  <a class="el" href="fflas-ffpack_2utils_2args-parser_8h.html#aa15f3f718db408445afc1b93c12294c5a01a66f4d8d66e4614c1c900c5a1c37ff">TYPE_NONE</a>,
<a class="el" href="fflas-ffpack_2utils_2args-parser_8h.html#aa15f3f718db408445afc1b93c12294c5a4fcd4421533bb21c827865bdbac4fef9">TYPE_INT</a>,
<a class="el" href="fflas-ffpack_2utils_2args-parser_8h.html#aa15f3f718db408445afc1b93c12294c5a726662e303e6f99816aaebfc4788c711">TYPE_INTEGER</a>,
<a class="el" href="fflas-ffpack_2utils_2args-parser_8h.html#aa15f3f718db408445afc1b93c12294c5a019d94f7c571e36215cc1a41e825de0c">TYPE_DOUBLE</a>,
<br/>
  <a class="el" href="fflas-ffpack_2utils_2args-parser_8h.html#aa15f3f718db408445afc1b93c12294c5ae8f09fe1bdddf2cf00063be6a8494813">TYPE_INTLIST</a>,
<a class="el" href="fflas-ffpack_2utils_2args-parser_8h.html#aa15f3f718db408445afc1b93c12294c5a0406d6788e5056b6b2db51a708f57115">TYPE_STR</a>,
<a class="el" href="utils_2args-parser_8h.html#aa15f3f718db408445afc1b93c12294c5a01a66f4d8d66e4614c1c900c5a1c37ff">TYPE_NONE</a>,
<a class="el" href="utils_2args-parser_8h.html#aa15f3f718db408445afc1b93c12294c5a4fcd4421533bb21c827865bdbac4fef9">TYPE_INT</a>,
<br/>
  <a class="el" href="utils_2args-parser_8h.html#aa15f3f718db408445afc1b93c12294c5a726662e303e6f99816aaebfc4788c711">TYPE_INTEGER</a>,
<a class="el" href="utils_2args-parser_8h.html#aa15f3f718db408445afc1b93c12294c5a019d94f7c571e36215cc1a41e825de0c">TYPE_DOUBLE</a>,
<a class="el" href="utils_2args-parser_8h.html#aa15f3f718db408445afc1b93c12294c5ae8f09fe1bdddf2cf00063be6a8494813">TYPE_INTLIST</a>,
<a class="el" href="utils_2args-parser_8h.html#aa15f3f718db408445afc1b93c12294c5a0406d6788e5056b6b2db51a708f57115">TYPE_STR</a>
<br/>
}</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:aaf781da7c01b3d838cb4f765e78f17ab"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_f_f_l_a_s.html#aaf781da7c01b3d838cb4f765e78f17ab">parseArguments</a> (int argc, char **argv, <a class="el" href="struct_argument.html">Argument</a> *args, bool printDefaults=true)</td></tr>
<tr class="memitem:a62b88b4e9ae54c237725a5ecb8138613"><td class="memItemLeft" align="right" valign="top">std::ostream & </td><td class="memItemRight" valign="bottom"><a class="el" href="fflas-ffpack_2utils_2args-parser_8h.html#a62b88b4e9ae54c237725a5ecb8138613">writeCommandString</a> (std::ostream &os, <a class="el" href="struct_argument.html">Argument</a> *args, char *programName)</td></tr>
<tr class="memdesc:a62b88b4e9ae54c237725a5ecb8138613"><td class="mdescLeft"> </td><td class="mdescRight">writes the values of all arguments, preceded by the programName <a href="#a62b88b4e9ae54c237725a5ecb8138613"></a><br/></td></tr>
<tr class="memitem:afb51f2980631eebdad435278665d0a8a"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="fflas-ffpack_2utils_2args-parser_8h.html#afb51f2980631eebdad435278665d0a8a">printHelpMessage</a> (const char *program, <a class="el" href="struct_argument.html">Argument</a> *args, bool printDefaults=false)</td></tr>
<tr class="memitem:a4e821d147446d1df9a6e654226b5c326"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_argument.html">Argument</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="fflas-ffpack_2utils_2args-parser_8h.html#a4e821d147446d1df9a6e654226b5c326">findArgument</a> (<a class="el" href="struct_argument.html">Argument</a> *args, char c)</td></tr>
<tr class="memitem:ab1425251e6cbc57f42ec8e290d2de86e"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="fflas-ffpack_2utils_2args-parser_8h.html#ab1425251e6cbc57f42ec8e290d2de86e">getListArgs</a> (std::list< int > &outlist, std::string &instring)</td></tr>
<tr class="memdesc:ab1425251e6cbc57f42ec8e290d2de86e"><td class="mdescLeft"> </td><td class="mdescRight">transforms a string list of ints to a list of int string "12,13,15" is turned into list of ints {12,13,15} <a href="#ab1425251e6cbc57f42ec8e290d2de86e"></a><br/></td></tr>
</table>
<hr/><h2>Macro Definition Documentation</h2>
<a class="anchor" id="a375775d23dbf60915db33f1add80c006"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define TYPE_BOOL   <a class="el" href="utils_2args-parser_8h.html#aa15f3f718db408445afc1b93c12294c5a01a66f4d8d66e4614c1c900c5a1c37ff">TYPE_NONE</a></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a88d2fcd09e06a248dcb34d1a23958b1d"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define END_OF_ARGUMENTS   { '\0', "\0", "\0", <a class="el" href="utils_2args-parser_8h.html#aa15f3f718db408445afc1b93c12294c5a01a66f4d8d66e4614c1c900c5a1c37ff">TYPE_NONE</a>, NULL }</td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<hr/><h2>Enumeration Type Documentation</h2>
<a class="anchor" id="aa15f3f718db408445afc1b93c12294c5"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">enum <a class="el" href="fflas-ffpack_2utils_2args-parser_8h.html#aa15f3f718db408445afc1b93c12294c5">ArgumentType</a></td>
</tr>
</table>
</div><div class="memdoc">
<dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" id="aa15f3f718db408445afc1b93c12294c5a01a66f4d8d66e4614c1c900c5a1c37ff"></a>TYPE_NONE</em> </td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="aa15f3f718db408445afc1b93c12294c5a4fcd4421533bb21c827865bdbac4fef9"></a>TYPE_INT</em> </td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="aa15f3f718db408445afc1b93c12294c5a726662e303e6f99816aaebfc4788c711"></a>TYPE_INTEGER</em> </td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="aa15f3f718db408445afc1b93c12294c5a019d94f7c571e36215cc1a41e825de0c"></a>TYPE_DOUBLE</em> </td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="aa15f3f718db408445afc1b93c12294c5ae8f09fe1bdddf2cf00063be6a8494813"></a>TYPE_INTLIST</em> </td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="aa15f3f718db408445afc1b93c12294c5a0406d6788e5056b6b2db51a708f57115"></a>TYPE_STR</em> </td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="aa15f3f718db408445afc1b93c12294c5a01a66f4d8d66e4614c1c900c5a1c37ff"></a>TYPE_NONE</em> </td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="aa15f3f718db408445afc1b93c12294c5a4fcd4421533bb21c827865bdbac4fef9"></a>TYPE_INT</em> </td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="aa15f3f718db408445afc1b93c12294c5a726662e303e6f99816aaebfc4788c711"></a>TYPE_INTEGER</em> </td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="aa15f3f718db408445afc1b93c12294c5a019d94f7c571e36215cc1a41e825de0c"></a>TYPE_DOUBLE</em> </td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="aa15f3f718db408445afc1b93c12294c5ae8f09fe1bdddf2cf00063be6a8494813"></a>TYPE_INTLIST</em> </td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="aa15f3f718db408445afc1b93c12294c5a0406d6788e5056b6b2db51a708f57115"></a>TYPE_STR</em> </td><td>
</td></tr>
</table>
</dd>
</dl>
</div>
</div>
<hr/><h2>Function Documentation</h2>
<a class="anchor" id="a62b88b4e9ae54c237725a5ecb8138613"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">std::ostream & writeCommandString </td>
<td>(</td>
<td class="paramtype">std::ostream & </td>
<td class="paramname"><em>os</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="struct_argument.html">Argument</a> * </td>
<td class="paramname"><em>args</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">char * </td>
<td class="paramname"><em>programName</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>writes the values of all arguments, preceded by the programName </p>
</div>
</div>
<a class="anchor" id="afb51f2980631eebdad435278665d0a8a"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void printHelpMessage </td>
<td>(</td>
<td class="paramtype">const char * </td>
<td class="paramname"><em>program</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="struct_argument.html">Argument</a> * </td>
<td class="paramname"><em>args</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool </td>
<td class="paramname"><em>printDefaults</em> = <code>false</code> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a4e821d147446d1df9a6e654226b5c326"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="struct_argument.html">Argument</a>* findArgument </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_argument.html">Argument</a> * </td>
<td class="paramname"><em>args</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">char </td>
<td class="paramname"><em>c</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="ab1425251e6cbc57f42ec8e290d2de86e"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int getListArgs </td>
<td>(</td>
<td class="paramtype">std::list< int > & </td>
<td class="paramname"><em>outlist</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">std::string & </td>
<td class="paramname"><em>instring</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>transforms a string list of ints to a list of int string "12,13,15" is turned into list of ints {12,13,15} </p>
<p> </p>
<dl class="params"><dt>Parameters:</dt><dd>
<table class="params">
<tr><td class="paramname">outlist</td><td>list once converted </td></tr>
<tr><td class="paramname">instring</td><td>list to be converted </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>status message. </dd></dl>
</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Jun 21 2012 11:13:14 for FflasFfpack by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.1.1
</small></address>
</body>
</html>
|