| 1 | 
chuckv | 
950 | 
/* randomBuilderCmd.h */ | 
| 2 | 
  | 
  | 
 | 
| 3 | 
gezelter | 
1062 | 
/* File autogenerated by gengetopt version 2.16  */ | 
| 4 | 
chuckv | 
950 | 
 | 
| 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 | 
gezelter | 
1062 | 
#define CMDLINE_PARSER_PACKAGE "randomBuilder" | 
| 19 | 
chuckv | 
950 | 
#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 | 
  | 
  | 
  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 | 
  | 
  | 
  double* molFraction_arg;      /* (Default) Builds a multi-component random mixed nanoparticle. Mole Fraction must be specified for each componet > 1 in MD file..  */ | 
| 38 | 
  | 
  | 
  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.  */ | 
| 39 | 
  | 
  | 
   | 
| 40 | 
  | 
  | 
  int help_given ;      /* Whether help was given.  */ | 
| 41 | 
  | 
  | 
  int version_given ;   /* Whether version was given.  */ | 
| 42 | 
  | 
  | 
  int output_given ;    /* Whether output was given.  */ | 
| 43 | 
  | 
  | 
  int density_given ;   /* Whether density was given.  */ | 
| 44 | 
  | 
  | 
  int nx_given ;        /* Whether nx was given.  */ | 
| 45 | 
  | 
  | 
  int ny_given ;        /* Whether ny was given.  */ | 
| 46 | 
  | 
  | 
  int nz_given ;        /* Whether nz was given.  */ | 
| 47 | 
  | 
  | 
  unsigned int molFraction_given ;      /* Whether molFraction was given.  */ | 
| 48 | 
  | 
  | 
 | 
| 49 | 
  | 
  | 
  char **inputs ; /* unamed options */ | 
| 50 | 
  | 
  | 
  unsigned inputs_num ; /* unamed options number */ | 
| 51 | 
  | 
  | 
} ; | 
| 52 | 
  | 
  | 
 | 
| 53 | 
  | 
  | 
int cmdline_parser (int argc, char * const *argv, struct gengetopt_args_info *args_info); | 
| 54 | 
  | 
  | 
int cmdline_parser2 (int argc, char * const *argv, struct gengetopt_args_info *args_info, int override, int initialize, int check_required); | 
| 55 | 
  | 
  | 
int cmdline_parser_file_save(const char *filename, struct gengetopt_args_info *args_info); | 
| 56 | 
  | 
  | 
 | 
| 57 | 
  | 
  | 
void cmdline_parser_print_help(void); | 
| 58 | 
  | 
  | 
void cmdline_parser_print_version(void); | 
| 59 | 
  | 
  | 
 | 
| 60 | 
  | 
  | 
void cmdline_parser_init (struct gengetopt_args_info *args_info); | 
| 61 | 
  | 
  | 
void cmdline_parser_free (struct gengetopt_args_info *args_info); | 
| 62 | 
  | 
  | 
 | 
| 63 | 
  | 
  | 
int cmdline_parser_required (struct gengetopt_args_info *args_info, const char *prog_name); | 
| 64 | 
  | 
  | 
 | 
| 65 | 
  | 
  | 
 | 
| 66 | 
  | 
  | 
#ifdef __cplusplus | 
| 67 | 
  | 
  | 
} | 
| 68 | 
  | 
  | 
#endif /* __cplusplus */ | 
| 69 | 
  | 
  | 
#endif /* RANDOMBUILDERCMD_H */ |