| 1 |
/* randomBuilderCmd.h */ |
| 2 |
|
| 3 |
/* File autogenerated by gengetopt version 2.15 */ |
| 4 |
|
| 5 |
#ifndef RANDOMBUILDERCMD_H |
| 6 |
#define RANDOMBUILDERCMD_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 |
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 |
char * latticetype_arg; /* Lattice type string. Valid types are fcc,hcp,bcc and hcp-water. (default='fcc'). */ |
| 30 |
char * latticetype_orig; /* Lattice type string. Valid types are fcc,hcp,bcc and hcp-water. original value given at command line. */ |
| 31 |
double density_arg; /* density (g/cm^3). */ |
| 32 |
char * density_orig; /* density (g/cm^3) original value given at command line. */ |
| 33 |
int nx_arg; /* number of unit cells in x. */ |
| 34 |
char * nx_orig; /* number of unit cells in x original value given at command line. */ |
| 35 |
int ny_arg; /* number of unit cells in y. */ |
| 36 |
char * ny_orig; /* number of unit cells in y original value given at command line. */ |
| 37 |
int nz_arg; /* number of unit cells in z. */ |
| 38 |
char * nz_orig; /* number of unit cells in z original value given at command line. */ |
| 39 |
double* molFraction_arg; /* (Default) Builds a multi-component random mixed nanoparticle. Mole Fraction must be specified for each componet > 1 in MD file.. */ |
| 40 |
char ** molFraction_orig; /* (Default) Builds a multi-component random mixed nanoparticle. Mole Fraction must be specified for each componet > 1 in MD file. original value given at command line. */ |
| 41 |
|
| 42 |
int help_given ; /* Whether help was given. */ |
| 43 |
int version_given ; /* Whether version was given. */ |
| 44 |
int output_given ; /* Whether output was given. */ |
| 45 |
int latticetype_given ; /* Whether latticetype was given. */ |
| 46 |
int density_given ; /* Whether density was given. */ |
| 47 |
int nx_given ; /* Whether nx was given. */ |
| 48 |
int ny_given ; /* Whether ny was given. */ |
| 49 |
int nz_given ; /* Whether nz was given. */ |
| 50 |
unsigned int molFraction_given ; /* Whether molFraction was given. */ |
| 51 |
|
| 52 |
char **inputs ; /* unamed options */ |
| 53 |
unsigned inputs_num ; /* unamed options number */ |
| 54 |
} ; |
| 55 |
|
| 56 |
int cmdline_parser (int argc, char * const *argv, struct gengetopt_args_info *args_info); |
| 57 |
int cmdline_parser2 (int argc, char * const *argv, struct gengetopt_args_info *args_info, int override, int initialize, int check_required); |
| 58 |
int cmdline_parser_file_save(const char *filename, struct gengetopt_args_info *args_info); |
| 59 |
|
| 60 |
void cmdline_parser_print_help(void); |
| 61 |
void cmdline_parser_print_version(void); |
| 62 |
|
| 63 |
void cmdline_parser_init (struct gengetopt_args_info *args_info); |
| 64 |
void cmdline_parser_free (struct gengetopt_args_info *args_info); |
| 65 |
|
| 66 |
int cmdline_parser_required (struct gengetopt_args_info *args_info, const char *prog_name); |
| 67 |
|
| 68 |
|
| 69 |
#ifdef __cplusplus |
| 70 |
} |
| 71 |
#endif /* __cplusplus */ |
| 72 |
#endif /* RANDOMBUILDERCMD_H */ |