| 1 |
|
/** @file nanoparticleBuilderCmd.h |
| 2 |
|
* @brief The header file for the command line option parser |
| 3 |
< |
* generated by GNU Gengetopt version 2.22 |
| 3 |
> |
* generated by GNU Gengetopt version 2.22.4 |
| 4 |
|
* http://www.gnu.org/software/gengetopt. |
| 5 |
|
* DO NOT modify this file, since it can be overwritten |
| 6 |
|
* @author GNU Gengetopt by Lorenzo Bettini */ |
| 20 |
|
#endif /* __cplusplus */ |
| 21 |
|
|
| 22 |
|
#ifndef CMDLINE_PARSER_PACKAGE |
| 23 |
< |
/** @brief the program name */ |
| 23 |
> |
/** @brief the program name (used for printing errors) */ |
| 24 |
|
#define CMDLINE_PARSER_PACKAGE "nanoparticleBuilder" |
| 25 |
|
#endif |
| 26 |
|
|
| 27 |
+ |
#ifndef CMDLINE_PARSER_PACKAGE_NAME |
| 28 |
+ |
/** @brief the complete program name (used for help and version) */ |
| 29 |
+ |
#define CMDLINE_PARSER_PACKAGE_NAME "nanoparticleBuilder" |
| 30 |
+ |
#endif |
| 31 |
+ |
|
| 32 |
|
#ifndef CMDLINE_PARSER_VERSION |
| 33 |
|
/** @brief the program version */ |
| 34 |
|
#define CMDLINE_PARSER_VERSION "1.0" |
| 50 |
|
const char *radius_help; /**< @brief Nanoparticle radius in Angstroms help description. */ |
| 51 |
|
double* shellRadius_arg; /**< @brief Radius containing within it only molecules of a specific component. Specified for each component > 1 in the template file.. */ |
| 52 |
|
char ** shellRadius_orig; /**< @brief Radius containing within it only molecules of a specific component. Specified for each component > 1 in the template file. original value given at command line. */ |
| 53 |
< |
int shellRadius_min; /**< @brief Radius containing within it only molecules of a specific component. Specified for each component > 1 in the template file.'s minimum occurreces */ |
| 54 |
< |
int shellRadius_max; /**< @brief Radius containing within it only molecules of a specific component. Specified for each component > 1 in the template file.'s maximum occurreces */ |
| 53 |
> |
unsigned int shellRadius_min; /**< @brief Radius containing within it only molecules of a specific component. Specified for each component > 1 in the template file.'s minimum occurreces */ |
| 54 |
> |
unsigned int shellRadius_max; /**< @brief Radius containing within it only molecules of a specific component. Specified for each component > 1 in the template file.'s maximum occurreces */ |
| 55 |
|
const char *shellRadius_help; /**< @brief Radius containing within it only molecules of a specific component. Specified for each component > 1 in the template file. help description. */ |
| 56 |
|
double* molFraction_arg; /**< @brief Builds a multi-component random alloy nanoparticle. A mole Fraction must be specified for each component > 1 in the template file.. */ |
| 57 |
|
char ** molFraction_orig; /**< @brief Builds a multi-component random alloy nanoparticle. A mole Fraction must be specified for each component > 1 in the template file. original value given at command line. */ |
| 58 |
< |
int molFraction_min; /**< @brief Builds a multi-component random alloy nanoparticle. A mole Fraction must be specified for each component > 1 in the template file.'s minimum occurreces */ |
| 59 |
< |
int molFraction_max; /**< @brief Builds a multi-component random alloy nanoparticle. A mole Fraction must be specified for each component > 1 in the template file.'s maximum occurreces */ |
| 58 |
> |
unsigned int molFraction_min; /**< @brief Builds a multi-component random alloy nanoparticle. A mole Fraction must be specified for each component > 1 in the template file.'s minimum occurreces */ |
| 59 |
> |
unsigned int molFraction_max; /**< @brief Builds a multi-component random alloy nanoparticle. A mole Fraction must be specified for each component > 1 in the template file.'s maximum occurreces */ |
| 60 |
|
const char *molFraction_help; /**< @brief Builds a multi-component random alloy nanoparticle. A mole Fraction must be specified for each component > 1 in the template file. help description. */ |
| 61 |
|
double vacancyPercent_arg; /**< @brief Percentage of atoms to remove from within vacancy range. */ |
| 62 |
|
char * vacancyPercent_orig; /**< @brief Percentage of atoms to remove from within vacancy range original value given at command line. */ |
| 107 |
|
* @param args_info the structure where option information will be stored |
| 108 |
|
* @return 0 if everything went fine, NON 0 if an error took place |
| 109 |
|
*/ |
| 110 |
< |
int cmdline_parser (int argc, char * const *argv, |
| 110 |
> |
int cmdline_parser (int argc, char **argv, |
| 111 |
|
struct gengetopt_args_info *args_info); |
| 112 |
|
|
| 113 |
|
/** |
| 121 |
|
* @return 0 if everything went fine, NON 0 if an error took place |
| 122 |
|
* @deprecated use cmdline_parser_ext() instead |
| 123 |
|
*/ |
| 124 |
< |
int cmdline_parser2 (int argc, char * const *argv, |
| 124 |
> |
int cmdline_parser2 (int argc, char **argv, |
| 125 |
|
struct gengetopt_args_info *args_info, |
| 126 |
|
int override, int initialize, int check_required); |
| 127 |
|
|
| 133 |
|
* @param params additional parameters for the parser |
| 134 |
|
* @return 0 if everything went fine, NON 0 if an error took place |
| 135 |
|
*/ |
| 136 |
< |
int cmdline_parser_ext (int argc, char * const *argv, |
| 136 |
> |
int cmdline_parser_ext (int argc, char **argv, |
| 137 |
|
struct gengetopt_args_info *args_info, |
| 138 |
|
struct cmdline_parser_params *params); |
| 139 |
|
|