1 |
chuckv |
2164 |
/* nanorodBuilderCmd.h */ |
2 |
|
|
|
3 |
chuckv |
2215 |
/* File autogenerated by gengetopt version 2.13 */ |
4 |
chuckv |
2164 |
|
5 |
|
|
#ifndef NANORODBUILDERCMD_H |
6 |
|
|
#define NANORODBUILDERCMD_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 "nanorodBuilder" |
19 |
|
|
#endif |
20 |
|
|
|
21 |
|
|
#ifndef CMDLINE_PARSER_VERSION |
22 |
|
|
#define CMDLINE_PARSER_VERSION "1.0" |
23 |
|
|
#endif |
24 |
|
|
|
25 |
chuckv |
2215 |
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. (default='fcc'). */ |
29 |
|
|
double length_arg; /* length of nanorod in Angstroms. */ |
30 |
|
|
double width_arg; /* diameter of nanorod in Angstroms. */ |
31 |
|
|
double latticeCnst_arg; /* lattice spacing in Angstrons for cubic lattice. */ |
32 |
|
|
int genGeomview_flag; /* generate a geomview file with the object geometry (default=off). */ |
33 |
chuckv |
2218 |
int twinnedCrystal_flag; /* generate a twinned crystal nanorod (default=off). */ |
34 |
chuckv |
2215 |
|
35 |
|
|
int help_given ; /* Whether help was given. */ |
36 |
|
|
int version_given ; /* Whether version was given. */ |
37 |
|
|
int output_given ; /* Whether output was given. */ |
38 |
|
|
int latticetype_given ; /* Whether latticetype was given. */ |
39 |
|
|
int length_given ; /* Whether length was given. */ |
40 |
|
|
int width_given ; /* Whether width was given. */ |
41 |
|
|
int latticeCnst_given ; /* Whether latticeCnst was given. */ |
42 |
|
|
int genGeomview_given ; /* Whether genGeomview was given. */ |
43 |
chuckv |
2218 |
int twinnedCrystal_given ; /* Whether twinnedCrystal was given. */ |
44 |
chuckv |
2164 |
|
45 |
chuckv |
2215 |
char **inputs ; /* unamed options */ |
46 |
|
|
unsigned inputs_num ; /* unamed options number */ |
47 |
|
|
} ; |
48 |
chuckv |
2164 |
|
49 |
chuckv |
2215 |
int cmdline_parser (int argc, char * const *argv, struct gengetopt_args_info *args_info); |
50 |
|
|
int cmdline_parser2 (int argc, char * const *argv, struct gengetopt_args_info *args_info, int override, int initialize, int check_required); |
51 |
chuckv |
2164 |
|
52 |
chuckv |
2215 |
void cmdline_parser_print_help(void); |
53 |
|
|
void cmdline_parser_print_version(void); |
54 |
chuckv |
2164 |
|
55 |
chuckv |
2215 |
void cmdline_parser_init (struct gengetopt_args_info *args_info); |
56 |
|
|
void cmdline_parser_free (struct gengetopt_args_info *args_info); |
57 |
chuckv |
2164 |
|
58 |
chuckv |
2215 |
int cmdline_parser_required (struct gengetopt_args_info *args_info, const char *prog_name); |
59 |
chuckv |
2164 |
|
60 |
chuckv |
2215 |
|
61 |
chuckv |
2164 |
#ifdef __cplusplus |
62 |
|
|
} |
63 |
|
|
#endif /* __cplusplus */ |
64 |
|
|
#endif /* NANORODBUILDERCMD_H */ |