File: ofxdump_2cmdline_8h-source.html

package info (click to toggle)
libofx 1%3A0.9.0-3
  • links: PTS
  • area: main
  • in suites: lenny, squeeze
  • size: 9,864 kB
  • ctags: 31,331
  • sloc: sh: 8,861; cpp: 5,714; ansic: 2,524; makefile: 204; xml: 61
file content (119 lines) | stat: -rw-r--r-- 18,984 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>LibOFX: cmdline.h Source File</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.3 -->
<div class="tabs">
  <ul>
    <li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
    <li><a href="namespaces.html"><span>Namespaces</span></a></li>
    <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
    <li class="current"><a href="files.html"><span>Files</span></a></li>
  </ul>
</div>
<h1>cmdline.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00008"></a>00008 <span class="preprocessor">#ifndef CMDLINE_H</span>
<a name="l00009"></a>00009 <span class="preprocessor"></span><span class="preprocessor">#define CMDLINE_H</span>
<a name="l00010"></a>00010 <span class="preprocessor"></span>
<a name="l00011"></a>00011 <span class="comment">/* If we use autoconf.  */</span>
<a name="l00012"></a>00012 <span class="preprocessor">#ifdef HAVE_CONFIG_H</span>
<a name="l00013"></a>00013 <span class="preprocessor"></span><span class="preprocessor">#include "config.h"</span>
<a name="l00014"></a>00014 <span class="preprocessor">#endif</span>
<a name="l00015"></a>00015 <span class="preprocessor"></span>
<a name="l00016"></a>00016 <span class="preprocessor">#ifdef __cplusplus</span>
<a name="l00017"></a>00017 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">"C"</span> {
<a name="l00018"></a>00018 <span class="preprocessor">#endif </span><span class="comment">/* __cplusplus */</span>
<a name="l00019"></a>00019 
<a name="l00020"></a>00020 <span class="preprocessor">#ifndef CMDLINE_PARSER_PACKAGE</span>
<a name="l00021"></a>00021 <span class="preprocessor"></span>
<a name="l00022"></a>00022 <span class="preprocessor">#define CMDLINE_PARSER_PACKAGE PACKAGE</span>
<a name="l00023"></a>00023 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00024"></a>00024 <span class="preprocessor"></span>
<a name="l00025"></a>00025 <span class="preprocessor">#ifndef CMDLINE_PARSER_VERSION</span>
<a name="l00026"></a>00026 <span class="preprocessor"></span>
<a name="l00027"></a>00027 <span class="preprocessor">#define CMDLINE_PARSER_VERSION VERSION</span>
<a name="l00028"></a>00028 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00029"></a>00029 <span class="preprocessor"></span>
<a name="l00031"></a>00031 <span class="keyword">struct </span><a class="code" href="structgengetopt__args__info.html" title="Where the command line options are stored.">gengetopt_args_info</a>
<a name="l00032"></a>00032 {
<a name="l00033"></a><a class="code" href="structgengetopt__args__info.html#fb4efa68a6f43a4d112e9b96ffe89101">00033</a>   <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="structgengetopt__args__info.html#fb4efa68a6f43a4d112e9b96ffe89101" title="Print help and exit help description.">help_help</a>; 
<a name="l00034"></a><a class="code" href="structgengetopt__args__info.html#def454ea6f3ff4114ae5009e58360cfc">00034</a>   <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="structgengetopt__args__info.html#def454ea6f3ff4114ae5009e58360cfc" title="Print version and exit help description.">version_help</a>; 
<a name="l00035"></a><a class="code" href="structgengetopt__args__info.html#fd7d2f3818ff621010c59ede619bbbbd">00035</a>   <span class="keywordtype">char</span> * <a class="code" href="structgengetopt__args__info.html#fd7d2f3818ff621010c59ede619bbbbd" title="Force the file format of the file(s) specified (default=&amp;#39;AUTODETECT&amp;#39;).">import_format_arg</a>;     
<a name="l00036"></a><a class="code" href="structgengetopt__args__info.html#3c13bc9d3d4494dba568b036a1c12f06">00036</a>   <span class="keywordtype">char</span> * <a class="code" href="structgengetopt__args__info.html#3c13bc9d3d4494dba568b036a1c12f06" title="Force the file format of the file(s) specified original value given at command line...">import_format_orig</a>;    
<a name="l00037"></a><a class="code" href="structgengetopt__args__info.html#67f0c3406ca68e20cdadaf5e281625a2">00037</a>   <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="structgengetopt__args__info.html#67f0c3406ca68e20cdadaf5e281625a2" title="Force the file format of the file(s) specified help description.">import_format_help</a>; 
<a name="l00038"></a><a class="code" href="structgengetopt__args__info.html#c4b7c58b32c755377a6c7fcafbfa3d3f">00038</a>   <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="structgengetopt__args__info.html#c4b7c58b32c755377a6c7fcafbfa3d3f" title="List available import file formats &amp;#39;import-format&amp;#39; command help description...">list_import_formats_help</a>; 
<a name="l00039"></a><a class="code" href="structgengetopt__args__info.html#59f4d83dff3e538372141bbfe3576762">00039</a>   <span class="keywordtype">int</span> <a class="code" href="structgengetopt__args__info.html#59f4d83dff3e538372141bbfe3576762" title="Output file parsing messages (default=off).">msg_parser_flag</a>;  
<a name="l00040"></a><a class="code" href="structgengetopt__args__info.html#44d331d24edd73a287609be9ad293753">00040</a>   <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="structgengetopt__args__info.html#44d331d24edd73a287609be9ad293753" title="Output file parsing messages help description.">msg_parser_help</a>; 
<a name="l00041"></a><a class="code" href="structgengetopt__args__info.html#6816290fe582d0705947859d0c7934c5">00041</a>   <span class="keywordtype">int</span> <a class="code" href="structgengetopt__args__info.html#6816290fe582d0705947859d0c7934c5" title="Output messages meant for debuging (default=off).">msg_debug_flag</a>;   
<a name="l00042"></a><a class="code" href="structgengetopt__args__info.html#709980d4e8c7d3c8ab01d1dfee7589c1">00042</a>   <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="structgengetopt__args__info.html#709980d4e8c7d3c8ab01d1dfee7589c1" title="Output messages meant for debuging help description.">msg_debug_help</a>; 
<a name="l00043"></a><a class="code" href="structgengetopt__args__info.html#7dc02d27a0e51eb388b2bd48f834658c">00043</a>   <span class="keywordtype">int</span> <a class="code" href="structgengetopt__args__info.html#7dc02d27a0e51eb388b2bd48f834658c" title="Output warning messages about abnormal conditions and unknown constructs (default=on)...">msg_warning_flag</a>; 
<a name="l00044"></a><a class="code" href="structgengetopt__args__info.html#b37e89030d7bc1b94cd44a6b6cc4c042">00044</a>   <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="structgengetopt__args__info.html#b37e89030d7bc1b94cd44a6b6cc4c042" title="Output warning messages about abnormal conditions and unknown constructs help description...">msg_warning_help</a>; 
<a name="l00045"></a><a class="code" href="structgengetopt__args__info.html#b1b6520555a34ca4a39feaed3365af6d">00045</a>   <span class="keywordtype">int</span> <a class="code" href="structgengetopt__args__info.html#b1b6520555a34ca4a39feaed3365af6d" title="Output error messages (default=on).">msg_error_flag</a>;   
<a name="l00046"></a><a class="code" href="structgengetopt__args__info.html#0b4c076b2876844650aa2aec275f5684">00046</a>   <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="structgengetopt__args__info.html#0b4c076b2876844650aa2aec275f5684" title="Output error messages help description.">msg_error_help</a>; 
<a name="l00047"></a><a class="code" href="structgengetopt__args__info.html#74ac0d99a57abc9a1088d356f87e7197">00047</a>   <span class="keywordtype">int</span> <a class="code" href="structgengetopt__args__info.html#74ac0d99a57abc9a1088d356f87e7197" title="Output informational messages about the progress of the library (default=on).">msg_info_flag</a>;    
<a name="l00048"></a><a class="code" href="structgengetopt__args__info.html#2491c609276fe4795f7caeb0d9baec1b">00048</a>   <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="structgengetopt__args__info.html#2491c609276fe4795f7caeb0d9baec1b" title="Output informational messages about the progress of the library help description...">msg_info_help</a>; 
<a name="l00049"></a><a class="code" href="structgengetopt__args__info.html#1301d1fa05fef326526db58a63cfc6fd">00049</a>   <span class="keywordtype">int</span> <a class="code" href="structgengetopt__args__info.html#1301d1fa05fef326526db58a63cfc6fd" title="Output status messages (default=on).">msg_status_flag</a>;  
<a name="l00050"></a><a class="code" href="structgengetopt__args__info.html#552341af51d5f58f88ceb5fc229e998d">00050</a>   <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="structgengetopt__args__info.html#552341af51d5f58f88ceb5fc229e998d" title="Output status messages help description.">msg_status_help</a>; 
<a name="l00052"></a>00052   <span class="keywordtype">int</span> <a class="code" href="structgengetopt__args__info.html#fcc22c3f15bfc05d4d36824cbb2b661c" title="Whether help was given.">help_given</a> ;      
<a name="l00053"></a>00053   <span class="keywordtype">int</span> <a class="code" href="structgengetopt__args__info.html#18b7279f3b637b9e9192a88fc26973ae" title="Whether version was given.">version_given</a> ;   
<a name="l00054"></a><a class="code" href="structgengetopt__args__info.html#74de3df4be73e27a34c25f3c9caa8842">00054</a>   <span class="keywordtype">int</span> <a class="code" href="structgengetopt__args__info.html#74de3df4be73e27a34c25f3c9caa8842" title="Whether import-format was given.">import_format_given</a> ;     
<a name="l00055"></a><a class="code" href="structgengetopt__args__info.html#3ce8624eadc057f023ac4bc161ee8068">00055</a>   <span class="keywordtype">int</span> <a class="code" href="structgengetopt__args__info.html#3ce8624eadc057f023ac4bc161ee8068" title="Whether list-import-formats was given.">list_import_formats_given</a> ;       
<a name="l00056"></a><a class="code" href="structgengetopt__args__info.html#b3f6a3ef39527fbcedd989afe6a36dd0">00056</a>   <span class="keywordtype">int</span> <a class="code" href="structgengetopt__args__info.html#b3f6a3ef39527fbcedd989afe6a36dd0" title="Whether msg_parser was given.">msg_parser_given</a> ;        
<a name="l00057"></a><a class="code" href="structgengetopt__args__info.html#85d6ce6864169669a8234b1d27f0978f">00057</a>   <span class="keywordtype">int</span> <a class="code" href="structgengetopt__args__info.html#85d6ce6864169669a8234b1d27f0978f" title="Whether msg_debug was given.">msg_debug_given</a> ; 
<a name="l00058"></a><a class="code" href="structgengetopt__args__info.html#b6b10f2a7687e6a512cf3bbcc7ddda61">00058</a>   <span class="keywordtype">int</span> <a class="code" href="structgengetopt__args__info.html#b6b10f2a7687e6a512cf3bbcc7ddda61" title="Whether msg_warning was given.">msg_warning_given</a> ;       
<a name="l00059"></a><a class="code" href="structgengetopt__args__info.html#f797b906ea2db4dc0c302e589f130dc5">00059</a>   <span class="keywordtype">int</span> <a class="code" href="structgengetopt__args__info.html#f797b906ea2db4dc0c302e589f130dc5" title="Whether msg_error was given.">msg_error_given</a> ; 
<a name="l00060"></a><a class="code" href="structgengetopt__args__info.html#2aa86a497519afc4db0a525f3854470c">00060</a>   <span class="keywordtype">int</span> <a class="code" href="structgengetopt__args__info.html#2aa86a497519afc4db0a525f3854470c" title="Whether msg_info was given.">msg_info_given</a> ;  
<a name="l00061"></a><a class="code" href="structgengetopt__args__info.html#d205671e6055ea4e51a6af081fe317fd">00061</a>   <span class="keywordtype">int</span> <a class="code" href="structgengetopt__args__info.html#d205671e6055ea4e51a6af081fe317fd" title="Whether msg_status was given.">msg_status_given</a> ;        
<a name="l00063"></a><a class="code" href="structgengetopt__args__info.html#9604690019dd09b318302dae6868726c">00063</a>   <span class="keywordtype">char</span> **<a class="code" href="structgengetopt__args__info.html#9604690019dd09b318302dae6868726c" title="unamed options (options without names)">inputs</a> ; 
<a name="l00064"></a>00064   <span class="keywordtype">unsigned</span> <a class="code" href="structgengetopt__args__info.html#3d69c180d5ac0b1124fd9a6fe680706c" title="unamed options number">inputs_num</a> ; 
<a name="l00065"></a>00065 } ;
<a name="l00066"></a>00066 
<a name="l00068"></a>00068 <span class="keyword">struct </span><a class="code" href="structcmdline__parser__params.html" title="The additional parameters to pass to parser functions.">cmdline_parser_params</a>
<a name="l00069"></a>00069 {
<a name="l00070"></a>00070   <span class="keywordtype">int</span> <span class="keyword">override</span>; 
<a name="l00071"></a>00071   <span class="keywordtype">int</span> <a class="code" href="structcmdline__parser__params.html#97ed8a6eabd39291ae7d73f273e12c11" title="whether to initialize the option structure gengetopt_args_info (default 0)">initialize</a>; 
<a name="l00072"></a>00072   <span class="keywordtype">int</span> <a class="code" href="structcmdline__parser__params.html#44ff439d7e9e36799e59173af74829c6" title="whether to check that all required options were provided (default 0)">check_required</a>; 
<a name="l00073"></a>00073   <span class="keywordtype">int</span> <a class="code" href="structcmdline__parser__params.html#6e4442704fc40b0b655f7cc602f13ec4" title="whether to check for options already specified in the option structure gengetopt_args_info...">check_ambiguity</a>; 
<a name="l00074"></a>00074 } ;
<a name="l00075"></a>00075 
<a name="l00077"></a>00077 <span class="keyword">extern</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *gengetopt_args_info_purpose;
<a name="l00079"></a>00079 <span class="keyword">extern</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *gengetopt_args_info_usage;
<a name="l00081"></a>00081 <span class="keyword">extern</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *gengetopt_args_info_help[];
<a name="l00082"></a>00082 
<a name="l00090"></a>00090 <span class="keywordtype">int</span> cmdline_parser (<span class="keywordtype">int</span> argc, <span class="keywordtype">char</span> * <span class="keyword">const</span> *argv,
<a name="l00091"></a>00091   <span class="keyword">struct</span> <a class="code" href="structgengetopt__args__info.html" title="Where the command line options are stored.">gengetopt_args_info</a> *args_info);
<a name="l00092"></a>00092 
<a name="l00104"></a>00104 <span class="keywordtype">int</span> cmdline_parser2 (<span class="keywordtype">int</span> argc, <span class="keywordtype">char</span> * <span class="keyword">const</span> *argv,
<a name="l00105"></a>00105   <span class="keyword">struct</span> <a class="code" href="structgengetopt__args__info.html" title="Where the command line options are stored.">gengetopt_args_info</a> *args_info,
<a name="l00106"></a>00106   <span class="keywordtype">int</span> <span class="keyword">override</span>, <span class="keywordtype">int</span> initialize, <span class="keywordtype">int</span> check_required);
<a name="l00107"></a>00107 
<a name="l00116"></a>00116 <span class="keywordtype">int</span> cmdline_parser_ext (<span class="keywordtype">int</span> argc, <span class="keywordtype">char</span> * <span class="keyword">const</span> *argv,
<a name="l00117"></a>00117   <span class="keyword">struct</span> <a class="code" href="structgengetopt__args__info.html" title="Where the command line options are stored.">gengetopt_args_info</a> *args_info,
<a name="l00118"></a>00118   <span class="keyword">struct</span> <a class="code" href="structcmdline__parser__params.html" title="The additional parameters to pass to parser functions.">cmdline_parser_params</a> *params);
<a name="l00119"></a>00119 
<a name="l00127"></a>00127 <span class="keywordtype">int</span> cmdline_parser_file_save(<span class="keyword">const</span> <span class="keywordtype">char</span> *filename,
<a name="l00128"></a>00128   <span class="keyword">struct</span> <a class="code" href="structgengetopt__args__info.html" title="Where the command line options are stored.">gengetopt_args_info</a> *args_info);
<a name="l00129"></a>00129 
<a name="l00133"></a>00133 <span class="keywordtype">void</span> cmdline_parser_print_help(<span class="keywordtype">void</span>);
<a name="l00137"></a>00137 <span class="keywordtype">void</span> cmdline_parser_print_version(<span class="keywordtype">void</span>);
<a name="l00138"></a>00138 
<a name="l00144"></a>00144 <span class="keyword">struct </span><a class="code" href="structcmdline__parser__params.html" title="The additional parameters to pass to parser functions.">cmdline_parser_params</a> *cmdline_parser_params_init();
<a name="l00145"></a>00145 
<a name="l00151"></a>00151 <span class="keywordtype">void</span> cmdline_parser_init (<span class="keyword">struct</span> <a class="code" href="structgengetopt__args__info.html" title="Where the command line options are stored.">gengetopt_args_info</a> *args_info);
<a name="l00157"></a>00157 <span class="keywordtype">void</span> cmdline_parser_free (<span class="keyword">struct</span> <a class="code" href="structgengetopt__args__info.html" title="Where the command line options are stored.">gengetopt_args_info</a> *args_info);
<a name="l00158"></a>00158 
<a name="l00166"></a>00166 <span class="keywordtype">int</span> cmdline_parser_required (<span class="keyword">struct</span> <a class="code" href="structgengetopt__args__info.html" title="Where the command line options are stored.">gengetopt_args_info</a> *args_info,
<a name="l00167"></a>00167   <span class="keyword">const</span> <span class="keywordtype">char</span> *prog_name);
<a name="l00168"></a>00168 
<a name="l00169"></a>00169 
<a name="l00170"></a>00170 <span class="preprocessor">#ifdef __cplusplus</span>
<a name="l00171"></a>00171 <span class="preprocessor"></span>}
<a name="l00172"></a>00172 <span class="preprocessor">#endif </span><span class="comment">/* __cplusplus */</span>
<a name="l00173"></a>00173 <span class="preprocessor">#endif </span><span class="comment">/* CMDLINE_H */</span>
</pre></div><hr size="1"><address style="text-align: right;"><small>Generated on Mon Nov 19 20:27:58 2007 for LibOFX by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.3 </small></address>
</body>
</html>