22#ifndef CMDLINE_PARSER_PACKAGE
24#define CMDLINE_PARSER_PACKAGE "Dump2XYZ"
27#ifndef CMDLINE_PARSER_PACKAGE_NAME
29#define CMDLINE_PARSER_PACKAGE_NAME "Dump2XYZ"
32#ifndef CMDLINE_PARSER_VERSION
34#define CMDLINE_PARSER_VERSION ""
164 int override,
int initialize,
int check_required);
241 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.
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.
int repeatY_arg
The number of images to repeat in the y direction (default='0').
unsigned int output_given
Whether output was given.
int vectors_flag
Print vectors (dipoles, etc) in xyz file (default=off).
int water_flag
skip the the waters (default=off).
int rigidbody_flag
add a pseudo COM atom to rigidbody (default=off).
const char * rigidbody_help
add a pseudo COM atom to rigidbody help description.
unsigned int repeatY_given
Whether repeatY was given.
char * output_orig
output file name original value given at command line.
const char * output_help
output file name help description.
unsigned int frame_given
Whether frame was given.
char * repeatX_orig
The number of images to repeat in the x direction original value given at command line.
unsigned int velocities_given
Whether velocities was given.
const char * forces_help
Print forces xyz file help description.
int watertype_flag
replace the atom type of water model (default=on).
unsigned int repeatX_given
Whether repeatX was given.
int repeatX_arg
The number of images to repeat in the x direction (default='0').
const char * repeatY_help
The number of images to repeat in the y direction help description.
const char * water_help
skip the the waters help description.
int charges_flag
Print charges in xyz file (default=off).
unsigned inputs_num
unamed options number
const char * repeatX_help
The number of images to repeat in the x direction help description.
const char * zconstraint_help
replace the atom types of zconstraint molecules help description.
const char * frame_help
print every n frame help description.
int periodicBox_flag
map to the periodic box (default=off).
unsigned int refsele_given
Whether refsele was given.
int basetype_flag
Convert to base atom type (default=off).
unsigned int vectors_given
Whether vectors was given.
const char * help_help
Print help and exit help description.
unsigned int efield_given
Whether efield was given.
const char * periodicBox_help
map to the periodic box help description.
char * output_arg
output file name.
char * repeatZ_orig
The number of images to repeat in the z direction original value given at command line.
const char * velocities_help
Print velocities in xyz file help description.
char ** inputs
unamed options (options without names)
unsigned int globalID_given
Whether globalID was given.
char * input_arg
input dump file.
int velocities_flag
Print velocities in xyz file (default=off).
const char * selection_help
general selection syntax help description.
int repeatZ_arg
The number of images to repeat in the z direction (default='0').
char * selection_orig
general selection syntax original value given at command line.
unsigned int rigidbody_given
Whether rigidbody was given.
unsigned int repeatZ_given
Whether repeatZ was given.
char * originsele_orig
select origin original value given at command line.
char * frame_orig
print every n frame original value given at command line.
unsigned int selection_given
Whether selection was given.
const char * basetype_help
Convert to base atom type help description.
char * refsele_arg
select reference.
int forces_flag
Print forces xyz file (default=off).
unsigned int watertype_given
Whether watertype was given.
int globalID_flag
Print global ID in xyz file (default=off).
char * repeatY_orig
The number of images to repeat in the y direction original value given at command line.
char * refsele_orig
select reference original value given at command line.
unsigned int zconstraint_given
Whether zconstraint was given.
const char * charges_help
Print charges in xyz file help description.
unsigned int help_given
Whether help was given.
unsigned int water_given
Whether water was given.
int frame_arg
print every n frame (default='1').
const char * repeatZ_help
The number of images to repeat in the z direction help description.
unsigned int forces_given
Whether forces was given.
unsigned int basetype_given
Whether basetype was given.
const char * refsele_help
select reference help description.
unsigned int input_given
Whether input was given.
const char * efield_help
Print electric field vector in xyz file help description.
unsigned int originsele_given
Whether originsele was given.
unsigned int version_given
Whether version was given.
char * originsele_arg
select origin.
const char * version_help
Print version and exit help description.
char * input_orig
input dump file original value given at command line.
int efield_flag
Print electric field vector in xyz file (default=off).
unsigned int charges_given
Whether charges was given.
const char * globalID_help
Print global ID in xyz file help description.
const char * vectors_help
Print vectors (dipoles, etc) in xyz file help description.
const char * originsele_help
select origin help description.
const char * watertype_help
replace the atom type of water model help description.
const char * input_help
input dump file help description.
unsigned int periodicBox_given
Whether periodicBox was given.
int zconstraint_flag
replace the atom types of zconstraint molecules (default=off).
char * selection_arg
general selection syntax.