<!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>GNU CommonC++: cmdoptns.h Source File</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="doxygen.css" rel="stylesheet" type="text/css"/> </head> <body> <!-- Generated by Doxygen 1.6.3 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.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 class="current"><a href="files.html"><span>Files</span></a></li> <li><a href="examples.html"><span>Examples</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>cmdoptns.h</h1><a href="cmdoptns_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// Copyright (C) 2001-2008 Gianni Mariani</span> <a name="l00002"></a>00002 <span class="comment">//</span> <a name="l00003"></a>00003 <span class="comment">// This program is free software; you can redistribute it and/or modify</span> <a name="l00004"></a>00004 <span class="comment">// it under the terms of the GNU General Public License as published by</span> <a name="l00005"></a>00005 <span class="comment">// the Free Software Foundation; either version 2 of the License, or</span> <a name="l00006"></a>00006 <span class="comment">// (at your option) any later version.</span> <a name="l00007"></a>00007 <span class="comment">//</span> <a name="l00008"></a>00008 <span class="comment">// This program is distributed in the hope that it will be useful,</span> <a name="l00009"></a>00009 <span class="comment">// but WITHOUT ANY WARRANTY; without even the implied warranty of</span> <a name="l00010"></a>00010 <span class="comment">// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span> <a name="l00011"></a>00011 <span class="comment">// GNU General Public License for more details.</span> <a name="l00012"></a>00012 <span class="comment">//</span> <a name="l00013"></a>00013 <span class="comment">// You should have received a copy of the GNU General Public License</span> <a name="l00014"></a>00014 <span class="comment">// along with this program; if not, write to the Free Software</span> <a name="l00015"></a>00015 <span class="comment">// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.</span> <a name="l00016"></a>00016 <span class="comment">//</span> <a name="l00017"></a>00017 <span class="comment">// As a special exception, you may use this file as part of a free software</span> <a name="l00018"></a>00018 <span class="comment">// library without restriction. Specifically, if other files instantiate</span> <a name="l00019"></a>00019 <span class="comment">// templates or use macros or inline functions from this file, or you compile</span> <a name="l00020"></a>00020 <span class="comment">// this file and link it with other files to produce an executable, this</span> <a name="l00021"></a>00021 <span class="comment">// file does not by itself cause the resulting executable to be covered by</span> <a name="l00022"></a>00022 <span class="comment">// the GNU General Public License. This exception does not however</span> <a name="l00023"></a>00023 <span class="comment">// invalidate any other reasons why the executable file might be covered by</span> <a name="l00024"></a>00024 <span class="comment">// the GNU General Public License.</span> <a name="l00025"></a>00025 <span class="comment">//</span> <a name="l00026"></a>00026 <span class="comment">// This exception applies only to the code released under the name GNU</span> <a name="l00027"></a>00027 <span class="comment">// Common C++. If you copy code from other releases into a copy of GNU</span> <a name="l00028"></a>00028 <span class="comment">// Common C++, as the General Public License permits, the exception does</span> <a name="l00029"></a>00029 <span class="comment">// not apply to the code that you add in this way. To avoid misleading</span> <a name="l00030"></a>00030 <span class="comment">// anyone as to the status of such modified files, you must delete</span> <a name="l00031"></a>00031 <span class="comment">// this exception notice from them.</span> <a name="l00032"></a>00032 <span class="comment">//</span> <a name="l00033"></a>00033 <span class="comment">// If you write modifications of your own for GNU Common C++, it is your choice</span> <a name="l00034"></a>00034 <span class="comment">// whether to permit this exception to apply to your modifications.</span> <a name="l00035"></a>00035 <span class="comment">// If you do not wish that, delete this exception notice.</span> <a name="l00036"></a>00036 <span class="comment">//</span> <a name="l00037"></a>00037 <a name="l00043"></a>00043 <span class="preprocessor">#ifndef CCXX_CMDOPTNS_H_</span> <a name="l00044"></a>00044 <span class="preprocessor"></span><span class="preprocessor">#define CCXX_CMDOPTNS_H_</span> <a name="l00045"></a>00045 <span class="preprocessor"></span> <a name="l00046"></a>00046 <span class="preprocessor">#ifndef CCXX_STRING_H_</span> <a name="l00047"></a>00047 <span class="preprocessor"></span><span class="preprocessor">#include <<a class="code" href="string_8h.html" title="Common C++ generic string class.">cc++/string.h</a>></span> <a name="l00048"></a>00048 <span class="preprocessor">#endif</span> <a name="l00049"></a>00049 <span class="preprocessor"></span> <a name="l00050"></a>00050 <span class="preprocessor">#ifdef CCXX_NAMESPACES</span> <a name="l00051"></a>00051 <span class="preprocessor"></span><span class="keyword">namespace </span>ost { <a name="l00052"></a>00052 <span class="preprocessor">#endif</span> <a name="l00053"></a>00053 <span class="preprocessor"></span> <a name="l00054"></a>00054 <span class="keyword">class </span>CommandOption; <a name="l00055"></a>00055 <span class="keyword">class </span>CommandOptionParse; <a name="l00056"></a>00056 <a name="l00064"></a>00064 <span class="keyword">extern</span> <a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> CommandOption * <a class="code" href="namespaceost.html#a3b701311bbf7cf16f954820e316f5766" title="This defines a linked list head pointer for all the command line options that use...">defaultCommandOptionList</a>; <a name="l00065"></a>00065 <a name="l00076"></a><a class="code" href="classost_1_1_command_option.html">00076</a> <span class="keyword">class </span><a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> <a class="code" href="classost_1_1_command_option.html" title="CommandOption is the base class for all command line options.">CommandOption</a> { <a name="l00077"></a>00077 <span class="keyword">public</span>: <a name="l00078"></a>00078 <a name="l00083"></a><a class="code" href="classost_1_1_command_option.html#a3cf7d6f9d1943e981d29c38e2e188231">00083</a> <span class="keyword">const</span> <span class="keywordtype">char</span> * optionName; <a name="l00084"></a>00084 <a name="l00089"></a><a class="code" href="classost_1_1_command_option.html#ac894a27c5aeeb70ff07387bb721bd7c6">00089</a> <span class="keyword">const</span> <span class="keywordtype">char</span> * optionLetter; <a name="l00090"></a>00090 <a name="l00096"></a><a class="code" href="classost_1_1_command_option.html#ae7c1ad2ef21198b1bef933847ff5d197">00096</a> <span class="keyword">const</span> <span class="keywordtype">char</span> * description; <a name="l00097"></a>00097 <a name="l00103"></a><a class="code" href="classost_1_1_command_option.html#ab56f222627bb3843d2b055d42ceaa493">00103</a> <span class="keyword">enum</span> <a class="code" href="classost_1_1_command_option.html#ab56f222627bb3843d2b055d42ceaa493" title="OptionType is for denoting what type of option this is, with an arg, without an arg...">OptionType</a> { <a name="l00107"></a><a class="code" href="classost_1_1_command_option.html#ab56f222627bb3843d2b055d42ceaa493a51afdccef3c1eefa378b4ea79872fb9f">00107</a> hasArg, <a name="l00111"></a><a class="code" href="classost_1_1_command_option.html#ab56f222627bb3843d2b055d42ceaa493a206297cbdc29de03edfa0e24d589b227">00111</a> noArg, <a name="l00115"></a><a class="code" href="classost_1_1_command_option.html#ab56f222627bb3843d2b055d42ceaa493a4fbaf902c23f48a6d217585297f3afb5">00115</a> trailing, <a name="l00119"></a><a class="code" href="classost_1_1_command_option.html#ab56f222627bb3843d2b055d42ceaa493a9ebaee9fbe6ef1338347908f6e410095">00119</a> collect <a name="l00120"></a>00120 }; <a name="l00121"></a>00121 <a name="l00125"></a><a class="code" href="classost_1_1_command_option.html#a2e5f9f895bda7cf7dbe48e0106866368">00125</a> <a class="code" href="classost_1_1_command_option.html#ab56f222627bb3843d2b055d42ceaa493" title="OptionType is for denoting what type of option this is, with an arg, without an arg...">OptionType</a> optionType; <span class="comment">// HasArg, NoArg or Trailing</span> <a name="l00126"></a>00126 <a name="l00131"></a><a class="code" href="classost_1_1_command_option.html#a05f8b1439cbf0cf33f47707a33baad57">00131</a> <span class="keywordtype">bool</span> required; <span class="comment">// Option is required - fail without it</span> <a name="l00132"></a>00132 <a name="l00137"></a><a class="code" href="classost_1_1_command_option.html#a0dd94d805913bf11cd188de53baaf27c">00137</a> <a class="code" href="classost_1_1_command_option.html" title="CommandOption is the base class for all command line options.">CommandOption</a> * next; <a name="l00138"></a>00138 <a name="l00142"></a>00142 <span class="keyword">virtual</span> ~<a class="code" href="classost_1_1_command_option.html" title="CommandOption is the base class for all command line options.">CommandOption</a>(); <a name="l00143"></a>00143 <a name="l00155"></a>00155 <a class="code" href="classost_1_1_command_option.html" title="CommandOption is the base class for all command line options.">CommandOption</a>( <a name="l00156"></a>00156 <span class="keyword">const</span> <span class="keywordtype">char</span> * inOptionName, <a name="l00157"></a>00157 <span class="keyword">const</span> <span class="keywordtype">char</span> * inOptionLetter, <a name="l00158"></a>00158 <span class="keyword">const</span> <span class="keywordtype">char</span> * inDescription, <a name="l00159"></a>00159 <a class="code" href="classost_1_1_command_option.html#ab56f222627bb3843d2b055d42ceaa493" title="OptionType is for denoting what type of option this is, with an arg, without an arg...">OptionType</a> inOptionType, <a name="l00160"></a>00160 <span class="keywordtype">bool</span> inRequired = <span class="keyword">false</span>, <a name="l00161"></a>00161 <a class="code" href="classost_1_1_command_option.html" title="CommandOption is the base class for all command line options.">CommandOption</a> ** ppNext = & <a class="code" href="namespaceost.html#a3b701311bbf7cf16f954820e316f5766" title="This defines a linked list head pointer for all the command line options that use...">defaultCommandOptionList</a> <a name="l00162"></a>00162 ); <a name="l00163"></a>00163 <a name="l00171"></a>00171 <span class="keyword">virtual</span> <span class="keywordtype">void</span> foundOption( <a class="code" href="classost_1_1_command_option_parse.html" title="This is the CommandOptionParse interface class.">CommandOptionParse</a> * cop, <span class="keyword">const</span> <span class="keywordtype">char</span> * value = 0 ); <a name="l00172"></a>00172 <a name="l00181"></a>00181 <span class="keyword">virtual</span> <span class="keywordtype">void</span> foundOption( <a class="code" href="classost_1_1_command_option_parse.html" title="This is the CommandOptionParse interface class.">CommandOptionParse</a> * cop, <span class="keyword">const</span> <span class="keywordtype">char</span> ** value, <span class="keywordtype">int</span> num ); <a name="l00182"></a>00182 <a name="l00189"></a>00189 <span class="keyword">virtual</span> <span class="keywordtype">void</span> parseDone( <a class="code" href="classost_1_1_command_option_parse.html" title="This is the CommandOptionParse interface class.">CommandOptionParse</a> * cop ); <a name="l00190"></a>00190 <a name="l00198"></a>00198 <span class="keyword">virtual</span> <span class="keywordtype">void</span> performTask( <a class="code" href="classost_1_1_command_option_parse.html" title="This is the CommandOptionParse interface class.">CommandOptionParse</a> * cop ); <a name="l00199"></a>00199 <a name="l00206"></a>00206 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> hasValue(); <a name="l00207"></a>00207 <a name="l00208"></a>00208 }; <a name="l00209"></a>00209 <a name="l00214"></a><a class="code" href="classost_1_1_command_option_with_arg.html">00214</a> <span class="keyword">class </span><a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> <a class="code" href="classost_1_1_command_option_with_arg.html" title="Derived class of CommandOption for options that have a value associated with them...">CommandOptionWithArg</a> : <span class="keyword">public</span> <a class="code" href="classost_1_1_command_option.html" title="CommandOption is the base class for all command line options.">CommandOption</a> { <a name="l00215"></a>00215 <span class="keyword">public</span>: <a name="l00216"></a>00216 <a name="l00220"></a><a class="code" href="classost_1_1_command_option_with_arg.html#a5ccc2d9deb4a248d8414193385a1fc09">00220</a> <span class="keyword">const</span> <span class="keywordtype">char</span> ** values; <a name="l00221"></a>00221 <a name="l00225"></a><a class="code" href="classost_1_1_command_option_with_arg.html#a1fdb4121e6a385dd52e6599338019ce7">00225</a> <span class="keywordtype">int</span> numValue; <a name="l00226"></a>00226 <a name="l00238"></a>00238 <a class="code" href="classost_1_1_command_option_with_arg.html" title="Derived class of CommandOption for options that have a value associated with them...">CommandOptionWithArg</a>( <a name="l00239"></a>00239 <span class="keyword">const</span> <span class="keywordtype">char</span> * inOptionName, <a name="l00240"></a>00240 <span class="keyword">const</span> <span class="keywordtype">char</span> * inOptionLetter, <a name="l00241"></a>00241 <span class="keyword">const</span> <span class="keywordtype">char</span> * inDescription, <a name="l00242"></a>00242 <a class="code" href="classost_1_1_command_option.html#ab56f222627bb3843d2b055d42ceaa493" title="OptionType is for denoting what type of option this is, with an arg, without an arg...">OptionType</a> inOptionType, <a name="l00243"></a>00243 <span class="keywordtype">bool</span> inRequired = <span class="keyword">false</span>, <a name="l00244"></a>00244 <a class="code" href="classost_1_1_command_option.html" title="CommandOption is the base class for all command line options.">CommandOption</a> ** ppNext = & <a class="code" href="namespaceost.html#a3b701311bbf7cf16f954820e316f5766" title="This defines a linked list head pointer for all the command line options that use...">defaultCommandOptionList</a> <a name="l00245"></a>00245 ); <a name="l00246"></a>00246 <a name="l00247"></a>00247 <span class="keyword">virtual</span> ~<a class="code" href="classost_1_1_command_option_with_arg.html" title="Derived class of CommandOption for options that have a value associated with them...">CommandOptionWithArg</a>(); <a name="l00248"></a>00248 <a name="l00249"></a>00249 <span class="keyword">virtual</span> <span class="keywordtype">void</span> foundOption( <a class="code" href="classost_1_1_command_option_parse.html" title="This is the CommandOptionParse interface class.">CommandOptionParse</a> * cop, <span class="keyword">const</span> <span class="keywordtype">char</span> * value = 0 ); <a name="l00250"></a>00250 <span class="keyword">virtual</span> <span class="keywordtype">void</span> foundOption( <a class="code" href="classost_1_1_command_option_parse.html" title="This is the CommandOptionParse interface class.">CommandOptionParse</a> * cop, <span class="keyword">const</span> <span class="keywordtype">char</span> ** value, <span class="keywordtype">int</span> num ); <a name="l00251"></a>00251 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> hasValue(); <a name="l00252"></a>00252 }; <a name="l00253"></a>00253 <a name="l00257"></a><a class="code" href="classost_1_1_command_option_arg.html">00257</a> <span class="keyword">class </span><a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> <a class="code" href="classost_1_1_command_option_arg.html" title="Class for options with an argument e.g.">CommandOptionArg</a> : <span class="keyword">public</span> <a class="code" href="classost_1_1_command_option_with_arg.html" title="Derived class of CommandOption for options that have a value associated with them...">CommandOptionWithArg</a> { <a name="l00258"></a>00258 <span class="keyword">public</span>: <a name="l00259"></a>00259 <a name="l00270"></a>00270 <a class="code" href="classost_1_1_command_option_arg.html" title="Class for options with an argument e.g.">CommandOptionArg</a>( <a name="l00271"></a>00271 <span class="keyword">const</span> <span class="keywordtype">char</span> * inOptionName, <a name="l00272"></a>00272 <span class="keyword">const</span> <span class="keywordtype">char</span> * inOptionLetter, <a name="l00273"></a>00273 <span class="keyword">const</span> <span class="keywordtype">char</span> * inDescription, <a name="l00274"></a>00274 <span class="keywordtype">bool</span> inRequired = <span class="keyword">false</span>, <a name="l00275"></a>00275 <a class="code" href="classost_1_1_command_option.html" title="CommandOption is the base class for all command line options.">CommandOption</a> ** ppNext = & <a class="code" href="namespaceost.html#a3b701311bbf7cf16f954820e316f5766" title="This defines a linked list head pointer for all the command line options that use...">defaultCommandOptionList</a> <a name="l00276"></a>00276 ); <a name="l00277"></a>00277 <a name="l00278"></a>00278 <span class="keyword">virtual</span> ~<a class="code" href="classost_1_1_command_option_arg.html" title="Class for options with an argument e.g.">CommandOptionArg</a>(); <a name="l00279"></a>00279 <a name="l00280"></a>00280 <a name="l00281"></a>00281 }; <a name="l00282"></a>00282 <a name="l00292"></a><a class="code" href="classost_1_1_command_option_rest.html">00292</a> <span class="keyword">class </span><a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> <a class="code" href="classost_1_1_command_option_rest.html" title="It only makes sense to have a single one of these set and it is exclusive with CommandOptionCollect...">CommandOptionRest</a> : <span class="keyword">public</span> <a class="code" href="classost_1_1_command_option_with_arg.html" title="Derived class of CommandOption for options that have a value associated with them...">CommandOptionWithArg</a> { <a name="l00293"></a>00293 <span class="keyword">public</span>: <a name="l00294"></a>00294 <a name="l00305"></a>00305 <a class="code" href="classost_1_1_command_option_rest.html" title="It only makes sense to have a single one of these set and it is exclusive with CommandOptionCollect...">CommandOptionRest</a>( <a name="l00306"></a>00306 <span class="keyword">const</span> <span class="keywordtype">char</span> * inOptionName, <a name="l00307"></a>00307 <span class="keyword">const</span> <span class="keywordtype">char</span> * inOptionLetter, <a name="l00308"></a>00308 <span class="keyword">const</span> <span class="keywordtype">char</span> * inDescription, <a name="l00309"></a>00309 <span class="keywordtype">bool</span> inRequired = <span class="keyword">false</span>, <a name="l00310"></a>00310 <a class="code" href="classost_1_1_command_option.html" title="CommandOption is the base class for all command line options.">CommandOption</a> ** ppNext = & <a class="code" href="namespaceost.html#a3b701311bbf7cf16f954820e316f5766" title="This defines a linked list head pointer for all the command line options that use...">defaultCommandOptionList</a> <a name="l00311"></a>00311 ); <a name="l00312"></a>00312 <a name="l00313"></a>00313 }; <a name="l00314"></a>00314 <a name="l00322"></a><a class="code" href="classost_1_1_command_option_collect.html">00322</a> <span class="keyword">class </span><a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> <a class="code" href="classost_1_1_command_option_collect.html" title="It only makes sense to have a single one of these set and it is also exclusive with...">CommandOptionCollect</a> : <span class="keyword">public</span> <a class="code" href="classost_1_1_command_option_with_arg.html" title="Derived class of CommandOption for options that have a value associated with them...">CommandOptionWithArg</a> { <a name="l00323"></a>00323 <span class="keyword">public</span>: <a name="l00324"></a>00324 <a name="l00335"></a>00335 <a class="code" href="classost_1_1_command_option_collect.html" title="It only makes sense to have a single one of these set and it is also exclusive with...">CommandOptionCollect</a>( <a name="l00336"></a>00336 <span class="keyword">const</span> <span class="keywordtype">char</span> * inOptionName, <a name="l00337"></a>00337 <span class="keyword">const</span> <span class="keywordtype">char</span> * inOptionLetter, <a name="l00338"></a>00338 <span class="keyword">const</span> <span class="keywordtype">char</span> * inDescription, <a name="l00339"></a>00339 <span class="keywordtype">bool</span> inRequired = <span class="keyword">false</span>, <a name="l00340"></a>00340 <a class="code" href="classost_1_1_command_option.html" title="CommandOption is the base class for all command line options.">CommandOption</a> ** ppNext = & <a class="code" href="namespaceost.html#a3b701311bbf7cf16f954820e316f5766" title="This defines a linked list head pointer for all the command line options that use...">defaultCommandOptionList</a> <a name="l00341"></a>00341 ); <a name="l00342"></a>00342 <a name="l00343"></a>00343 }; <a name="l00344"></a>00344 <a name="l00348"></a><a class="code" href="classost_1_1_command_option_no_arg.html">00348</a> <span class="keyword">class </span><a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> <a class="code" href="classost_1_1_command_option_no_arg.html" title="CommandOption type for flags.">CommandOptionNoArg</a> : <span class="keyword">public</span> <a class="code" href="classost_1_1_command_option.html" title="CommandOption is the base class for all command line options.">CommandOption</a> { <a name="l00349"></a>00349 <span class="keyword">public</span>: <a name="l00350"></a>00350 <a name="l00354"></a><a class="code" href="classost_1_1_command_option_no_arg.html#a34ad5c00e41da5cb4b113e5f5c989436">00354</a> <span class="keywordtype">int</span> numSet; <span class="comment">// The number of times this argument is set</span> <a name="l00355"></a>00355 <a name="l00366"></a>00366 <a class="code" href="classost_1_1_command_option_no_arg.html" title="CommandOption type for flags.">CommandOptionNoArg</a>( <a name="l00367"></a>00367 <span class="keyword">const</span> <span class="keywordtype">char</span> * inOptionName, <a name="l00368"></a>00368 <span class="keyword">const</span> <span class="keywordtype">char</span> * inOptionLetter, <a name="l00369"></a>00369 <span class="keyword">const</span> <span class="keywordtype">char</span> * inDescription, <a name="l00370"></a>00370 <span class="keywordtype">bool</span> inRequired = <span class="keyword">false</span>, <a name="l00371"></a>00371 <a class="code" href="classost_1_1_command_option.html" title="CommandOption is the base class for all command line options.">CommandOption</a> ** ppNext = & <a class="code" href="namespaceost.html#a3b701311bbf7cf16f954820e316f5766" title="This defines a linked list head pointer for all the command line options that use...">defaultCommandOptionList</a> <a name="l00372"></a>00372 ); <a name="l00373"></a>00373 <a name="l00377"></a>00377 <span class="keyword">virtual</span> <span class="keywordtype">void</span> foundOption( <a class="code" href="classost_1_1_command_option_parse.html" title="This is the CommandOptionParse interface class.">CommandOptionParse</a> * cop, <span class="keyword">const</span> <span class="keywordtype">char</span> * value = 0 ); <a name="l00378"></a>00378 <a name="l00379"></a>00379 }; <a name="l00380"></a>00380 <a name="l00390"></a><a class="code" href="classost_1_1_command_option_parse.html">00390</a> <span class="keyword">class </span><a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> <a class="code" href="classost_1_1_command_option_parse.html" title="This is the CommandOptionParse interface class.">CommandOptionParse</a> { <a name="l00391"></a>00391 <span class="keyword">public</span>: <a name="l00392"></a>00392 <a name="l00396"></a>00396 <span class="keyword">virtual</span> ~<a class="code" href="classost_1_1_command_option_parse.html" title="This is the CommandOptionParse interface class.">CommandOptionParse</a>() = 0; <a name="l00397"></a>00397 <a name="l00401"></a>00401 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> argsHaveError() = 0; <a name="l00402"></a>00402 <a name="l00406"></a>00406 <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="keywordtype">char</span> * printErrors() = 0; <a name="l00407"></a>00407 <a name="l00411"></a>00411 <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="keywordtype">char</span> * printUsage() = 0; <a name="l00412"></a>00412 <a name="l00417"></a>00417 <span class="keyword">virtual</span> <span class="keywordtype">void</span> registerError( <span class="keyword">const</span> <span class="keywordtype">char</span> * errMsg ) = 0; <a name="l00418"></a>00418 <a name="l00423"></a>00423 <span class="keyword">virtual</span> <span class="keywordtype">void</span> performTask() = 0; <a name="l00424"></a>00424 <a name="l00425"></a>00425 }; <a name="l00426"></a>00426 <a name="l00435"></a>00435 <a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> <a class="code" href="classost_1_1_command_option_parse.html" title="This is the CommandOptionParse interface class.">CommandOptionParse</a> * <a class="code" href="namespaceost.html#a282d97c4c4323467d6e8b82cb93ec89d" title="makeCommandOptionParse will create an implementation of a CommandOptionParse object...">makeCommandOptionParse</a>( <a name="l00436"></a>00436 <span class="keywordtype">int</span> argc, <a name="l00437"></a>00437 <span class="keywordtype">char</span> ** argv, <a name="l00438"></a>00438 <span class="keyword">const</span> <span class="keywordtype">char</span> * comment, <a name="l00439"></a>00439 <a class="code" href="classost_1_1_command_option.html" title="CommandOption is the base class for all command line options.">CommandOption</a> * options = <a class="code" href="namespaceost.html#a3b701311bbf7cf16f954820e316f5766" title="This defines a linked list head pointer for all the command line options that use...">defaultCommandOptionList</a> <a name="l00440"></a>00440 ); <a name="l00441"></a>00441 <a name="l00442"></a>00442 <span class="preprocessor">#ifdef CCXX_NAMESPACES</span> <a name="l00443"></a>00443 <span class="preprocessor"></span>} <a name="l00444"></a>00444 <span class="preprocessor">#endif</span> <a name="l00445"></a>00445 <span class="preprocessor"></span> <a name="l00446"></a>00446 <span class="preprocessor">#endif</span> <a name="l00447"></a>00447 <span class="preprocessor"></span> </pre></div></div> <hr class="footer"/><address style="text-align: right;"><small>Generated on Fri Nov 12 09:55:46 2010 for GNU CommonC++ by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address> </body> </html>