1 |
tim |
12 |
/* simpleBuilderCmd.h */ |
2 |
|
|
|
3 |
gezelter |
1067 |
/* File autogenerated by gengetopt version 2.16 */ |
4 |
tim |
12 |
|
5 |
|
|
#ifndef SIMPLEBUILDERCMD_H |
6 |
|
|
#define SIMPLEBUILDERCMD_H |
7 |
|
|
|
8 |
|
|
/* If we use autoconf. */ |
9 |
|
|
#ifdef HAVE_CONFIG_H |
10 |
|
|
#include "config.h" |
11 |
|
|
#endif |
12 |
|
|
|
13 |
|
|
#ifdef __cplusplus |
14 |
|
|
extern "C" { |
15 |
|
|
#endif /* __cplusplus */ |
16 |
|
|
|
17 |
|
|
#ifndef CMDLINE_PARSER_PACKAGE |
18 |
|
|
#define CMDLINE_PARSER_PACKAGE "simpleBuilder" |
19 |
|
|
#endif |
20 |
|
|
|
21 |
|
|
#ifndef CMDLINE_PARSER_VERSION |
22 |
|
|
#define CMDLINE_PARSER_VERSION "1.0" |
23 |
|
|
#endif |
24 |
|
|
|
25 |
gezelter |
1067 |
struct gengetopt_args_info |
26 |
|
|
{ |
27 |
|
|
char * output_arg; /* Output file name. */ |
28 |
|
|
char * output_orig; /* Output file name original value given at command line. */ |
29 |
|
|
double density_arg; /* density (g/cm^3). */ |
30 |
|
|
char * density_orig; /* density (g/cm^3) original value given at command line. */ |
31 |
|
|
int nx_arg; /* number of unit cells in x. */ |
32 |
|
|
char * nx_orig; /* number of unit cells in x original value given at command line. */ |
33 |
|
|
int ny_arg; /* number of unit cells in y. */ |
34 |
|
|
char * ny_orig; /* number of unit cells in y original value given at command line. */ |
35 |
|
|
int nz_arg; /* number of unit cells in z. */ |
36 |
|
|
char * nz_orig; /* number of unit cells in z original value given at command line. */ |
37 |
|
|
|
38 |
|
|
int help_given ; /* Whether help was given. */ |
39 |
|
|
int version_given ; /* Whether version was given. */ |
40 |
|
|
int output_given ; /* Whether output was given. */ |
41 |
|
|
int density_given ; /* Whether density was given. */ |
42 |
|
|
int nx_given ; /* Whether nx was given. */ |
43 |
|
|
int ny_given ; /* Whether ny was given. */ |
44 |
|
|
int nz_given ; /* Whether nz was given. */ |
45 |
tim |
12 |
|
46 |
gezelter |
1067 |
char **inputs ; /* unamed options */ |
47 |
|
|
unsigned inputs_num ; /* unamed options number */ |
48 |
|
|
} ; |
49 |
tim |
12 |
|
50 |
gezelter |
1067 |
int cmdline_parser (int argc, char * const *argv, struct gengetopt_args_info *args_info); |
51 |
|
|
int cmdline_parser2 (int argc, char * const *argv, struct gengetopt_args_info *args_info, int override, int initialize, int check_required); |
52 |
|
|
int cmdline_parser_file_save(const char *filename, struct gengetopt_args_info *args_info); |
53 |
tim |
12 |
|
54 |
gezelter |
1067 |
void cmdline_parser_print_help(void); |
55 |
|
|
void cmdline_parser_print_version(void); |
56 |
tim |
12 |
|
57 |
gezelter |
1067 |
void cmdline_parser_init (struct gengetopt_args_info *args_info); |
58 |
|
|
void cmdline_parser_free (struct gengetopt_args_info *args_info); |
59 |
tim |
12 |
|
60 |
gezelter |
1067 |
int cmdline_parser_required (struct gengetopt_args_info *args_info, const char *prog_name); |
61 |
|
|
|
62 |
|
|
|
63 |
tim |
12 |
#ifdef __cplusplus |
64 |
|
|
} |
65 |
|
|
#endif /* __cplusplus */ |
66 |
|
|
#endif /* SIMPLEBUILDERCMD_H */ |