Sophie

Sophie

distrib > Fedora > 16 > i386 > by-pkgid > 4bc66056a634db26a1f4d0845dc41ca6 > files > 49

mrpt-doc-0.9.5-0.1.20110925svn2670.fc16.i686.rpm

<!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>ArgException.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<div align="left"><a href="http://www.mrpt.org/">Main MRPT website</a> &gt; <b>C++ reference</b> </div>
<div align="right">
<a href="index.html"><img border="0" src="mrpt_logo.png" alt="MRPT logo"></a>
</div>
<!-- Generated by Doxygen 1.7.5 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <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="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
          <div class="left">
            <form id="FSearchBox" action="search.php" method="get">
              <img id="MSearchSelect" src="search/mag.png" alt=""/>
              <input type="text" id="MSearchField" name="query" value="Search" size="20" accesskey="S" 
                     onfocus="searchBox.OnSearchFieldFocus(true)" 
                     onblur="searchBox.OnSearchFieldFocus(false)"/>
            </form>
          </div><div class="right"></div>
        </div>
      </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>File&#160;Members</span></a></li>
    </ul>
  </div>
<div class="header">
  <div class="headertitle">
<div class="title">ArgException.h</div>  </div>
</div>
<div class="contents">
<a href="_arg_exception_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00002"></a>00002 <span class="comment">/******************************************************************************</span>
<a name="l00003"></a>00003 <span class="comment"> *</span>
<a name="l00004"></a>00004 <span class="comment"> *  file:  ArgException.h</span>
<a name="l00005"></a>00005 <span class="comment"> *</span>
<a name="l00006"></a>00006 <span class="comment"> *  Copyright (c) 2003, Michael E. Smoot .</span>
<a name="l00007"></a>00007 <span class="comment"> *  All rights reverved.</span>
<a name="l00008"></a>00008 <span class="comment"> *</span>
<a name="l00009"></a>00009 <span class="comment"> *  See the file COPYING in the top directory of this distribution for</span>
<a name="l00010"></a>00010 <span class="comment"> *  more information.</span>
<a name="l00011"></a>00011 <span class="comment"> *</span>
<a name="l00012"></a>00012 <span class="comment"> *  THE SOFTWARE IS PROVIDED _AS IS_, WITHOUT WARRANTY OF ANY KIND, EXPRESS</span>
<a name="l00013"></a>00013 <span class="comment"> *  OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,</span>
<a name="l00014"></a>00014 <span class="comment"> *  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL</span>
<a name="l00015"></a>00015 <span class="comment"> *  THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER</span>
<a name="l00016"></a>00016 <span class="comment"> *  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING</span>
<a name="l00017"></a>00017 <span class="comment"> *  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER</span>
<a name="l00018"></a>00018 <span class="comment"> *  DEALINGS IN THE SOFTWARE.</span>
<a name="l00019"></a>00019 <span class="comment"> *</span>
<a name="l00020"></a>00020 <span class="comment"> *****************************************************************************/</span>
<a name="l00021"></a>00021 
<a name="l00022"></a>00022 
<a name="l00023"></a>00023 <span class="preprocessor">#ifndef TCLAP_ARG_EXCEPTION_H</span>
<a name="l00024"></a>00024 <span class="preprocessor"></span><span class="preprocessor">#define TCLAP_ARG_EXCEPTION_H</span>
<a name="l00025"></a>00025 <span class="preprocessor"></span>
<a name="l00026"></a>00026 <span class="preprocessor">#include &lt;string&gt;</span>
<a name="l00027"></a>00027 <span class="preprocessor">#include &lt;exception&gt;</span>
<a name="l00028"></a>00028 
<a name="l00029"></a>00029 <span class="keyword">namespace </span>TCLAP {
<a name="l00030"></a>00030 <span class="comment"></span>
<a name="l00031"></a>00031 <span class="comment">/**</span>
<a name="l00032"></a>00032 <span class="comment"> * A simple class that defines and argument exception.  Should be caught</span>
<a name="l00033"></a>00033 <span class="comment"> * whenever a CmdLine is created and parsed.</span>
<a name="l00034"></a>00034 <span class="comment"> */</span>
<a name="l00035"></a>00035 <span class="keyword">class </span>ArgException : <span class="keyword">public</span> std::exception
<a name="l00036"></a>00036 {
<a name="l00037"></a>00037         <span class="keyword">public</span>:
<a name="l00038"></a>00038 <span class="comment"></span>
<a name="l00039"></a>00039 <span class="comment">                /**</span>
<a name="l00040"></a>00040 <span class="comment">                 * Constructor.</span>
<a name="l00041"></a>00041 <span class="comment">                 * \param text - The text of the exception.</span>
<a name="l00042"></a>00042 <span class="comment">                 * \param id - The text identifying the argument source.</span>
<a name="l00043"></a>00043 <span class="comment">                 * \param td - Text describing the type of ArgException it is.</span>
<a name="l00044"></a>00044 <span class="comment">                 * of the exception.</span>
<a name="l00045"></a>00045 <span class="comment">                 */</span>
<a name="l00046"></a><a class="code" href="class_t_c_l_a_p_1_1_arg_exception.html#a67389912b628e95d530f8bb8de97b309">00046</a>                 <a class="code" href="class_t_c_l_a_p_1_1_arg_exception.html#a67389912b628e95d530f8bb8de97b309" title="Constructor.">ArgException</a>( <span class="keyword">const</span> <a class="code" href="classstd_1_1string.html" title="STL class.">std::string</a>&amp; text = <span class="stringliteral">&quot;undefined exception&quot;</span>,
<a name="l00047"></a>00047                                           <span class="keyword">const</span> <a class="code" href="classstd_1_1string.html" title="STL class.">std::string</a>&amp; <span class="keywordtype">id</span> = <span class="stringliteral">&quot;undefined&quot;</span>,
<a name="l00048"></a>00048                                           <span class="keyword">const</span> <a class="code" href="classstd_1_1string.html" title="STL class.">std::string</a>&amp; td = <span class="stringliteral">&quot;Generic ArgException&quot;</span>)
<a name="l00049"></a>00049                         : std::exception(),
<a name="l00050"></a>00050                           <a class="code" href="class_t_c_l_a_p_1_1_arg_exception.html#ad94d68e5948f6b74aacb8b2023e96c50" title="The text of the exception message.">_errorText</a>(text),
<a name="l00051"></a>00051                           <a class="code" href="class_t_c_l_a_p_1_1_arg_exception.html#a6bfa7ed4e5cc1404d6b4cc5d28cb1f28" title="The argument related to this exception.">_argId</a>( id ),
<a name="l00052"></a>00052                           <a class="code" href="class_t_c_l_a_p_1_1_arg_exception.html#a7c69e599ae4a5b874a3e19cd4cf7c910" title="Describes the type of the exception.">_typeDescription</a>(td)
<a name="l00053"></a>00053                 { }
<a name="l00054"></a>00054 <span class="comment"></span>
<a name="l00055"></a>00055 <span class="comment">                /**</span>
<a name="l00056"></a>00056 <span class="comment">                 * Destructor.</span>
<a name="l00057"></a>00057 <span class="comment">                 */</span>
<a name="l00058"></a><a class="code" href="class_t_c_l_a_p_1_1_arg_exception.html#a5c5df6a814b05c623a01607fb82980f4">00058</a>                 <span class="keyword">virtual</span> <a class="code" href="class_t_c_l_a_p_1_1_arg_exception.html#a5c5df6a814b05c623a01607fb82980f4" title="Destructor.">~ArgException</a>() throw() { }
<a name="l00059"></a>00059 <span class="comment"></span>
<a name="l00060"></a>00060 <span class="comment">                /**</span>
<a name="l00061"></a>00061 <span class="comment">                 * Returns the error text.</span>
<a name="l00062"></a>00062 <span class="comment">                 */</span>
<a name="l00063"></a><a class="code" href="class_t_c_l_a_p_1_1_arg_exception.html#a0656dab88a7129bc288821bacd653d08">00063</a>                 std::string <a class="code" href="class_t_c_l_a_p_1_1_arg_exception.html#a0656dab88a7129bc288821bacd653d08" title="Returns the error text.">error</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> ( <a class="code" href="class_t_c_l_a_p_1_1_arg_exception.html#ad94d68e5948f6b74aacb8b2023e96c50" title="The text of the exception message.">_errorText</a> ); }
<a name="l00064"></a>00064 <span class="comment"></span>
<a name="l00065"></a>00065 <span class="comment">                /**</span>
<a name="l00066"></a>00066 <span class="comment">                 * Returns the argument id.</span>
<a name="l00067"></a>00067 <span class="comment">                 */</span>
<a name="l00068"></a><a class="code" href="class_t_c_l_a_p_1_1_arg_exception.html#a18ffd1ad34c1799865f8e03df4ebdff1">00068</a>                 std::string <a class="code" href="class_t_c_l_a_p_1_1_arg_exception.html#a18ffd1ad34c1799865f8e03df4ebdff1" title="Returns the argument id.">argId</a>()<span class="keyword"> const</span>
<a name="l00069"></a>00069 <span class="keyword">                </span>{
<a name="l00070"></a>00070                         <span class="keywordflow">if</span> ( <a class="code" href="class_t_c_l_a_p_1_1_arg_exception.html#a6bfa7ed4e5cc1404d6b4cc5d28cb1f28" title="The argument related to this exception.">_argId</a> == <span class="stringliteral">&quot;undefined&quot;</span> )
<a name="l00071"></a>00071                                 <span class="keywordflow">return</span> <span class="stringliteral">&quot; &quot;</span>;
<a name="l00072"></a>00072                         <span class="keywordflow">else</span>
<a name="l00073"></a>00073                                 <span class="keywordflow">return</span> ( <span class="stringliteral">&quot;Argument: &quot;</span> + <a class="code" href="class_t_c_l_a_p_1_1_arg_exception.html#a6bfa7ed4e5cc1404d6b4cc5d28cb1f28" title="The argument related to this exception.">_argId</a> );
<a name="l00074"></a>00074                 }
<a name="l00075"></a>00075 <span class="comment"></span>
<a name="l00076"></a>00076 <span class="comment">                /**</span>
<a name="l00077"></a>00077 <span class="comment">                 * Returns the arg id and error text.</span>
<a name="l00078"></a>00078 <span class="comment">                 */</span>
<a name="l00079"></a><a class="code" href="class_t_c_l_a_p_1_1_arg_exception.html#af51c89da2e4ae54fc9d05038ea484c83">00079</a>                 <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="class_t_c_l_a_p_1_1_arg_exception.html#af51c89da2e4ae54fc9d05038ea484c83" title="Returns the arg id and error text.">what</a>() <span class="keyword">const</span> throw()
<a name="l00080"></a>00080                 {
<a name="l00081"></a>00081                         <span class="keyword">static</span> std::string ex;
<a name="l00082"></a>00082                         ex = <a class="code" href="class_t_c_l_a_p_1_1_arg_exception.html#a6bfa7ed4e5cc1404d6b4cc5d28cb1f28" title="The argument related to this exception.">_argId</a> + <span class="stringliteral">&quot; -- &quot;</span> + <a class="code" href="class_t_c_l_a_p_1_1_arg_exception.html#ad94d68e5948f6b74aacb8b2023e96c50" title="The text of the exception message.">_errorText</a>;
<a name="l00083"></a>00083                         <span class="keywordflow">return</span> ex.c_str();
<a name="l00084"></a>00084                 }
<a name="l00085"></a>00085 <span class="comment"></span>
<a name="l00086"></a>00086 <span class="comment">                /**</span>
<a name="l00087"></a>00087 <span class="comment">                 * Returns the type of the exception.  Used to explain and distinguish</span>
<a name="l00088"></a>00088 <span class="comment">                 * between different child exceptions.</span>
<a name="l00089"></a>00089 <span class="comment">                 */</span>
<a name="l00090"></a><a class="code" href="class_t_c_l_a_p_1_1_arg_exception.html#abd271955e1b808bb92f8db7a16ea7c95">00090</a>                 std::string <a class="code" href="class_t_c_l_a_p_1_1_arg_exception.html#abd271955e1b808bb92f8db7a16ea7c95" title="Returns the type of the exception.">typeDescription</a>()<span class="keyword"> const</span>
<a name="l00091"></a>00091 <span class="keyword">                </span>{
<a name="l00092"></a>00092                         <span class="keywordflow">return</span> <a class="code" href="class_t_c_l_a_p_1_1_arg_exception.html#a7c69e599ae4a5b874a3e19cd4cf7c910" title="Describes the type of the exception.">_typeDescription</a>;
<a name="l00093"></a>00093                 }
<a name="l00094"></a>00094 
<a name="l00095"></a>00095 
<a name="l00096"></a>00096         <span class="keyword">private</span>:
<a name="l00097"></a>00097 <span class="comment"></span>
<a name="l00098"></a>00098 <span class="comment">                /**</span>
<a name="l00099"></a>00099 <span class="comment">                 * The text of the exception message.</span>
<a name="l00100"></a>00100 <span class="comment">                 */</span>
<a name="l00101"></a><a class="code" href="class_t_c_l_a_p_1_1_arg_exception.html#ad94d68e5948f6b74aacb8b2023e96c50">00101</a>                 std::string <a class="code" href="class_t_c_l_a_p_1_1_arg_exception.html#ad94d68e5948f6b74aacb8b2023e96c50" title="The text of the exception message.">_errorText</a>;
<a name="l00102"></a>00102 <span class="comment"></span>
<a name="l00103"></a>00103 <span class="comment">                /**</span>
<a name="l00104"></a>00104 <span class="comment">                 * The argument related to this exception.</span>
<a name="l00105"></a>00105 <span class="comment">                 */</span>
<a name="l00106"></a><a class="code" href="class_t_c_l_a_p_1_1_arg_exception.html#a6bfa7ed4e5cc1404d6b4cc5d28cb1f28">00106</a>                 std::string <a class="code" href="class_t_c_l_a_p_1_1_arg_exception.html#a6bfa7ed4e5cc1404d6b4cc5d28cb1f28" title="The argument related to this exception.">_argId</a>;
<a name="l00107"></a>00107 <span class="comment"></span>
<a name="l00108"></a>00108 <span class="comment">                /**</span>
<a name="l00109"></a>00109 <span class="comment">                 * Describes the type of the exception.  Used to distinguish</span>
<a name="l00110"></a>00110 <span class="comment">                 * between different child exceptions.</span>
<a name="l00111"></a>00111 <span class="comment">                 */</span>
<a name="l00112"></a><a class="code" href="class_t_c_l_a_p_1_1_arg_exception.html#a7c69e599ae4a5b874a3e19cd4cf7c910">00112</a>                 std::string <a class="code" href="class_t_c_l_a_p_1_1_arg_exception.html#a7c69e599ae4a5b874a3e19cd4cf7c910" title="Describes the type of the exception.">_typeDescription</a>;
<a name="l00113"></a>00113 
<a name="l00114"></a>00114 };
<a name="l00115"></a>00115 <span class="comment"></span>
<a name="l00116"></a>00116 <span class="comment">/**</span>
<a name="l00117"></a>00117 <span class="comment"> * Thrown from within the child Arg classes when it fails to properly</span>
<a name="l00118"></a>00118 <span class="comment"> * parse the argument it has been passed.</span>
<a name="l00119"></a>00119 <span class="comment"> */</span>
<a name="l00120"></a>00120 <span class="keyword">class </span><a class="code" href="class_t_c_l_a_p_1_1_arg_parse_exception.html" title="Thrown from within the child Arg classes when it fails to properly parse the argument it has been pas...">ArgParseException</a> : <span class="keyword">public</span> <a class="code" href="class_t_c_l_a_p_1_1_arg_exception.html" title="A simple class that defines and argument exception.">ArgException</a>
<a name="l00121"></a>00121 {
<a name="l00122"></a>00122         <span class="keyword">public</span>:<span class="comment"></span>
<a name="l00123"></a>00123 <span class="comment">                /**</span>
<a name="l00124"></a>00124 <span class="comment">                 * Constructor.</span>
<a name="l00125"></a>00125 <span class="comment">                 * \param text - The text of the exception.</span>
<a name="l00126"></a>00126 <span class="comment">                 * \param id - The text identifying the argument source</span>
<a name="l00127"></a>00127 <span class="comment">                 * of the exception.</span>
<a name="l00128"></a>00128 <span class="comment">                 */</span>
<a name="l00129"></a><a class="code" href="class_t_c_l_a_p_1_1_arg_parse_exception.html#aa9d9531405e505afd506491526733285">00129</a>                 <a class="code" href="class_t_c_l_a_p_1_1_arg_parse_exception.html#aa9d9531405e505afd506491526733285" title="Constructor.">ArgParseException</a>( <span class="keyword">const</span> <a class="code" href="classstd_1_1string.html" title="STL class.">std::string</a>&amp; text = <span class="stringliteral">&quot;undefined exception&quot;</span>,
<a name="l00130"></a>00130                                                <span class="keyword">const</span> <a class="code" href="classstd_1_1string.html" title="STL class.">std::string</a>&amp; <span class="keywordtype">id</span> = <span class="stringliteral">&quot;undefined&quot;</span> )
<a name="l00131"></a>00131                         : <a class="code" href="class_t_c_l_a_p_1_1_arg_exception.html" title="A simple class that defines and argument exception.">ArgException</a>( text,
<a name="l00132"></a>00132                                         id,
<a name="l00133"></a>00133                                                         std::string( <span class="stringliteral">&quot;Exception found while parsing &quot;</span> ) +
<a name="l00134"></a>00134                                                         std::string( <span class="stringliteral">&quot;the value the Arg has been passed.&quot;</span> ))
<a name="l00135"></a>00135                         { }
<a name="l00136"></a>00136 };
<a name="l00137"></a>00137 <span class="comment"></span>
<a name="l00138"></a>00138 <span class="comment">/**</span>
<a name="l00139"></a>00139 <span class="comment"> * Thrown from CmdLine when the arguments on the command line are not</span>
<a name="l00140"></a>00140 <span class="comment"> * properly specified, e.g. too many arguments, required argument missing, etc.</span>
<a name="l00141"></a>00141 <span class="comment"> */</span>
<a name="l00142"></a>00142 <span class="keyword">class </span>CmdLineParseException : <span class="keyword">public</span> ArgException
<a name="l00143"></a>00143 {
<a name="l00144"></a>00144         <span class="keyword">public</span>:<span class="comment"></span>
<a name="l00145"></a>00145 <span class="comment">                /**</span>
<a name="l00146"></a>00146 <span class="comment">                 * Constructor.</span>
<a name="l00147"></a>00147 <span class="comment">                 * \param text - The text of the exception.</span>
<a name="l00148"></a>00148 <span class="comment">                 * \param id - The text identifying the argument source</span>
<a name="l00149"></a>00149 <span class="comment">                 * of the exception.</span>
<a name="l00150"></a>00150 <span class="comment">                 */</span>
<a name="l00151"></a><a class="code" href="class_t_c_l_a_p_1_1_cmd_line_parse_exception.html#a3b612ba299dd699845ea108b5eaa3249">00151</a>                 <a class="code" href="class_t_c_l_a_p_1_1_cmd_line_parse_exception.html#a3b612ba299dd699845ea108b5eaa3249" title="Constructor.">CmdLineParseException</a>( <span class="keyword">const</span> <a class="code" href="classstd_1_1string.html" title="STL class.">std::string</a>&amp; text = <span class="stringliteral">&quot;undefined exception&quot;</span>,
<a name="l00152"></a>00152                                                    <span class="keyword">const</span> <a class="code" href="classstd_1_1string.html" title="STL class.">std::string</a>&amp; <span class="keywordtype">id</span> = <span class="stringliteral">&quot;undefined&quot;</span> )
<a name="l00153"></a>00153                         : <a class="code" href="class_t_c_l_a_p_1_1_arg_exception.html" title="A simple class that defines and argument exception.">ArgException</a>( text,
<a name="l00154"></a>00154                                         id,
<a name="l00155"></a>00155                                                         std::string( <span class="stringliteral">&quot;Exception found when the values &quot;</span>) +
<a name="l00156"></a>00156                                                         std::string( <span class="stringliteral">&quot;on the command line do not meet &quot;</span>) +
<a name="l00157"></a>00157                                                         std::string( <span class="stringliteral">&quot;the requirements of the defined &quot;</span>) +
<a name="l00158"></a>00158                                                         std::string( <span class="stringliteral">&quot;Args.&quot;</span> ))
<a name="l00159"></a>00159                 { }
<a name="l00160"></a>00160 };
<a name="l00161"></a>00161 <span class="comment"></span>
<a name="l00162"></a>00162 <span class="comment">/**</span>
<a name="l00163"></a>00163 <span class="comment"> * Thrown from Arg and CmdLine when an Arg is improperly specified, e.g.</span>
<a name="l00164"></a>00164 <span class="comment"> * same flag as another Arg, same name, etc.</span>
<a name="l00165"></a>00165 <span class="comment"> */</span>
<a name="l00166"></a>00166 <span class="keyword">class </span>SpecificationException : <span class="keyword">public</span> ArgException
<a name="l00167"></a>00167 {
<a name="l00168"></a>00168         <span class="keyword">public</span>:<span class="comment"></span>
<a name="l00169"></a>00169 <span class="comment">                /**</span>
<a name="l00170"></a>00170 <span class="comment">                 * Constructor.</span>
<a name="l00171"></a>00171 <span class="comment">                 * \param text - The text of the exception.</span>
<a name="l00172"></a>00172 <span class="comment">                 * \param id - The text identifying the argument source</span>
<a name="l00173"></a>00173 <span class="comment">                 * of the exception.</span>
<a name="l00174"></a>00174 <span class="comment">                 */</span>
<a name="l00175"></a><a class="code" href="class_t_c_l_a_p_1_1_specification_exception.html#ad817016f03ebf4fc371e168636132abd">00175</a>                 <a class="code" href="class_t_c_l_a_p_1_1_specification_exception.html#ad817016f03ebf4fc371e168636132abd" title="Constructor.">SpecificationException</a>( <span class="keyword">const</span> <a class="code" href="classstd_1_1string.html" title="STL class.">std::string</a>&amp; text = <span class="stringliteral">&quot;undefined exception&quot;</span>,
<a name="l00176"></a>00176                                                     <span class="keyword">const</span> <a class="code" href="classstd_1_1string.html" title="STL class.">std::string</a>&amp; <span class="keywordtype">id</span> = <span class="stringliteral">&quot;undefined&quot;</span> )
<a name="l00177"></a>00177                         : <a class="code" href="class_t_c_l_a_p_1_1_arg_exception.html" title="A simple class that defines and argument exception.">ArgException</a>( text,
<a name="l00178"></a>00178                                         id,
<a name="l00179"></a>00179                                                         std::string(<span class="stringliteral">&quot;Exception found when an Arg object &quot;</span>)+
<a name="l00180"></a>00180                                                         std::string(<span class="stringliteral">&quot;is improperly defined by the &quot;</span>) +
<a name="l00181"></a>00181                                                         std::string(<span class="stringliteral">&quot;developer.&quot;</span> ))
<a name="l00182"></a>00182                 { }
<a name="l00183"></a>00183 
<a name="l00184"></a>00184 };
<a name="l00185"></a>00185 <span class="comment"></span>
<a name="l00186"></a>00186 <span class="comment">/**</span>
<a name="l00187"></a>00187 <span class="comment"> * (Added by JLBC for MRPT): An exception that indicates to CmdLine::parse that</span>
<a name="l00188"></a>00188 <span class="comment"> *   help,version,... have been invoked so it should return false for the main program to exit.</span>
<a name="l00189"></a>00189 <span class="comment"> */</span>
<a name="l00190"></a>00190 <span class="keyword">class </span>ActionDoneException : <span class="keyword">public</span> std::runtime_error
<a name="l00191"></a>00191 {
<a name="l00192"></a>00192 <span class="keyword">public</span>:
<a name="l00193"></a><a class="code" href="class_t_c_l_a_p_1_1_action_done_exception.html#a0e4c484040606f275d01a4c3d53af591">00193</a>         <a class="code" href="class_t_c_l_a_p_1_1_action_done_exception.html#a0e4c484040606f275d01a4c3d53af591">ActionDoneException</a>(<span class="keyword">const</span> <a class="code" href="classstd_1_1string.html" title="STL class.">std::string</a> &amp;text = <a class="code" href="classstd_1_1string.html" title="STL class.">std::string</a>() ) :
<a name="l00194"></a>00194           std::runtime_error(text.c_str())
<a name="l00195"></a>00195         {
<a name="l00196"></a>00196         }
<a name="l00197"></a>00197 };
<a name="l00198"></a>00198 
<a name="l00199"></a>00199 
<a name="l00200"></a>00200 } <span class="comment">// namespace TCLAP</span>
<a name="l00201"></a>00201 
<a name="l00202"></a>00202 <span class="preprocessor">#endif</span>
<a name="l00203"></a>00203 <span class="preprocessor"></span>
</pre></div></div>
</div>
<br><hr><br> <table border="0" width="100%"> <tr> <td> Page generated by <a href="http://www.doxygen.org" target="_blank">Doxygen 1.7.5</a> for MRPT 0.9.5 SVN: at Sun Sep 25 17:20:18 UTC 2011</td><td></td> <td width="100"> </td> <td width="150">  </td></tr> </table>  </body></html>