diff options
Diffstat (limited to 'doc/html/options_8cpp.html')
-rw-r--r-- | doc/html/options_8cpp.html | 175 |
1 files changed, 175 insertions, 0 deletions
diff --git a/doc/html/options_8cpp.html b/doc/html/options_8cpp.html new file mode 100644 index 0000000..da716ce --- /dev/null +++ b/doc/html/options_8cpp.html @@ -0,0 +1,175 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> +<title>anytun: options.cpp File Reference</title> +<link href="doxygen.css" rel="stylesheet" type="text/css"> +<link href="tabs.css" rel="stylesheet" type="text/css"> +</head><body> +<!-- Generated by Doxygen 1.5.1 --> +<div class="tabs"> + <ul> + <li><a href="main.html"><span>Main Page</span></a></li> + <li><a href="namespaces.html"><span>Namespaces</span></a></li> + <li><a href="annotated.html"><span>Classes</span></a></li> + <li id="current"><a href="files.html"><span>Files</span></a></li> + </ul></div> +<div class="tabs"> + <ul> + <li><a href="files.html"><span>File List</span></a></li> + <li><a href="globals.html"><span>File Members</span></a></li> + </ul></div> +<h1>options.cpp File Reference</h1><code>#include <iostream></code><br> +<code>#include <string></code><br> +<code>#include <sstream></code><br> +<code>#include "<a class="el" href="datatypes_8h-source.html">datatypes.h</a>"</code><br> +<code>#include "<a class="el" href="options_8h-source.html">options.h</a>"</code><br> +<table border="0" cellpadding="0" cellspacing="0"> +<tr><td></td></tr> +<tr><td colspan="2"><br><h2>Defines</h2></td></tr> +<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="options_8cpp.html#b2c4e3c2031ae2187d3995f4b4848e10">PARSE_BOOL_PARAM</a>(SHORT, LONG, VALUE)</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="options_8cpp.html#0d965a5094bb6aa3a39c4ff7ea99a13f">PARSE_INVERSE_BOOL_PARAM</a>(SHORT, LONG, VALUE)</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="options_8cpp.html#8c39923ab70d37dd4ac5c17b7b41df93">PARSE_SCALAR_PARAM</a>(SHORT, LONG, VALUE)</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="options_8cpp.html#ff99f765434c4a73e4b4b9f5d71022e2">PARSE_SCALAR_PARAM2</a>(SHORT, LONG, VALUE1, VALUE2)</td></tr> + +</table> +<hr><h2>Define Documentation</h2> +<a class="anchor" name="b2c4e3c2031ae2187d3995f4b4848e10"></a><!-- doxytag: member="options.cpp::PARSE_BOOL_PARAM" ref="b2c4e3c2031ae2187d3995f4b4848e10" args="(SHORT, LONG, VALUE)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">#define PARSE_BOOL_PARAM </td> + <td>(</td> + <td class="paramtype">SHORT, <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">LONG, <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">VALUE </td> + <td class="paramname"> </td> + <td> ) </td> + <td width="100%"></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> +<b>Value:</b><div class="fragment"><pre class="fragment"><span class="keywordflow">else</span> <span class="keywordflow">if</span>(str == SHORT || str == LONG) \ + VALUE = <span class="keyword">true</span>; +</pre></div> +</div> +</div><p> +<a class="anchor" name="0d965a5094bb6aa3a39c4ff7ea99a13f"></a><!-- doxytag: member="options.cpp::PARSE_INVERSE_BOOL_PARAM" ref="0d965a5094bb6aa3a39c4ff7ea99a13f" args="(SHORT, LONG, VALUE)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">#define PARSE_INVERSE_BOOL_PARAM </td> + <td>(</td> + <td class="paramtype">SHORT, <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">LONG, <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">VALUE </td> + <td class="paramname"> </td> + <td> ) </td> + <td width="100%"></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> +<b>Value:</b><div class="fragment"><pre class="fragment"><span class="keywordflow">else</span> <span class="keywordflow">if</span>(str == SHORT || str == LONG) \ + VALUE = <span class="keyword">false</span>; +</pre></div> +</div> +</div><p> +<a class="anchor" name="8c39923ab70d37dd4ac5c17b7b41df93"></a><!-- doxytag: member="options.cpp::PARSE_SCALAR_PARAM" ref="8c39923ab70d37dd4ac5c17b7b41df93" args="(SHORT, LONG, VALUE)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">#define PARSE_SCALAR_PARAM </td> + <td>(</td> + <td class="paramtype">SHORT, <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">LONG, <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">VALUE </td> + <td class="paramname"> </td> + <td> ) </td> + <td width="100%"></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> +<b>Value:</b><div class="fragment"><pre class="fragment"><span class="keywordflow">else</span> <span class="keywordflow">if</span>(str == SHORT || str == LONG) \ + { \ + <span class="keywordflow">if</span>(argc < 1 || argv[i+1][0] == <span class="charliteral">'-'</span>) \ + <span class="keywordflow">return</span> <span class="keyword">false</span>; \ + std::stringstream tmp; \ + tmp << argv[i+1]; \ + tmp >> VALUE; \ + argc--; \ + i++; \ + } +</pre></div> +</div> +</div><p> +<a class="anchor" name="ff99f765434c4a73e4b4b9f5d71022e2"></a><!-- doxytag: member="options.cpp::PARSE_SCALAR_PARAM2" ref="ff99f765434c4a73e4b4b9f5d71022e2" args="(SHORT, LONG, VALUE1, VALUE2)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">#define PARSE_SCALAR_PARAM2 </td> + <td>(</td> + <td class="paramtype">SHORT, <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">LONG, <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">VALUE1, <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">VALUE2 </td> + <td class="paramname"> </td> + <td> ) </td> + <td width="100%"></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> +<b>Value:</b><div class="fragment"><pre class="fragment"><span class="keywordflow">else</span> <span class="keywordflow">if</span>(str == SHORT || str == LONG) \ + { \ + <span class="keywordflow">if</span>(argc < 2 || \ + argv[i+1][0] == <span class="charliteral">'-'</span> || argv[i+2][0] == <span class="charliteral">'-'</span>) \ + <span class="keywordflow">return</span> <span class="keyword">false</span>; \ + std::stringstream tmp; \ + tmp << argv[i+1] << <span class="stringliteral">" "</span> << argv[i+2]; \ + tmp >> VALUE1; \ + tmp >> VALUE2; \ + argc-=2; \ + i+=2; \ + } +</pre></div> +</div> +</div><p> +<hr size="1"><address style="align: right;"><small>Generated on Sun Oct 7 23:43:49 2007 for anytun by +<a href="http://www.doxygen.org/index.html"> +<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.1 </small></address> +</body> +</html> |