OpenMD 3.1
Molecular Dynamics in the Open
Loading...
Searching...
No Matches
nanorod_pentBuilderCmd.hpp
Go to the documentation of this file.
1/** @file nanorod_pentBuilderCmd.hpp
2 * @brief The header file for the command line option parser
3 * generated by GNU Gengetopt version 2.22.6
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 */
7
8#ifndef NANOROD_PENTBUILDERCMD_H
9#define NANOROD_PENTBUILDERCMD_H
10
11/* If we use autoconf. */
12#ifdef HAVE_CONFIG_H
13#include "config.h"
14#endif
15
16#include <stdio.h> /* for FILE */
17
18#ifdef __cplusplus
19extern "C" {
20#endif /* __cplusplus */
21
22#ifndef CMDLINE_PARSER_PACKAGE
23/** @brief the program name (used for printing errors) */
24#define CMDLINE_PARSER_PACKAGE "nanorod_pentBuilder"
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 "nanorod_pentBuilder"
30#endif
31
32#ifndef CMDLINE_PARSER_VERSION
33/** @brief the program version */
34#define CMDLINE_PARSER_VERSION ""
35#endif
36
37/** @brief Where the command line options are stored */
39{
40 const char *help_help; /**< @brief Print help and exit help description. */
41 const char *version_help; /**< @brief Print version and exit help description. */
42 char * output_arg; /**< @brief Output file name. */
43 char * output_orig; /**< @brief Output file name original value given at command line. */
44 const char *output_help; /**< @brief Output file name help description. */
45 double latticeConstant_arg; /**< @brief Lattice spacing in Angstroms for cubic lattice.. */
46 char * latticeConstant_orig; /**< @brief Lattice spacing in Angstroms for cubic lattice. original value given at command line. */
47 const char *latticeConstant_help; /**< @brief Lattice spacing in Angstroms for cubic lattice. help description. */
48 double radius_arg; /**< @brief Nanorod radius in Angstroms. */
49 char * radius_orig; /**< @brief Nanorod radius in Angstroms original value given at command line. */
50 const char *radius_help; /**< @brief Nanorod radius in Angstroms help description. */
51 double length_arg; /**< @brief Nanorod length in Angstroms. */
52 char * length_orig; /**< @brief Nanorod length in Angstroms original value given at command line. */
53 const char *length_help; /**< @brief Nanorod length in Angstroms help description. */
54 double* shellRadius_arg; /**< @brief Radius containing within it only molecules of a specific component. Specified for each component > 1 in the template file.. */
55 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. */
56 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 */
57 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 */
58 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. */
59 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.. */
60 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. */
61 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 */
62 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 */
63 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. */
64 double vacancyPercent_arg; /**< @brief Percentage of atoms to remove from within vacancy range. */
65 char * vacancyPercent_orig; /**< @brief Percentage of atoms to remove from within vacancy range original value given at command line. */
66 const char *vacancyPercent_help; /**< @brief Percentage of atoms to remove from within vacancy range help description. */
67 double vacancyInnerRadius_arg; /**< @brief Radius arround core-shell where vacancies should be located.. */
68 char * vacancyInnerRadius_orig; /**< @brief Radius arround core-shell where vacancies should be located. original value given at command line. */
69 const char *vacancyInnerRadius_help; /**< @brief Radius arround core-shell where vacancies should be located. help description. */
70 double vacancyOuterRadius_arg; /**< @brief Radius arround core-shell where vacancies should be located.. */
71 char * vacancyOuterRadius_orig; /**< @brief Radius arround core-shell where vacancies should be located. original value given at command line. */
72 const char *vacancyOuterRadius_help; /**< @brief Radius arround core-shell where vacancies should be located. help description. */
73
74 unsigned int help_given ; /**< @brief Whether help was given. */
75 unsigned int version_given ; /**< @brief Whether version was given. */
76 unsigned int output_given ; /**< @brief Whether output was given. */
77 unsigned int latticeConstant_given ; /**< @brief Whether latticeConstant was given. */
78 unsigned int radius_given ; /**< @brief Whether radius was given. */
79 unsigned int length_given ; /**< @brief Whether length was given. */
80 unsigned int shellRadius_given ; /**< @brief Whether shellRadius was given. */
81 unsigned int molFraction_given ; /**< @brief Whether molFraction was given. */
82 unsigned int vacancyPercent_given ; /**< @brief Whether vacancyPercent was given. */
83 unsigned int vacancyInnerRadius_given ; /**< @brief Whether vacancyInnerRadius was given. */
84 unsigned int vacancyOuterRadius_given ; /**< @brief Whether vacancyOuterRadius was given. */
85
86 char **inputs ; /**< @brief unamed options (options without names) */
87 unsigned inputs_num ; /**< @brief unamed options number */
88} ;
89
90/** @brief The additional parameters to pass to parser functions */
92{
93 int override; /**< @brief whether to override possibly already present options (default 0) */
94 int initialize; /**< @brief whether to initialize the option structure gengetopt_args_info (default 1) */
95 int check_required; /**< @brief whether to check that all required options were provided (default 1) */
96 int check_ambiguity; /**< @brief whether to check for options already specified in the option structure gengetopt_args_info (default 0) */
97 int print_errors; /**< @brief whether getopt_long should print an error message for a bad option (default 1) */
98} ;
99
100/** @brief the purpose string of the program */
101extern const char *gengetopt_args_info_purpose;
102/** @brief the usage string of the program */
103extern const char *gengetopt_args_info_usage;
104/** @brief the description string of the program */
105extern const char *gengetopt_args_info_description;
106/** @brief all the lines making the help output */
107extern const char *gengetopt_args_info_help[];
108
109/**
110 * The command line parser
111 * @param argc the number of command line options
112 * @param argv the command line options
113 * @param args_info the structure where option information will be stored
114 * @return 0 if everything went fine, NON 0 if an error took place
115 */
116int cmdline_parser (int argc, char **argv,
117 struct gengetopt_args_info *args_info);
118
119/**
120 * The command line parser (version with additional parameters - deprecated)
121 * @param argc the number of command line options
122 * @param argv the command line options
123 * @param args_info the structure where option information will be stored
124 * @param override whether to override possibly already present options
125 * @param initialize whether to initialize the option structure my_args_info
126 * @param check_required whether to check that all required options were provided
127 * @return 0 if everything went fine, NON 0 if an error took place
128 * @deprecated use cmdline_parser_ext() instead
129 */
130int cmdline_parser2 (int argc, char **argv,
131 struct gengetopt_args_info *args_info,
132 int override, int initialize, int check_required);
133
134/**
135 * The command line parser (version with additional parameters)
136 * @param argc the number of command line options
137 * @param argv the command line options
138 * @param args_info the structure where option information will be stored
139 * @param params additional parameters for the parser
140 * @return 0 if everything went fine, NON 0 if an error took place
141 */
142int cmdline_parser_ext (int argc, char **argv,
143 struct gengetopt_args_info *args_info,
144 struct cmdline_parser_params *params);
145
146/**
147 * Save the contents of the option struct into an already open FILE stream.
148 * @param outfile the stream where to dump options
149 * @param args_info the option struct to dump
150 * @return 0 if everything went fine, NON 0 if an error took place
151 */
152int cmdline_parser_dump(FILE *outfile,
153 struct gengetopt_args_info *args_info);
154
155/**
156 * Save the contents of the option struct into a (text) file.
157 * This file can be read by the config file parser (if generated by gengetopt)
158 * @param filename the file where to save
159 * @param args_info the option struct to save
160 * @return 0 if everything went fine, NON 0 if an error took place
161 */
162int cmdline_parser_file_save(const char *filename,
163 struct gengetopt_args_info *args_info);
164
165/**
166 * Print the help
167 */
169/**
170 * Print the version
171 */
173
174/**
175 * Initializes all the fields a cmdline_parser_params structure
176 * to their default values
177 * @param params the structure to initialize
178 */
180
181/**
182 * Allocates dynamically a cmdline_parser_params structure and initializes
183 * all its fields to their default values
184 * @return the created and initialized cmdline_parser_params structure
185 */
187
188/**
189 * Initializes the passed gengetopt_args_info structure's fields
190 * (also set default values for options that have a default)
191 * @param args_info the structure to initialize
192 */
193void cmdline_parser_init (struct gengetopt_args_info *args_info);
194/**
195 * Deallocates the string fields of the gengetopt_args_info structure
196 * (but does not deallocate the structure itself)
197 * @param args_info the structure to deallocate
198 */
199void cmdline_parser_free (struct gengetopt_args_info *args_info);
200
201/**
202 * The config file parser (deprecated version)
203 * @param filename the name of the config file
204 * @param args_info the structure where option information will be stored
205 * @param override whether to override possibly already present options
206 * @param initialize whether to initialize the option structure my_args_info
207 * @param check_required whether to check that all required options were provided
208 * @return 0 if everything went fine, NON 0 if an error took place
209 * @deprecated use cmdline_parser_config_file() instead
210 */
211int cmdline_parser_configfile (const char *filename,
212 struct gengetopt_args_info *args_info,
213 int override, int initialize, int check_required);
214
215/**
216 * The config file parser
217 * @param filename the name of the config file
218 * @param args_info the structure where option information will be stored
219 * @param params additional parameters for the parser
220 * @return 0 if everything went fine, NON 0 if an error took place
221 */
222int cmdline_parser_config_file (const char *filename,
223 struct gengetopt_args_info *args_info,
224 struct cmdline_parser_params *params);
225
226/**
227 * Checks that all the required options were specified
228 * @param args_info the structure to check
229 * @param prog_name the name of the program that will be used to print
230 * possible errors
231 * @return
232 */
233int cmdline_parser_required (struct gengetopt_args_info *args_info,
234 const char *prog_name);
235
236
237#ifdef __cplusplus
238}
239#endif /* __cplusplus */
240#endif /* NANOROD_PENTBUILDERCMD_H */
int cmdline_parser_dump(FILE *outfile, struct gengetopt_args_info *args_info)
Save the contents of the option struct into an already open FILE stream.
int cmdline_parser(int argc, char **argv, struct gengetopt_args_info *args_info)
The command line parser.
int cmdline_parser_file_save(const char *filename, struct gengetopt_args_info *args_info)
Save the contents of the option struct into a (text) file.
const char * gengetopt_args_info_purpose
the purpose string of the program
const char * gengetopt_args_info_help[]
all the lines making the help output
int cmdline_parser2(int argc, char **argv, struct gengetopt_args_info *args_info, int override, int initialize, int check_required)
The command line parser (version with additional parameters - deprecated)
int cmdline_parser_required(struct gengetopt_args_info *args_info, const char *prog_name)
Checks that all the required options were specified.
void cmdline_parser_print_version(void)
Print the version.
struct cmdline_parser_params * cmdline_parser_params_create(void)
Allocates dynamically a cmdline_parser_params structure and initializes all its fields to their defau...
const char * gengetopt_args_info_usage
the usage string of the program
int cmdline_parser_ext(int argc, char **argv, struct gengetopt_args_info *args_info, struct cmdline_parser_params *params)
The command line parser (version with additional parameters)
void cmdline_parser_init(struct gengetopt_args_info *args_info)
Initializes the passed gengetopt_args_info structure's fields (also set default values for options th...
const char * gengetopt_args_info_description
the description string of the program
void cmdline_parser_print_help(void)
Print the help.
int cmdline_parser_config_file(const char *filename, struct gengetopt_args_info *args_info, struct cmdline_parser_params *params)
The config file parser.
void cmdline_parser_free(struct gengetopt_args_info *args_info)
Deallocates the string fields of the gengetopt_args_info structure (but does not deallocate the struc...
void cmdline_parser_params_init(struct cmdline_parser_params *params)
Initializes all the fields a cmdline_parser_params structure to their default values.
int cmdline_parser_configfile(const char *filename, struct gengetopt_args_info *args_info, int override, int initialize, int check_required)
The config file parser (deprecated version)
The additional parameters to pass to parser functions.
int print_errors
whether getopt_long should print an error message for a bad option (default 1)
int check_required
whether to check that all required options were provided (default 1)
int check_ambiguity
whether to check for options already specified in the option structure gengetopt_args_info (default 0...
int initialize
whether to initialize the option structure gengetopt_args_info (default 1)
Where the command line options are stored.
unsigned int vacancyInnerRadius_given
Whether vacancyInnerRadius was given.
unsigned int output_given
Whether output was given.
char ** molFraction_orig
Builds a multi-component random alloy nanoparticle.
unsigned int latticeConstant_given
Whether latticeConstant was given.
double vacancyPercent_arg
Percentage of atoms to remove from within vacancy range.
const char * radius_help
Nanoparticle radius in Angstroms help description.
char * output_orig
output file name original value given at command line.
const char * output_help
output file name help description.
double vacancyOuterRadius_arg
Radius arround core-shell where vacancies should be located.
const char * molFraction_help
Builds a multi-component random alloy nanoparticle.
unsigned inputs_num
unamed options number
char * vacancyInnerRadius_orig
Radius arround core-shell where vacancies should be located.
const char * vacancyInnerRadius_help
Radius arround core-shell where vacancies should be located.
const char * latticeConstant_help
Lattice spacing in Angstroms for cubic lattice.
unsigned int molFraction_given
Whether molFraction was given.
const char * vacancyPercent_help
Percentage of atoms to remove from within vacancy range help description.
double length_arg
maximum length (default='100').
const char * help_help
Print help and exit help description.
double * molFraction_arg
Builds a multi-component random alloy nanoparticle.
char * vacancyPercent_orig
Percentage of atoms to remove from within vacancy range original value given at command line.
char * output_arg
output file name.
char ** inputs
unamed options (options without names)
double * shellRadius_arg
Radius containing within it only molecules of a specific component.
unsigned int molFraction_min
Builds a multi-component random alloy nanoparticle.
unsigned int shellRadius_given
Whether shellRadius was given.
const char * vacancyOuterRadius_help
Radius arround core-shell where vacancies should be located.
char * latticeConstant_orig
Lattice spacing in Angstroms for cubic lattice.
unsigned int length_given
Whether length was given.
unsigned int molFraction_max
Builds a multi-component random alloy nanoparticle.
char * length_orig
maximum length original value given at command line.
double radius_arg
Nanoparticle radius in Angstroms.
unsigned int help_given
Whether help was given.
const char * shellRadius_help
Radius containing within it only molecules of a specific component.
char * vacancyOuterRadius_orig
Radius arround core-shell where vacancies should be located.
unsigned int radius_given
Whether radius was given.
double vacancyInnerRadius_arg
Radius arround core-shell where vacancies should be located.
char * radius_orig
Nanoparticle radius in Angstroms original value given at command line.
unsigned int version_given
Whether version was given.
const char * length_help
maximum length help description.
unsigned int shellRadius_min
Radius containing within it only molecules of a specific component.
const char * version_help
Print version and exit help description.
unsigned int vacancyPercent_given
Whether vacancyPercent was given.
double latticeConstant_arg
Lattice spacing in Angstroms for cubic lattice.
char ** shellRadius_orig
Radius containing within it only molecules of a specific component.
unsigned int shellRadius_max
Radius containing within it only molecules of a specific component.
unsigned int vacancyOuterRadius_given
Whether vacancyOuterRadius was given.