Sophie

Sophie

distrib > Fedora > 14 > x86_64 > media > updates > by-pkgid > 0b420d0fce195cf4115dc6a3be5c2da2 > files > 81

sphinxbase-devel-0.7-1.fc14.i686.rpm

<!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"/>
<title>SphinxBase: include/sphinxbase/cmd_ln.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.7.3 -->
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">SphinxBase&#160;<span id="projectnumber">0.6</span></div>
  </td>
 </tr>
 </tbody>
</table>
</div>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;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&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('cmd__ln_8h.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<h1>include/sphinxbase/cmd_ln.h</h1>  </div>
</div>
<div class="contents">
<a href="cmd__ln_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* -*- c-basic-offset: 4; indent-tabs-mode: nil -*- */</span>
<a name="l00002"></a>00002 <span class="comment">/* ====================================================================</span>
<a name="l00003"></a>00003 <span class="comment"> * Copyright (c) 1999-2004 Carnegie Mellon University.  All rights</span>
<a name="l00004"></a>00004 <span class="comment"> * reserved.</span>
<a name="l00005"></a>00005 <span class="comment"> *</span>
<a name="l00006"></a>00006 <span class="comment"> * Redistribution and use in source and binary forms, with or without</span>
<a name="l00007"></a>00007 <span class="comment"> * modification, are permitted provided that the following conditions</span>
<a name="l00008"></a>00008 <span class="comment"> * are met:</span>
<a name="l00009"></a>00009 <span class="comment"> *</span>
<a name="l00010"></a>00010 <span class="comment"> * 1. Redistributions of source code must retain the above copyright</span>
<a name="l00011"></a>00011 <span class="comment"> *    notice, this list of conditions and the following disclaimer. </span>
<a name="l00012"></a>00012 <span class="comment"> *</span>
<a name="l00013"></a>00013 <span class="comment"> * 2. Redistributions in binary form must reproduce the above copyright</span>
<a name="l00014"></a>00014 <span class="comment"> *    notice, this list of conditions and the following disclaimer in</span>
<a name="l00015"></a>00015 <span class="comment"> *    the documentation and/or other materials provided with the</span>
<a name="l00016"></a>00016 <span class="comment"> *    distribution.</span>
<a name="l00017"></a>00017 <span class="comment"> *</span>
<a name="l00018"></a>00018 <span class="comment"> * This work was supported in part by funding from the Defense Advanced </span>
<a name="l00019"></a>00019 <span class="comment"> * Research Projects Agency and the National Science Foundation of the </span>
<a name="l00020"></a>00020 <span class="comment"> * United States of America, and the CMU Sphinx Speech Consortium.</span>
<a name="l00021"></a>00021 <span class="comment"> *</span>
<a name="l00022"></a>00022 <span class="comment"> * THIS SOFTWARE IS PROVIDED BY CARNEGIE MELLON UNIVERSITY ``AS IS&#39;&#39; AND </span>
<a name="l00023"></a>00023 <span class="comment"> * ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, </span>
<a name="l00024"></a>00024 <span class="comment"> * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR</span>
<a name="l00025"></a>00025 <span class="comment"> * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL CARNEGIE MELLON UNIVERSITY</span>
<a name="l00026"></a>00026 <span class="comment"> * NOR ITS EMPLOYEES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,</span>
<a name="l00027"></a>00027 <span class="comment"> * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT </span>
<a name="l00028"></a>00028 <span class="comment"> * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, </span>
<a name="l00029"></a>00029 <span class="comment"> * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY </span>
<a name="l00030"></a>00030 <span class="comment"> * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT </span>
<a name="l00031"></a>00031 <span class="comment"> * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE </span>
<a name="l00032"></a>00032 <span class="comment"> * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</span>
<a name="l00033"></a>00033 <span class="comment"> *</span>
<a name="l00034"></a>00034 <span class="comment"> * ====================================================================</span>
<a name="l00035"></a>00035 <span class="comment"> *</span>
<a name="l00036"></a>00036 <span class="comment"> */</span>
<a name="l00037"></a>00037 <span class="comment">/*</span>
<a name="l00038"></a>00038 <span class="comment"> * cmd_ln.h -- Command line argument parsing.</span>
<a name="l00039"></a>00039 <span class="comment"> *</span>
<a name="l00040"></a>00040 <span class="comment"> * **********************************************</span>
<a name="l00041"></a>00041 <span class="comment"> * CMU ARPA Speech Project</span>
<a name="l00042"></a>00042 <span class="comment"> *</span>
<a name="l00043"></a>00043 <span class="comment"> * Copyright (c) 1999 Carnegie Mellon University.</span>
<a name="l00044"></a>00044 <span class="comment"> * ALL RIGHTS RESERVED.</span>
<a name="l00045"></a>00045 <span class="comment"> * **********************************************</span>
<a name="l00046"></a>00046 <span class="comment"> * </span>
<a name="l00047"></a>00047 <span class="comment"> * HISTORY</span>
<a name="l00048"></a>00048 <span class="comment"> * </span>
<a name="l00049"></a>00049 <span class="comment"> * 15-Jul-1997  M K Ravishankar (rkm@cs.cmu.edu) at Carnegie Mellon University</span>
<a name="l00050"></a>00050 <span class="comment"> *              Added required arguments types.</span>
<a name="l00051"></a>00051 <span class="comment"> * </span>
<a name="l00052"></a>00052 <span class="comment"> * 07-Dec-96    M K Ravishankar (rkm@cs.cmu.edu) at Carnegie Mellon University</span>
<a name="l00053"></a>00053 <span class="comment"> *              Created, based on Eric&#39;s implementation.  Basically, combined several</span>
<a name="l00054"></a>00054 <span class="comment"> *              functions into one, eliminated validation, and simplified the interface.</span>
<a name="l00055"></a>00055 <span class="comment"> */</span>
<a name="l00056"></a>00056 
<a name="l00057"></a>00057 
<a name="l00058"></a>00058 <span class="preprocessor">#ifndef _LIBUTIL_CMD_LN_H_</span>
<a name="l00059"></a>00059 <span class="preprocessor"></span><span class="preprocessor">#define _LIBUTIL_CMD_LN_H_</span>
<a name="l00060"></a>00060 <span class="preprocessor"></span>
<a name="l00061"></a>00061 <span class="preprocessor">#include &lt;stdio.h&gt;</span>
<a name="l00062"></a>00062 <span class="preprocessor">#include &lt;stdarg.h&gt;</span>
<a name="l00063"></a>00063 
<a name="l00064"></a>00064 <span class="comment">/* Win32/WinCE DLL gunk */</span>
<a name="l00065"></a>00065 <span class="preprocessor">#include &lt;sphinxbase/sphinxbase_export.h&gt;</span>
<a name="l00066"></a>00066 <span class="preprocessor">#include &lt;sphinxbase/prim_type.h&gt;</span>
<a name="l00067"></a>00067 
<a name="l00076"></a>00076 <span class="preprocessor">#ifdef __cplusplus</span>
<a name="l00077"></a>00077 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> {
<a name="l00078"></a>00078 <span class="preprocessor">#endif</span>
<a name="l00079"></a>00079 <span class="preprocessor"></span><span class="preprocessor">#if 0</span>
<a name="l00080"></a>00080 <span class="preprocessor"></span><span class="comment">/* Fool Emacs. */</span>
<a name="l00081"></a>00081 }
<a name="l00082"></a>00082 <span class="preprocessor">#endif</span>
<a name="l00083"></a>00083 <span class="preprocessor"></span>
<a name="l00088"></a><a class="code" href="structarg__s.html">00088</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structarg__s.html">arg_s</a> {
<a name="l00089"></a><a class="code" href="structarg__s.html#ac6c8fb7dc57cf2df9720cf96535043f9">00089</a>         <span class="keywordtype">char</span> <span class="keyword">const</span> *<a class="code" href="structarg__s.html#ac6c8fb7dc57cf2df9720cf96535043f9" title="Name of the command line switch.">name</a>;   
<a name="l00090"></a><a class="code" href="structarg__s.html#ad19743ceba37f2af159b255306bb8920">00090</a>         <span class="keywordtype">int</span> <a class="code" href="structarg__s.html#ad19743ceba37f2af159b255306bb8920" title="Type of the argument in question.">type</a>;           
<a name="l00091"></a><a class="code" href="structarg__s.html#ab975459159f873ee06012460d16819c7">00091</a>         <span class="keywordtype">char</span> <span class="keyword">const</span> *<a class="code" href="structarg__s.html#ab975459159f873ee06012460d16819c7" title="Default value (as a character string), or NULL if none.">deflt</a>;  
<a name="l00092"></a><a class="code" href="structarg__s.html#a706be2e230dea293579e4b03043550c0">00092</a>         <span class="keywordtype">char</span> <span class="keyword">const</span> *<a class="code" href="structarg__s.html#a706be2e230dea293579e4b03043550c0" title="Documentation/description string.">doc</a>;    
<a name="l00093"></a>00093 } <a class="code" href="structarg__t.html" title="Argument definition structure.">arg_t</a>;
<a name="l00094"></a>00094 
<a name="l00098"></a>00098 <span class="comment">/* @{ */</span>
<a name="l00102"></a><a class="code" href="cmd__ln_8h.html#ab1f031eb9c89fa1bcae95b1c7532fb3d">00102</a> <span class="preprocessor">#define ARG_REQUIRED (1&lt;&lt;0)</span>
<a name="l00103"></a>00103 <span class="preprocessor"></span>
<a name="l00106"></a><a class="code" href="cmd__ln_8h.html#a59c01ad9c48f29ac877ba14dc90808de">00106</a> <span class="preprocessor">#define ARG_INTEGER  (1&lt;&lt;1)</span>
<a name="l00107"></a>00107 <span class="preprocessor"></span>
<a name="l00110"></a><a class="code" href="cmd__ln_8h.html#ac8a280a53349bdd41d15edb4fa37972f">00110</a> <span class="preprocessor">#define ARG_FLOATING (1&lt;&lt;2)</span>
<a name="l00111"></a>00111 <span class="preprocessor"></span>
<a name="l00114"></a><a class="code" href="cmd__ln_8h.html#a4de5ed5fcf59a18b24bc9f6449cc9356">00114</a> <span class="preprocessor">#define ARG_STRING   (1&lt;&lt;3)</span>
<a name="l00115"></a>00115 <span class="preprocessor"></span>
<a name="l00118"></a><a class="code" href="cmd__ln_8h.html#ac7d08ff59bb6905c3375162e75913e88">00118</a> <span class="preprocessor">#define ARG_BOOLEAN  (1&lt;&lt;4)</span>
<a name="l00119"></a>00119 <span class="preprocessor"></span>
<a name="l00122"></a><a class="code" href="cmd__ln_8h.html#a0698bd0586e83569c1c0d86f072cfe13">00122</a> <span class="preprocessor">#define ARG_STRING_LIST  (1&lt;&lt;5)</span>
<a name="l00123"></a>00123 <span class="preprocessor"></span>
<a name="l00127"></a><a class="code" href="cmd__ln_8h.html#a8186f2660ad6b63be15019598a8dbb36">00127</a> <span class="preprocessor">#define REQARG_INTEGER (ARG_INTEGER | ARG_REQUIRED)</span>
<a name="l00128"></a>00128 <span class="preprocessor"></span>
<a name="l00131"></a><a class="code" href="cmd__ln_8h.html#a92ac706b4ccd544ebea6e0ceaccf3873">00131</a> <span class="preprocessor">#define REQARG_FLOATING (ARG_FLOATING | ARG_REQUIRED)</span>
<a name="l00132"></a>00132 <span class="preprocessor"></span>
<a name="l00135"></a><a class="code" href="cmd__ln_8h.html#abaf37a6c677dde76bb1a211b818541bb">00135</a> <span class="preprocessor">#define REQARG_STRING (ARG_STRING | ARG_REQUIRED)</span>
<a name="l00136"></a>00136 <span class="preprocessor"></span>
<a name="l00139"></a><a class="code" href="cmd__ln_8h.html#ac98546cfe85afea642248ae3063c2258">00139</a> <span class="preprocessor">#define REQARG_BOOLEAN (ARG_BOOLEAN | ARG_REQUIRED)</span>
<a name="l00140"></a>00140 <span class="preprocessor"></span>
<a name="l00144"></a><a class="code" href="cmd__ln_8h.html#a7ca1061dca6e8d4e7882bcefe1d15722">00144</a> <span class="preprocessor">#define ARG_INT32   ARG_INTEGER</span>
<a name="l00145"></a>00145 <span class="preprocessor"></span>
<a name="l00148"></a><a class="code" href="cmd__ln_8h.html#ad9b1952e4f1def9ee6a88791375b3901">00148</a> <span class="preprocessor">#define ARG_FLOAT32 ARG_FLOATING</span>
<a name="l00149"></a>00149 <span class="preprocessor"></span>
<a name="l00152"></a><a class="code" href="cmd__ln_8h.html#aceb617c8572cf5ad6257b35e6d8919e7">00152</a> <span class="preprocessor">#define ARG_FLOAT64 ARG_FLOATING</span>
<a name="l00153"></a>00153 <span class="preprocessor"></span>
<a name="l00156"></a><a class="code" href="cmd__ln_8h.html#a49a6267bbca65099157aad7c2adc52b3">00156</a> <span class="preprocessor">#define REQARG_INT32 (ARG_INT32 | ARG_REQUIRED)</span>
<a name="l00157"></a>00157 <span class="preprocessor"></span>
<a name="l00160"></a><a class="code" href="cmd__ln_8h.html#a46a5db6810b67a506c6074a76f003798">00160</a> <span class="preprocessor">#define REQARG_FLOAT32 (ARG_FLOAT32 | ARG_REQUIRED)</span>
<a name="l00161"></a>00161 <span class="preprocessor"></span>
<a name="l00164"></a><a class="code" href="cmd__ln_8h.html#a501b468ee6e97644b9ca75e4bf9cd1a8">00164</a> <span class="preprocessor">#define REQARG_FLOAT64 (ARG_FLOAT64 | ARG_REQUIRED)</span>
<a name="l00165"></a>00165 <span class="preprocessor"></span><span class="comment">/* @} */</span>
<a name="l00166"></a>00166 
<a name="l00167"></a>00167 
<a name="l00172"></a><a class="code" href="cmd__ln_8h.html#a98a8fc7c21a0832cd44e3a6e10844b1e">00172</a> <span class="preprocessor">#define ARG_STRINGIFY(s) ARG_STRINGIFY1(s)</span>
<a name="l00173"></a>00173 <span class="preprocessor"></span><span class="preprocessor">#define ARG_STRINGIFY1(s) #s</span>
<a name="l00174"></a>00174 <span class="preprocessor"></span>
<a name="l00179"></a>00179 <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structcmd__ln__s.html">cmd_ln_s</a> <a class="code" href="structcmd__ln__t.html" title="Opaque structure used to hold the results of command-line parsing.">cmd_ln_t</a>;
<a name="l00180"></a>00180 
<a name="l00199"></a>00199 SPHINXBASE_EXPORT
<a name="l00200"></a>00200 <a class="code" href="structcmd__ln__t.html" title="Opaque structure used to hold the results of command-line parsing.">cmd_ln_t</a> *<a class="code" href="cmd__ln_8h.html#afdba0ab4dfe8a3ad9d49a6732bd62c42" title="Create a cmd_ln_t from NULL-terminated list of arguments.">cmd_ln_init</a>(<a class="code" href="structcmd__ln__t.html" title="Opaque structure used to hold the results of command-line parsing.">cmd_ln_t</a> *inout_cmdln, <a class="code" href="structarg__t.html" title="Argument definition structure.">arg_t</a> <span class="keyword">const</span> *defn, int32 strict, ...);
<a name="l00201"></a>00201 
<a name="l00207"></a>00207 SPHINXBASE_EXPORT
<a name="l00208"></a>00208 <a class="code" href="structcmd__ln__t.html" title="Opaque structure used to hold the results of command-line parsing.">cmd_ln_t</a> *<a class="code" href="cmd__ln_8h.html#a975f5bf7b6f4fc95f426d1979281f73b" title="Retain ownership of a command-line argument set.">cmd_ln_retain</a>(<a class="code" href="structcmd__ln__t.html" title="Opaque structure used to hold the results of command-line parsing.">cmd_ln_t</a> *cmdln);
<a name="l00209"></a>00209 
<a name="l00215"></a>00215 SPHINXBASE_EXPORT
<a name="l00216"></a>00216 <span class="keywordtype">int</span> <a class="code" href="cmd__ln_8h.html#a26707fc85e87d8999e368a680e7873cd" title="Release a command-line argument set and all associated strings.">cmd_ln_free_r</a>(<a class="code" href="structcmd__ln__t.html" title="Opaque structure used to hold the results of command-line parsing.">cmd_ln_t</a> *cmdln);
<a name="l00217"></a>00217 
<a name="l00237"></a>00237 SPHINXBASE_EXPORT
<a name="l00238"></a>00238 <a class="code" href="structcmd__ln__t.html" title="Opaque structure used to hold the results of command-line parsing.">cmd_ln_t</a> *<a class="code" href="cmd__ln_8h.html#aa5a3a9e49198d8fd0dd3424fb880b6b6" title="Parse a list of strings into argumetns.">cmd_ln_parse_r</a>(<a class="code" href="structcmd__ln__t.html" title="Opaque structure used to hold the results of command-line parsing.">cmd_ln_t</a> *inout_cmdln, 
<a name="l00240"></a>00240                          <a class="code" href="structarg__t.html" title="Argument definition structure.">arg_t</a> <span class="keyword">const</span> *defn,     
<a name="l00241"></a>00241                          int32 argc,            
<a name="l00242"></a>00242                          <span class="keywordtype">char</span> *argv[],          
<a name="l00243"></a>00243                          int32 strict           
<a name="l00245"></a>00245     );
<a name="l00246"></a>00246 
<a name="l00253"></a>00253 SPHINXBASE_EXPORT
<a name="l00254"></a>00254 <a class="code" href="structcmd__ln__t.html" title="Opaque structure used to hold the results of command-line parsing.">cmd_ln_t</a> *<a class="code" href="cmd__ln_8h.html#a57f54649952a07b8bef888af4e416550" title="Parse an arguments file by deliminating on &amp;quot; \r\t\n&amp;quot; and putting each tokens into an argv[]...">cmd_ln_parse_file_r</a>(<a class="code" href="structcmd__ln__t.html" title="Opaque structure used to hold the results of command-line parsing.">cmd_ln_t</a> *inout_cmdln, 
<a name="l00256"></a>00256                               <a class="code" href="structarg__t.html" title="Argument definition structure.">arg_t</a> <span class="keyword">const</span> *defn,   
<a name="l00257"></a>00257                               <span class="keywordtype">char</span> <span class="keyword">const</span> *filename,
<a name="l00259"></a>00259                               int32 strict         
<a name="l00261"></a>00261     );
<a name="l00262"></a>00262 
<a name="l00266"></a>00266 SPHINXBASE_EXPORT
<a name="l00267"></a>00267 <a class="code" href="unionanytype__s.html" title="Union of basic types.">anytype_t</a> *<a class="code" href="cmd__ln_8h.html#ac8d204103a24e39efefda608db8d81f7" title="Access the generic type union for a command line argument.">cmd_ln_access_r</a>(<a class="code" href="structcmd__ln__t.html" title="Opaque structure used to hold the results of command-line parsing.">cmd_ln_t</a> *cmdln, <span class="keywordtype">char</span> <span class="keyword">const</span> *name);
<a name="l00268"></a>00268 
<a name="l00283"></a>00283 SPHINXBASE_EXPORT
<a name="l00284"></a>00284 <span class="keywordtype">char</span> <span class="keyword">const</span> *<a class="code" href="cmd__ln_8h.html#af0aa15288e06fc8271298e4fa7cdc91a" title="Retrieve a string from a command-line object.">cmd_ln_str_r</a>(<a class="code" href="structcmd__ln__t.html" title="Opaque structure used to hold the results of command-line parsing.">cmd_ln_t</a> *cmdln, <span class="keywordtype">char</span> <span class="keyword">const</span> *name);
<a name="l00285"></a>00285 
<a name="l00300"></a>00300 SPHINXBASE_EXPORT
<a name="l00301"></a>00301 <span class="keywordtype">char</span> <span class="keyword">const</span> **<a class="code" href="cmd__ln_8h.html#a8ef7df4f5749b5517f3a655566104a10" title="Retrieve an array of strings from a command-line object.">cmd_ln_str_list_r</a>(<a class="code" href="structcmd__ln__t.html" title="Opaque structure used to hold the results of command-line parsing.">cmd_ln_t</a> *cmdln, <span class="keywordtype">char</span> <span class="keyword">const</span> *name);
<a name="l00302"></a>00302 
<a name="l00314"></a>00314 SPHINXBASE_EXPORT
<a name="l00315"></a>00315 <span class="keywordtype">long</span> <a class="code" href="cmd__ln_8h.html#a3bf86d597effc163148fddf14c0d117a" title="Retrieve an integer from a command-line object.">cmd_ln_int_r</a>(<a class="code" href="structcmd__ln__t.html" title="Opaque structure used to hold the results of command-line parsing.">cmd_ln_t</a> *cmdln, <span class="keywordtype">char</span> <span class="keyword">const</span> *name);
<a name="l00316"></a>00316 
<a name="l00328"></a>00328 SPHINXBASE_EXPORT
<a name="l00329"></a>00329 <span class="keywordtype">double</span> <a class="code" href="cmd__ln_8h.html#a2deca68514704cafbb7ec594b8ff38fe" title="Retrieve a floating-point number from a command-line object.">cmd_ln_float_r</a>(<a class="code" href="structcmd__ln__t.html" title="Opaque structure used to hold the results of command-line parsing.">cmd_ln_t</a> *cmdln, <span class="keywordtype">char</span> <span class="keyword">const</span> *name);
<a name="l00330"></a>00330 
<a name="l00334"></a><a class="code" href="cmd__ln_8h.html#a159e691c95089689cf9a8f85a67830a6">00334</a> <span class="preprocessor">#define cmd_ln_boolean_r(c,n) (cmd_ln_int_r(c,n) != 0)</span>
<a name="l00335"></a>00335 <span class="preprocessor"></span>
<a name="l00344"></a>00344 SPHINXBASE_EXPORT
<a name="l00345"></a>00345 <span class="keywordtype">void</span> <a class="code" href="cmd__ln_8h.html#a3868b219fd3eaf64e902db38145c1c59" title="Set a string in a command-line object.">cmd_ln_set_str_r</a>(<a class="code" href="structcmd__ln__t.html" title="Opaque structure used to hold the results of command-line parsing.">cmd_ln_t</a> *cmdln, <span class="keywordtype">char</span> <span class="keyword">const</span> *name, <span class="keywordtype">char</span> <span class="keyword">const</span> *str);
<a name="l00346"></a>00346 
<a name="l00354"></a>00354 SPHINXBASE_EXPORT
<a name="l00355"></a>00355 <span class="keywordtype">void</span> <a class="code" href="cmd__ln_8h.html#afd5eef797f4786d7a1ddf4a64018cc7d" title="Set an integer in a command-line object.">cmd_ln_set_int_r</a>(<a class="code" href="structcmd__ln__t.html" title="Opaque structure used to hold the results of command-line parsing.">cmd_ln_t</a> *cmdln, <span class="keywordtype">char</span> <span class="keyword">const</span> *name, <span class="keywordtype">long</span> iv);
<a name="l00356"></a>00356 
<a name="l00364"></a>00364 SPHINXBASE_EXPORT
<a name="l00365"></a>00365 <span class="keywordtype">void</span> <a class="code" href="cmd__ln_8h.html#a71c02d36c1db0c1d4e6349bd253d9b59" title="Set a floating-point number in a command-line object.">cmd_ln_set_float_r</a>(<a class="code" href="structcmd__ln__t.html" title="Opaque structure used to hold the results of command-line parsing.">cmd_ln_t</a> *cmdln, <span class="keywordtype">char</span> <span class="keyword">const</span> *name, <span class="keywordtype">double</span> fv);
<a name="l00366"></a>00366 
<a name="l00370"></a><a class="code" href="cmd__ln_8h.html#ad4984b45985a6c5e2b231cf1f9b44fe4">00370</a> <span class="preprocessor">#define cmd_ln_set_boolean_r(c,n,b) (cmd_ln_set_int_r(c,n,(b)!=0))</span>
<a name="l00371"></a>00371 <span class="preprocessor"></span>
<a name="l00372"></a>00372 <span class="comment">/*</span>
<a name="l00373"></a>00373 <span class="comment"> * Compatibility macros</span>
<a name="l00374"></a>00374 <span class="comment"> */</span>
<a name="l00375"></a>00375 <span class="preprocessor">#define cmd_ln_int32_r(c,n)     cmd_ln_int_r(c,n)</span>
<a name="l00376"></a>00376 <span class="preprocessor"></span><span class="preprocessor">#define cmd_ln_float32_r(c,n)   (float32)cmd_ln_float_r(c,n)</span>
<a name="l00377"></a>00377 <span class="preprocessor"></span><span class="preprocessor">#define cmd_ln_float64_r(c,n)   (float64)cmd_ln_float_r(c,n)</span>
<a name="l00378"></a>00378 <span class="preprocessor"></span><span class="preprocessor">#define cmd_ln_set_int32_r(c,n,i)   cmd_ln_set_int_r(c,n,i)</span>
<a name="l00379"></a>00379 <span class="preprocessor"></span><span class="preprocessor">#define cmd_ln_set_float32_r(c,n,f) cmd_ln_set_float_r(c,n,(double)f)</span>
<a name="l00380"></a>00380 <span class="preprocessor"></span><span class="preprocessor">#define cmd_ln_set_float64_r(c,n,f) cmd_ln_set_float_r(c,n,(double)f)</span>
<a name="l00381"></a>00381 <span class="preprocessor"></span>
<a name="l00388"></a>00388 SPHINXBASE_EXPORT
<a name="l00389"></a>00389 <span class="keywordtype">int</span> <a class="code" href="cmd__ln_8h.html#ab4ad5ae130e3c2c042590b41768635e3" title="Re-entrant version of cmd_ln_exists().">cmd_ln_exists_r</a>(<a class="code" href="structcmd__ln__t.html" title="Opaque structure used to hold the results of command-line parsing.">cmd_ln_t</a> *cmdln, <span class="keywordtype">char</span> <span class="keyword">const</span> *name);
<a name="l00390"></a>00390 
<a name="l00395"></a>00395 SPHINXBASE_EXPORT
<a name="l00396"></a>00396 <span class="keywordtype">void</span> <a class="code" href="cmd__ln_8h.html#a103dabd597830caf65ec4ef3fdc71a1a" title="Print a help message listing the valid argument names, and the associated attributes as given in defn...">cmd_ln_print_help_r</a> (<a class="code" href="structcmd__ln__t.html" title="Opaque structure used to hold the results of command-line parsing.">cmd_ln_t</a> *cmdln,
<a name="l00397"></a>00397                           FILE *fp,        
<a name="l00398"></a>00398                           <span class="keyword">const</span> <a class="code" href="structarg__t.html" title="Argument definition structure.">arg_t</a> *defn 
<a name="l00399"></a>00399         );
<a name="l00400"></a>00400 
<a name="l00408"></a>00408 SPHINXBASE_EXPORT
<a name="l00409"></a>00409 int32 <a class="code" href="cmd__ln_8h.html#a42447819b47aab58ee53f4745244f7f7" title="Non-reentrant version of cmd_ln_parse().">cmd_ln_parse</a>(<span class="keyword">const</span> <a class="code" href="structarg__t.html" title="Argument definition structure.">arg_t</a> *defn,  
<a name="l00410"></a>00410                    int32 argc,         
<a name="l00411"></a>00411                    <span class="keywordtype">char</span> *argv[],       
<a name="l00412"></a>00412                    int32 strict        
<a name="l00414"></a>00414         );
<a name="l00415"></a>00415 
<a name="l00425"></a>00425 SPHINXBASE_EXPORT
<a name="l00426"></a>00426 int32 <a class="code" href="cmd__ln_8h.html#ab7970c08288fae94d211a4252381bc61" title="Parse an arguments file by deliminating on &amp;quot; \r\t\n&amp;quot; and putting each tokens into an argv[]...">cmd_ln_parse_file</a>(<span class="keyword">const</span> <a class="code" href="structarg__t.html" title="Argument definition structure.">arg_t</a> *defn,   
<a name="l00427"></a>00427                         <span class="keywordtype">char</span> <span class="keyword">const</span> *filename,
<a name="l00428"></a>00428                         int32 strict         
<a name="l00430"></a>00430         );
<a name="l00431"></a>00431 
<a name="l00437"></a>00437 SPHINXBASE_EXPORT
<a name="l00438"></a>00438 <span class="keywordtype">void</span> <a class="code" href="cmd__ln_8h.html#a7b06faa9f83eb8a2b045f8cfb6b67d36" title="Old application initialization routine for Sphinx3 code.">cmd_ln_appl_enter</a>(<span class="keywordtype">int</span> argc,   
<a name="l00439"></a>00439                        <span class="keywordtype">char</span> *argv[], 
<a name="l00440"></a>00440                        <span class="keywordtype">char</span> <span class="keyword">const</span>* default_argfn, 
<a name="l00441"></a>00441                        <span class="keyword">const</span> <a class="code" href="structarg__t.html" title="Argument definition structure.">arg_t</a> *defn 
<a name="l00442"></a>00442         );
<a name="l00443"></a>00443 
<a name="l00444"></a>00444 
<a name="l00451"></a>00451 SPHINXBASE_EXPORT
<a name="l00452"></a>00452 <span class="keywordtype">void</span> <a class="code" href="cmd__ln_8h.html#a97d5edba5ad53d97a159ac8ab9234de7" title="Finalization routine corresponding to cmd_ln_appl_enter().">cmd_ln_appl_exit</a>(<span class="keywordtype">void</span>);
<a name="l00453"></a>00453 
<a name="l00460"></a>00460 SPHINXBASE_EXPORT
<a name="l00461"></a>00461 <a class="code" href="structcmd__ln__t.html" title="Opaque structure used to hold the results of command-line parsing.">cmd_ln_t</a> *<a class="code" href="cmd__ln_8h.html#a6e10003b5e86ec317c1b78c0655972af" title="Retrieve the global cmd_ln_t object used by non-re-entrant functions.">cmd_ln_get</a>(<span class="keywordtype">void</span>);
<a name="l00462"></a>00462 
<a name="l00473"></a><a class="code" href="cmd__ln_8h.html#a35020ed4f3aae151fc654dea22dda028">00473</a> <span class="preprocessor">#define cmd_ln_exists(name)     cmd_ln_exists_r(cmd_ln_get(), name)</span>
<a name="l00474"></a>00474 <span class="preprocessor"></span>
<a name="l00481"></a><a class="code" href="cmd__ln_8h.html#aa332e626631dfa1b7d93267d1b2384ba">00481</a> <span class="preprocessor">#define cmd_ln_access(name)     cmd_ln_access_r(cmd_ln_get(), name)</span>
<a name="l00482"></a>00482 <span class="preprocessor"></span>
<a name="l00489"></a><a class="code" href="cmd__ln_8h.html#ab5bd3d0b7f28a485411da21a5e3984b3">00489</a> <span class="preprocessor">#define cmd_ln_str(name)        cmd_ln_str_r(cmd_ln_get(), name)</span>
<a name="l00490"></a>00490 <span class="preprocessor"></span>
<a name="l00497"></a><a class="code" href="cmd__ln_8h.html#a5061e894a4b65597c046a49b2c61f28b">00497</a> <span class="preprocessor">#define cmd_ln_str_list(name)   cmd_ln_str_list_r(cmd_ln_get(), name)</span>
<a name="l00498"></a>00498 <span class="preprocessor"></span>
<a name="l00505"></a><a class="code" href="cmd__ln_8h.html#ad3c5abaaeda4f3fd4462a24d41db7589">00505</a> <span class="preprocessor">#define cmd_ln_int32(name)      (int32)cmd_ln_int_r(cmd_ln_get(), name)</span>
<a name="l00506"></a>00506 <span class="preprocessor"></span>
<a name="l00512"></a><a class="code" href="cmd__ln_8h.html#a95b9ea6b4ef4a6ae9718b7df5fffdde8">00512</a> <span class="preprocessor">#define cmd_ln_float32(name)    (float32)cmd_ln_float_r(cmd_ln_get(), name)</span>
<a name="l00513"></a>00513 <span class="preprocessor"></span>
<a name="l00519"></a><a class="code" href="cmd__ln_8h.html#a3468b03e9089e4b9b4ccd5b9e4347a9c">00519</a> <span class="preprocessor">#define cmd_ln_float64(name)    (float64)cmd_ln_float_r(cmd_ln_get(), name)</span>
<a name="l00520"></a>00520 <span class="preprocessor"></span>
<a name="l00526"></a><a class="code" href="cmd__ln_8h.html#a168e6f2cf367471406614a70d2b42ae8">00526</a> <span class="preprocessor">#define cmd_ln_boolean(name)    cmd_ln_boolean_r(cmd_ln_get(), name)</span>
<a name="l00527"></a>00527 <span class="preprocessor"></span>
<a name="l00534"></a><a class="code" href="cmd__ln_8h.html#add9cb281562711418b6c795f5a6eb206">00534</a> <span class="preprocessor">#define cmd_ln_set_str(n,s)     cmd_ln_set_str_r(cmd_ln_get(),n,s)</span>
<a name="l00535"></a>00535 <span class="preprocessor"></span>
<a name="l00541"></a><a class="code" href="cmd__ln_8h.html#ab63087898153823d7a7041669d60cfae">00541</a> <span class="preprocessor">#define cmd_ln_set_int32(n,i)   cmd_ln_set_int_r(cmd_ln_get(),n,i)</span>
<a name="l00542"></a>00542 <span class="preprocessor"></span>
<a name="l00548"></a><a class="code" href="cmd__ln_8h.html#a2642012877117ba59dec59d5bfdbbed1">00548</a> <span class="preprocessor">#define cmd_ln_set_float32(n,f) cmd_ln_set_float_r(cmd_ln_get(),n,f)</span>
<a name="l00549"></a>00549 <span class="preprocessor"></span>
<a name="l00555"></a><a class="code" href="cmd__ln_8h.html#ae9b20503ea67f45dc43312d13068a127">00555</a> <span class="preprocessor">#define cmd_ln_set_float64(n,f) cmd_ln_set_float_r(cmd_ln_get(),n,f)</span>
<a name="l00556"></a>00556 <span class="preprocessor"></span>
<a name="l00562"></a><a class="code" href="cmd__ln_8h.html#aa6ee66099aca6807d03c70a9d3e5f2a3">00562</a> <span class="preprocessor">#define cmd_ln_set_boolean(n,b) cmd_ln_set_boolean_r(cmd_ln_get(),n,b)</span>
<a name="l00563"></a>00563 <span class="preprocessor"></span>
<a name="l00571"></a><a class="code" href="cmd__ln_8h.html#aac4bb58af379a71fad4e1adc7fb4d476">00571</a> <span class="preprocessor">#define cmd_ln_print_help(f,d) cmd_ln_print_help_r(cmd_ln_get(),f,d)</span>
<a name="l00572"></a>00572 <span class="preprocessor"></span>
<a name="l00577"></a>00577 SPHINXBASE_EXPORT
<a name="l00578"></a>00578 <span class="keywordtype">void</span> <a class="code" href="cmd__ln_8h.html#a439d3f832f92ae655f1028445aa91602" title="Free the global command line, if any exists.">cmd_ln_free</a> (<span class="keywordtype">void</span>);
<a name="l00579"></a>00579 
<a name="l00580"></a>00580 
<a name="l00581"></a>00581 <span class="preprocessor">#ifdef __cplusplus</span>
<a name="l00582"></a>00582 <span class="preprocessor"></span>}
<a name="l00583"></a>00583 <span class="preprocessor">#endif</span>
<a name="l00584"></a>00584 <span class="preprocessor"></span>
<a name="l00585"></a>00585 <span class="preprocessor">#endif</span>
<a name="l00586"></a>00586 <span class="preprocessor"></span>
<a name="l00587"></a>00587 
</pre></div></div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="cmd__ln_8h.html">cmd_ln.h</a>      </li>
      <li class="footer">Generated on Tue Apr 19 2011 for SphinxBase by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </li>
    </ul>
  </div>

</body>
</html>