22 |
|
#define CMDLINE_PARSER_VERSION "1.0" |
23 |
|
#endif |
24 |
|
|
25 |
< |
struct gengetopt_args_info |
26 |
< |
{ |
27 |
< |
char * output_arg; /* Output file name. */ |
28 |
< |
char * latticetype_arg; /* Lattice type string. Valid types are fcc,hcp,bcc and hcp-water. (default='fcc'). */ |
29 |
< |
double density_arg; /* density (g/cm^3). */ |
30 |
< |
int nx_arg; /* number of unit cells in x. */ |
31 |
< |
int ny_arg; /* number of unit cells in y. */ |
32 |
< |
int nz_arg; /* number of unit cells in z. */ |
25 |
> |
struct gengetopt_args_info |
26 |
> |
{ |
27 |
> |
char * output_arg; /* Output file name. */ |
28 |
> |
char * latticetype_arg; /* Lattice type string. Valid types are fcc,hcp,bcc and hcp-water. (default='fcc'). */ |
29 |
> |
double density_arg; /* density (g/cm^3). */ |
30 |
> |
int nx_arg; /* number of unit cells in x. */ |
31 |
> |
int ny_arg; /* number of unit cells in y. */ |
32 |
> |
int nz_arg; /* number of unit cells in z. */ |
33 |
|
|
34 |
< |
int help_given ; /* Whether help was given. */ |
35 |
< |
int version_given ; /* Whether version was given. */ |
36 |
< |
int output_given ; /* Whether output was given. */ |
37 |
< |
int latticetype_given ; /* Whether latticetype was given. */ |
38 |
< |
int density_given ; /* Whether density was given. */ |
39 |
< |
int nx_given ; /* Whether nx was given. */ |
40 |
< |
int ny_given ; /* Whether ny was given. */ |
41 |
< |
int nz_given ; /* Whether nz was given. */ |
34 |
> |
int help_given ; /* Whether help was given. */ |
35 |
> |
int version_given ; /* Whether version was given. */ |
36 |
> |
int output_given ; /* Whether output was given. */ |
37 |
> |
int latticetype_given ; /* Whether latticetype was given. */ |
38 |
> |
int density_given ; /* Whether density was given. */ |
39 |
> |
int nx_given ; /* Whether nx was given. */ |
40 |
> |
int ny_given ; /* Whether ny was given. */ |
41 |
> |
int nz_given ; /* Whether nz was given. */ |
42 |
|
|
43 |
< |
char **inputs ; /* unamed options */ |
44 |
< |
unsigned inputs_num ; /* unamed options number */ |
45 |
< |
} ; |
43 |
> |
char **inputs ; /* unamed options */ |
44 |
> |
unsigned inputs_num ; /* unamed options number */ |
45 |
> |
} ; |
46 |
|
|
47 |
< |
int cmdline_parser (int argc, char * const *argv, struct gengetopt_args_info *args_info); |
47 |
> |
int cmdline_parser (int argc, char * const *argv, struct gengetopt_args_info *args_info); |
48 |
|
|
49 |
< |
void cmdline_parser_print_help(void); |
50 |
< |
void cmdline_parser_print_version(void); |
49 |
> |
void cmdline_parser_print_help(void); |
50 |
> |
void cmdline_parser_print_version(void); |
51 |
|
|
52 |
|
#ifdef __cplusplus |
53 |
|
} |