8#ifndef ICOSAHEDRALBUILDERCMD_H
9#define ICOSAHEDRALBUILDERCMD_H
22#ifndef CMDLINE_PARSER_PACKAGE
24#define CMDLINE_PARSER_PACKAGE "icosahedralBuilder"
27#ifndef CMDLINE_PARSER_PACKAGE_NAME
29#define CMDLINE_PARSER_PACKAGE_NAME "icosahedralBuilder"
32#ifndef CMDLINE_PARSER_VERSION
34#define CMDLINE_PARSER_VERSION ""
139 int override,
int initialize,
int check_required);
216 const char *prog_name);
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.
const char * cmdline_parser_lattice_values[]
Possible values for lattice.
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.
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.
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 ico_given
Whether ico was given.
const char * ino_help
Create an Ino Decahedral cluster help description.
const char * stone_help
Create a Curling-stone Decahedral cluster help description.
unsigned int output_given
Whether output was given.
int clusterShape_group_counter
Counter for group clusterShape.
unsigned int latticeConstant_given
Whether latticeConstant was given.
char * output_orig
output file name original value given at command line.
const char * output_help
output file name help description.
int unitCells_arg
Number of unit cell (Cuboctahedron and Truncated Cube only).
char * twinAtoms_orig
Number of atoms along twin boundary (Decahedron only) original value given at command line.
int shells_arg
Nanoparticle shells.
unsigned int truncatedPlanes_given
Whether truncatedPlanes was given.
unsigned inputs_num
unamed options number
unsigned int marks_given
Whether marks was given.
unsigned int ino_given
Whether ino was given.
const char * columnAtoms_help
Number of atoms along central column (Decahedron only) help description.
const char * shells_help
Nanoparticle shells help description.
unsigned int cuboctahedron_given
Whether cuboctahedron was given.
unsigned int stone_given
Whether stone was given.
const char * latticeConstant_help
Lattice spacing in Angstroms for cubic lattice.
char * truncatedPlanes_orig
Number of truncated planes (Curling-stone Decahedra and Truncated Cubes only) original value given at...
unsigned int lattice_given
Whether lattice was given.
const char * truncatedPlanes_help
Number of truncated planes (Curling-stone Decahedra and Truncated Cubes only) help description.
const char * lattice_help
Lattice Type help description.
unsigned int shells_given
Whether shells was given.
const char * help_help
Print help and exit help description.
int columnAtoms_arg
Number of atoms along central column (Decahedron only).
char * output_arg
output file name.
char ** inputs
unamed options (options without names)
unsigned int deca_given
Whether deca was given.
const char * unitCells_help
Number of unit cell (Cuboctahedron and Truncated Cube only) help description.
int truncatedPlanes_arg
Number of truncated planes (Curling-stone Decahedra and Truncated Cubes only).
char * latticeConstant_orig
Lattice spacing in Angstroms for cubic lattice.
const char * twinAtoms_help
Number of atoms along twin boundary (Decahedron only) help description.
unsigned int twinAtoms_given
Whether twinAtoms was given.
const char * deca_help
Create a regualar Decahedral cluster help description.
const char * ico_help
Create an Icosahedral cluster help description.
int twinAtoms_arg
Number of atoms along twin boundary (Decahedron only).
unsigned int help_given
Whether help was given.
const char * marks_help
Create a Marks Decahedral cluster help description.
char * shells_orig
Nanoparticle shells original value given at command line.
char * lattice_orig
Lattice Type original value given at command line.
unsigned int version_given
Whether version was given.
unsigned int truncatedCube_given
Whether truncatedCube was given.
const char * version_help
Print version and exit help description.
const char * truncatedCube_help
Create a Truncated Cube (requires lattice) help description.
unsigned int columnAtoms_given
Whether columnAtoms was given.
double latticeConstant_arg
Lattice spacing in Angstroms for cubic lattice.
unsigned int unitCells_given
Whether unitCells was given.
char * lattice_arg
Lattice Type.
char * columnAtoms_orig
Number of atoms along central column (Decahedron only) original value given at command line.
const char * cuboctahedron_help
Create a regular Cuboctahedron (requires lattice) help description.
char * unitCells_orig
Number of unit cell (Cuboctahedron and Truncated Cube only) original value given at command line.