ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/trunk/src/applications/dynamicProps/DynamicPropsCmd.h
(Generate patch)

Comparing trunk/src/applications/dynamicProps/DynamicPropsCmd.h (file contents):
Revision 320 by tim, Sun Feb 13 07:14:59 2005 UTC vs.
Revision 2024 by gezelter, Thu Oct 16 19:13:51 2014 UTC

# Line 1 | Line 1
1 < /* DynamicPropsCmd.h */
1 > /** @file DynamicPropsCmd.h
2 > *  @brief The header file for the command line option parser
3 > *  generated by GNU Gengetopt version 2.22.4
4 > *  http://www.gnu.org/software/gengetopt.
5 > *  DO NOT modify this file, since it can be overwritten
6 > *  @author GNU Gengetopt by Lorenzo Bettini */
7  
3 /* File autogenerated by gengetopt version 2.11  */
4
8   #ifndef DYNAMICPROPSCMD_H
9   #define DYNAMICPROPSCMD_H
10  
# Line 10 | Line 13
13   #include "config.h"
14   #endif
15  
16 + #include <stdio.h> /* for FILE */
17 +
18   #ifdef __cplusplus
19   extern "C" {
20   #endif /* __cplusplus */
21  
22   #ifndef CMDLINE_PARSER_PACKAGE
23 + /** @brief the program name (used for printing errors) */
24   #define CMDLINE_PARSER_PACKAGE "DynamicProps"
25   #endif
26  
27 + #ifndef CMDLINE_PARSER_PACKAGE_NAME
28 + /** @brief the complete program name (used for help and version) */
29 + #define CMDLINE_PARSER_PACKAGE_NAME "DynamicProps"
30 + #endif
31 +
32   #ifndef CMDLINE_PARSER_VERSION
33 + /** @brief the program version */
34   #define CMDLINE_PARSER_VERSION "1.00"
35   #endif
36  
37 + /** @brief Where the command line options are stored */
38   struct gengetopt_args_info
39   {
40 <  char * input_arg;     /* input dump file.  */
41 <  char * output_arg;    /* output file name.  */
42 <  char * sele1_arg;     /* select first stuntdouble set.  */
43 <  char * sele2_arg;     /* select second stuntdouble set (if sele2 is not set, use script from sele1).  */
40 >  const char *help_help; /**< @brief Print help and exit help description.  */
41 >  const char *version_help; /**< @brief Print version and exit help description.  */
42 >  char * input_arg;     /**< @brief input dump file.  */
43 >  char * input_orig;    /**< @brief input dump file original value given at command line.  */
44 >  const char *input_help; /**< @brief input dump file help description.  */
45 >  char * output_arg;    /**< @brief output file name.  */
46 >  char * output_orig;   /**< @brief output file name original value given at command line.  */
47 >  const char *output_help; /**< @brief output file name help description.  */
48 >  char * sele1_arg;     /**< @brief select first stuntdouble set.  */
49 >  char * sele1_orig;    /**< @brief select first stuntdouble set original value given at command line.  */
50 >  const char *sele1_help; /**< @brief select first stuntdouble set help description.  */
51 >  char * sele2_arg;     /**< @brief select second stuntdouble set (if sele2 is not set, use script from sele1).  */
52 >  char * sele2_orig;    /**< @brief select second stuntdouble set (if sele2 is not set, use script from sele1) original value given at command line.  */
53 >  const char *sele2_help; /**< @brief select second stuntdouble set (if sele2 is not set, use script from sele1) help description.  */
54 >  int order_arg;        /**< @brief Lengendre Polynomial Order.  */
55 >  char * order_orig;    /**< @brief Lengendre Polynomial Order original value given at command line.  */
56 >  const char *order_help; /**< @brief Lengendre Polynomial Order help description.  */
57 >  int nzbins_arg;       /**< @brief Number of Z bins (default='100').  */
58 >  char * nzbins_orig;   /**< @brief Number of Z bins original value given at command line.  */
59 >  const char *nzbins_help; /**< @brief Number of Z bins help description.  */
60 >  char * memory_arg;    /**< @brief Available memory (defaults to 2G) (default='2G').  */
61 >  char * memory_orig;   /**< @brief Available memory (defaults to 2G) original value given at command line.  */
62 >  const char *memory_help; /**< @brief Available memory (defaults to 2G) help description.  */
63 >  const char *selecorr_help; /**< @brief selection correlation function help description.  */
64 >  const char *rcorr_help; /**< @brief rmsd help description.  */
65 >  const char *vcorr_help; /**< @brief velocity correlation function help description.  */
66 >  const char *vcorrZ_help; /**< @brief velocity correlation function along z-axis help description.  */
67 >  const char *vcorrR_help; /**< @brief velocity correlation function projected radially help description.  */
68 >  const char *dcorr_help; /**< @brief dipole correlation function help description.  */
69 >  const char *lcorr_help; /**< @brief Lengendre correlation function help description.  */
70 >  const char *lcorrZ_help; /**< @brief Lengendre correlation function binned by Z help description.  */
71 >  const char *cohZ_help; /**< @brief Lengendre correlation function for OH bond vectors binned by Z help description.  */
72 >  const char *sdcorr_help; /**< @brief System dipole correlation function help description.  */
73 >  const char *r_rcorr_help; /**< @brief Radial rmsd help description.  */
74 >  const char *thetacorr_help; /**< @brief Angular rmsd help description.  */
75 >  const char *drcorr_help; /**< @brief Directional rmsd for particles with unit vectors help description.  */
76 >  const char *helfandEcorr_help; /**< @brief Helfand moment for thermal conductvity help description.  */
77 >  const char *momentum_help; /**< @brief Helfand momentum for viscosity help description.  */
78 >  const char *stresscorr_help; /**< @brief Stress tensor correlation function help description.  */
79 >  const char *bondcorr_help; /**< @brief Bond extension correlation function help description.  */
80 >  const char *freqfluccorr_help; /**< @brief Frequency Fluctuation correlation function help description.  */
81 >  
82 >  unsigned int help_given ;     /**< @brief Whether help was given.  */
83 >  unsigned int version_given ;  /**< @brief Whether version was given.  */
84 >  unsigned int input_given ;    /**< @brief Whether input was given.  */
85 >  unsigned int output_given ;   /**< @brief Whether output was given.  */
86 >  unsigned int sele1_given ;    /**< @brief Whether sele1 was given.  */
87 >  unsigned int sele2_given ;    /**< @brief Whether sele2 was given.  */
88 >  unsigned int order_given ;    /**< @brief Whether order was given.  */
89 >  unsigned int nzbins_given ;   /**< @brief Whether nzbins was given.  */
90 >  unsigned int memory_given ;   /**< @brief Whether memory was given.  */
91 >  unsigned int selecorr_given ; /**< @brief Whether selecorr was given.  */
92 >  unsigned int rcorr_given ;    /**< @brief Whether rcorr was given.  */
93 >  unsigned int vcorr_given ;    /**< @brief Whether vcorr was given.  */
94 >  unsigned int vcorrZ_given ;   /**< @brief Whether vcorrZ was given.  */
95 >  unsigned int vcorrR_given ;   /**< @brief Whether vcorrR was given.  */
96 >  unsigned int dcorr_given ;    /**< @brief Whether dcorr was given.  */
97 >  unsigned int lcorr_given ;    /**< @brief Whether lcorr was given.  */
98 >  unsigned int lcorrZ_given ;   /**< @brief Whether lcorrZ was given.  */
99 >  unsigned int cohZ_given ;     /**< @brief Whether cohZ was given.  */
100 >  unsigned int sdcorr_given ;   /**< @brief Whether sdcorr was given.  */
101 >  unsigned int r_rcorr_given ;  /**< @brief Whether r_rcorr was given.  */
102 >  unsigned int thetacorr_given ;        /**< @brief Whether thetacorr was given.  */
103 >  unsigned int drcorr_given ;   /**< @brief Whether drcorr was given.  */
104 >  unsigned int helfandEcorr_given ;     /**< @brief Whether helfandEcorr was given.  */
105 >  unsigned int momentum_given ; /**< @brief Whether momentum was given.  */
106 >  unsigned int stresscorr_given ;       /**< @brief Whether stresscorr was given.  */
107 >  unsigned int bondcorr_given ; /**< @brief Whether bondcorr was given.  */
108 >  unsigned int freqfluccorr_given ;     /**< @brief Whether freqfluccorr was given.  */
109  
110 <  int help_given ;      /* Whether help was given.  */
111 <  int version_given ;   /* Whether version was given.  */
112 <  int input_given ;     /* Whether input was given.  */
113 <  int output_given ;    /* Whether output was given.  */
36 <  int sele1_given ;     /* Whether sele1 was given.  */
37 <  int sele2_given ;     /* Whether sele2 was given.  */
38 <  int rcorr_given ;     /* Whether rcorr was given.  */
39 <  int vcorr_given ;     /* Whether vcorr was given.  */
40 <  int dcorr_given ;     /* Whether dcorr was given.  */
110 >  char **inputs ; /**< @brief unamed options (options without names) */
111 >  unsigned inputs_num ; /**< @brief unamed options number */
112 >  int dynamicProps_group_counter; /**< @brief Counter for group dynamicProps */
113 > } ;
114  
115 + /** @brief The additional parameters to pass to parser functions */
116 + struct cmdline_parser_params
117 + {
118 +  int override; /**< @brief whether to override possibly already present options (default 0) */
119 +  int initialize; /**< @brief whether to initialize the option structure gengetopt_args_info (default 1) */
120 +  int check_required; /**< @brief whether to check that all required options were provided (default 1) */
121 +  int check_ambiguity; /**< @brief whether to check for options already specified in the option structure gengetopt_args_info (default 0) */
122 +  int print_errors; /**< @brief whether getopt_long should print an error message for a bad option (default 1) */
123   } ;
124  
125 < int cmdline_parser (int argc, char * const *argv, struct gengetopt_args_info *args_info);
125 > /** @brief the purpose string of the program */
126 > extern const char *gengetopt_args_info_purpose;
127 > /** @brief the usage string of the program */
128 > extern const char *gengetopt_args_info_usage;
129 > /** @brief all the lines making the help output */
130 > extern const char *gengetopt_args_info_help[];
131  
132 + /**
133 + * The command line parser
134 + * @param argc the number of command line options
135 + * @param argv the command line options
136 + * @param args_info the structure where option information will be stored
137 + * @return 0 if everything went fine, NON 0 if an error took place
138 + */
139 + int cmdline_parser (int argc, char **argv,
140 +  struct gengetopt_args_info *args_info);
141 +
142 + /**
143 + * The command line parser (version with additional parameters - deprecated)
144 + * @param argc the number of command line options
145 + * @param argv the command line options
146 + * @param args_info the structure where option information will be stored
147 + * @param override whether to override possibly already present options
148 + * @param initialize whether to initialize the option structure my_args_info
149 + * @param check_required whether to check that all required options were provided
150 + * @return 0 if everything went fine, NON 0 if an error took place
151 + * @deprecated use cmdline_parser_ext() instead
152 + */
153 + int cmdline_parser2 (int argc, char **argv,
154 +  struct gengetopt_args_info *args_info,
155 +  int override, int initialize, int check_required);
156 +
157 + /**
158 + * The command line parser (version with additional parameters)
159 + * @param argc the number of command line options
160 + * @param argv the command line options
161 + * @param args_info the structure where option information will be stored
162 + * @param params additional parameters for the parser
163 + * @return 0 if everything went fine, NON 0 if an error took place
164 + */
165 + int cmdline_parser_ext (int argc, char **argv,
166 +  struct gengetopt_args_info *args_info,
167 +  struct cmdline_parser_params *params);
168 +
169 + /**
170 + * Save the contents of the option struct into an already open FILE stream.
171 + * @param outfile the stream where to dump options
172 + * @param args_info the option struct to dump
173 + * @return 0 if everything went fine, NON 0 if an error took place
174 + */
175 + int cmdline_parser_dump(FILE *outfile,
176 +  struct gengetopt_args_info *args_info);
177 +
178 + /**
179 + * Save the contents of the option struct into a (text) file.
180 + * This file can be read by the config file parser (if generated by gengetopt)
181 + * @param filename the file where to save
182 + * @param args_info the option struct to save
183 + * @return 0 if everything went fine, NON 0 if an error took place
184 + */
185 + int cmdline_parser_file_save(const char *filename,
186 +  struct gengetopt_args_info *args_info);
187 +
188 + /**
189 + * Print the help
190 + */
191   void cmdline_parser_print_help(void);
192 + /**
193 + * Print the version
194 + */
195   void cmdline_parser_print_version(void);
196  
197 + /**
198 + * Initializes all the fields a cmdline_parser_params structure
199 + * to their default values
200 + * @param params the structure to initialize
201 + */
202 + void cmdline_parser_params_init(struct cmdline_parser_params *params);
203 +
204 + /**
205 + * Allocates dynamically a cmdline_parser_params structure and initializes
206 + * all its fields to their default values
207 + * @return the created and initialized cmdline_parser_params structure
208 + */
209 + struct cmdline_parser_params *cmdline_parser_params_create(void);
210 +
211 + /**
212 + * Initializes the passed gengetopt_args_info structure's fields
213 + * (also set default values for options that have a default)
214 + * @param args_info the structure to initialize
215 + */
216 + void cmdline_parser_init (struct gengetopt_args_info *args_info);
217 + /**
218 + * Deallocates the string fields of the gengetopt_args_info structure
219 + * (but does not deallocate the structure itself)
220 + * @param args_info the structure to deallocate
221 + */
222 + void cmdline_parser_free (struct gengetopt_args_info *args_info);
223 +
224 + /**
225 + * Checks that all the required options were specified
226 + * @param args_info the structure to check
227 + * @param prog_name the name of the program that will be used to print
228 + *   possible errors
229 + * @return
230 + */
231 + int cmdline_parser_required (struct gengetopt_args_info *args_info,
232 +  const char *prog_name);
233 +
234 +
235   #ifdef __cplusplus
236   }
237   #endif /* __cplusplus */

Comparing trunk/src/applications/dynamicProps/DynamicPropsCmd.h (property svn:keywords):
Revision 320 by tim, Sun Feb 13 07:14:59 2005 UTC vs.
Revision 2024 by gezelter, Thu Oct 16 19:13:51 2014 UTC

# Line 0 | Line 1
1 + Author Id Revision Date

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines