--- trunk/src/applications/staticProps/StaticPropsCmd.h 2005/02/10 18:14:03 310 +++ trunk/src/applications/staticProps/StaticPropsCmd.h 2006/09/26 01:30:32 1052 @@ -1,6 +1,6 @@ -/* staticPropsCmd.h */ +/* StaticPropsCmd.h */ -/* File autogenerated by gengetopt version 2.11 */ +/* File autogenerated by gengetopt version 2.16 */ #ifndef STATICPROPSCMD_H #define STATICPROPSCMD_H @@ -15,7 +15,7 @@ extern "C" { #endif /* __cplusplus */ #ifndef CMDLINE_PARSER_PACKAGE -#define CMDLINE_PARSER_PACKAGE "staticProps" +#define CMDLINE_PARSER_PACKAGE "StaticProps" #endif #ifndef CMDLINE_PARSER_VERSION @@ -25,37 +25,88 @@ struct gengetopt_args_info struct gengetopt_args_info { char * input_arg; /* input dump file. */ + char * input_orig; /* input dump file original value given at command line. */ char * output_arg; /* output file name. */ - int frame_arg; /* print every n frame (default='1'). */ - int ndistebins_arg; /* number of bins for distance (default='50'). */ + char * output_orig; /* output file name original value given at command line. */ + int step_arg; /* process every n frame (default='1'). */ + char * step_orig; /* process every n frame original value given at command line. */ + int nbins_arg; /* number of bins (general purpose) (default='100'). */ + char * nbins_orig; /* number of bins (general purpose) original value given at command line. */ + int nbins_x_arg; /* number of bins in x axis (default='100'). */ + char * nbins_x_orig; /* number of bins in x axis original value given at command line. */ + int nbins_y_arg; /* number of bins in y axis (default='100'). */ + char * nbins_y_orig; /* number of bins in y axis original value given at command line. */ int nanglebins_arg; /* number of bins for cos(angle) (default='50'). */ - double length_arg; /* maximum length. */ - char * sele1_arg; /* select first stuntdouble set. */ - char * sele2_arg; /* select second stuntdouble set. */ - + char * nanglebins_orig; /* number of bins for cos(angle) original value given at command line. */ + double length_arg; /* maximum length (Defaults to 1/2 smallest length of first frame). */ + char * length_orig; /* maximum length (Defaults to 1/2 smallest length of first frame) original value given at command line. */ + double rcut_arg; /* cutoff radius (rcut). */ + char * rcut_orig; /* cutoff radius (rcut) original value given at command line. */ + double zoffset_arg; /* Where to set the zero for the slab_density calculation (default='0'). */ + char * zoffset_orig; /* Where to set the zero for the slab_density calculation original value given at command line. */ + char * sele1_arg; /* select the first stuntdouble set. */ + char * sele1_orig; /* select the first stuntdouble set original value given at command line. */ + char * sele2_arg; /* select the second stuntdouble set. */ + char * sele2_orig; /* select the second stuntdouble set original value given at command line. */ + char * sele3_arg; /* select the third stuntdouble set. */ + char * sele3_orig; /* select the third stuntdouble set original value given at command line. */ + char * refsele_arg; /* select reference (use and only use with --gxyz). */ + char * refsele_orig; /* select reference (use and only use with --gxyz) original value given at command line. */ + char * molname_arg; /* molecule name. */ + char * molname_orig; /* molecule name original value given at command line. */ + int begin_arg; /* begin internal index. */ + char * begin_orig; /* begin internal index original value given at command line. */ + int end_arg; /* end internal index. */ + char * end_orig; /* end internal index original value given at command line. */ + int help_given ; /* Whether help was given. */ int version_given ; /* Whether version was given. */ int input_given ; /* Whether input was given. */ int output_given ; /* Whether output was given. */ - int frame_given ; /* Whether frame was given. */ - int ndistebins_given ; /* Whether ndistebins was given. */ + int step_given ; /* Whether step was given. */ + int nbins_given ; /* Whether nbins was given. */ + int nbins_x_given ; /* Whether nbins_x was given. */ + int nbins_y_given ; /* Whether nbins_y was given. */ int nanglebins_given ; /* Whether nanglebins was given. */ int length_given ; /* Whether length was given. */ + int rcut_given ; /* Whether rcut was given. */ + int zoffset_given ; /* Whether zoffset was given. */ int sele1_given ; /* Whether sele1 was given. */ int sele2_given ; /* Whether sele2 was given. */ + int sele3_given ; /* Whether sele3 was given. */ + int refsele_given ; /* Whether refsele was given. */ + int molname_given ; /* Whether molname was given. */ + int begin_given ; /* Whether begin was given. */ + int end_given ; /* Whether end was given. */ + int bo_given ; /* Whether bo was given. */ int gofr_given ; /* Whether gofr was given. */ int r_theta_given ; /* Whether r_theta was given. */ int r_omega_given ; /* Whether r_omega was given. */ int theta_omega_given ; /* Whether theta_omega was given. */ - int xyz_given ; /* Whether xyz was given. */ + int gxyz_given ; /* Whether gxyz was given. */ + int p2_given ; /* Whether p2 was given. */ + int rp2_given ; /* Whether rp2 was given. */ + int scd_given ; /* Whether scd was given. */ + int density_given ; /* Whether density was given. */ + int slab_density_given ; /* Whether slab_density was given. */ + int hxy_given ; /* Whether hxy was given. */ + int staticProps_group_counter; /* counter for group staticProps */ } ; int cmdline_parser (int argc, char * const *argv, struct gengetopt_args_info *args_info); +int cmdline_parser2 (int argc, char * const *argv, struct gengetopt_args_info *args_info, int override, int initialize, int check_required); +int cmdline_parser_file_save(const char *filename, struct gengetopt_args_info *args_info); void cmdline_parser_print_help(void); void cmdline_parser_print_version(void); +void cmdline_parser_init (struct gengetopt_args_info *args_info); +void cmdline_parser_free (struct gengetopt_args_info *args_info); + +int cmdline_parser_required (struct gengetopt_args_info *args_info, const char *prog_name); + + #ifdef __cplusplus } #endif /* __cplusplus */