OpenMD 3.1
Molecular Dynamics in the Open
|
The header file for the command line option parser generated by GNU Gengetopt version 2.22.6 http://www.gnu.org/software/gengetopt. More...
#include <stdio.h>
Go to the source code of this file.
Classes | |
struct | gengetopt_args_info |
Where the command line options are stored. More... | |
struct | cmdline_parser_params |
The additional parameters to pass to parser functions. More... | |
Macros | |
#define | CMDLINE_PARSER_PACKAGE "Dump2XYZ" |
the program name (used for printing errors) | |
#define | CMDLINE_PARSER_PACKAGE_NAME "Dump2XYZ" |
the complete program name (used for help and version) | |
#define | CMDLINE_PARSER_VERSION "" |
the program version | |
Functions | |
int | cmdline_parser (int argc, char **argv, struct gengetopt_args_info *args_info) |
The command line parser. | |
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_ext (int argc, char **argv, struct gengetopt_args_info *args_info, struct cmdline_parser_params *params) |
The command line parser (version with additional parameters) | |
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_file_save (const char *filename, struct gengetopt_args_info *args_info) |
Save the contents of the option struct into a (text) file. | |
void | cmdline_parser_print_help (void) |
Print the help. | |
void | cmdline_parser_print_version (void) |
Print the version. | |
void | cmdline_parser_params_init (struct cmdline_parser_params *params) |
Initializes all the fields a cmdline_parser_params structure to their default values. | |
struct cmdline_parser_params * | cmdline_parser_params_create (void) |
Allocates dynamically a cmdline_parser_params structure and initializes all its fields to their default values. | |
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 that have a default) | |
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 structure itself) | |
int | cmdline_parser_required (struct gengetopt_args_info *args_info, const char *prog_name) |
Checks that all the required options were specified. | |
Variables | |
const char * | gengetopt_args_info_purpose |
the purpose string of the program | |
const char * | gengetopt_args_info_usage |
the usage string of the program | |
const char * | gengetopt_args_info_description |
the description string of the program | |
const char * | gengetopt_args_info_help [] |
all the lines making the help output | |
The header file for the command line option parser generated by GNU Gengetopt version 2.22.6 http://www.gnu.org/software/gengetopt.
DO NOT modify this file, since it can be overwritten
Definition in file Dump2XYZCmd.hpp.
#define CMDLINE_PARSER_PACKAGE "Dump2XYZ" |
the program name (used for printing errors)
Definition at line 24 of file Dump2XYZCmd.hpp.
Referenced by cmdline_parser_config_file(), cmdline_parser_dump(), cmdline_parser_file_save(), and cmdline_parser_print_version().
#define CMDLINE_PARSER_PACKAGE_NAME "Dump2XYZ" |
the complete program name (used for help and version)
Definition at line 29 of file Dump2XYZCmd.hpp.
Referenced by cmdline_parser_print_version().
#define CMDLINE_PARSER_VERSION "" |
the program version
Definition at line 34 of file Dump2XYZCmd.hpp.
Referenced by cmdline_parser_print_version().
int cmdline_parser | ( | int | argc, |
char ** | argv, | ||
struct gengetopt_args_info * | args_info ) |
The command line parser.
argc | the number of command line options |
argv | the command line options |
args_info | the structure where option information will be stored |
Definition at line 405 of file Dump2XYZCmd.cpp.
References cmdline_parser2().
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)
argc | the number of command line options |
argv | the command line options |
args_info | the structure where option information will be stored |
override | whether to override possibly already present options |
initialize | whether to initialize the option structure my_args_info |
check_required | whether to check that all required options were provided |
Definition at line 421 of file Dump2XYZCmd.cpp.
References cmdline_parser_params::check_ambiguity, cmdline_parser_params::check_required, cmdline_parser_params::initialize, cmdline_parser_params::override, and cmdline_parser_params::print_errors.
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.
outfile | the stream where to dump options |
args_info | the option struct to dump |
Definition at line 301 of file Dump2XYZCmd.cpp.
References gengetopt_args_info::basetype_given, gengetopt_args_info::charges_given, CMDLINE_PARSER_PACKAGE, gengetopt_args_info::efield_given, gengetopt_args_info::forces_given, gengetopt_args_info::frame_given, gengetopt_args_info::frame_orig, gengetopt_args_info::globalID_given, gengetopt_args_info::help_given, gengetopt_args_info::input_given, gengetopt_args_info::input_orig, gengetopt_args_info::originsele_given, gengetopt_args_info::originsele_orig, gengetopt_args_info::output_given, gengetopt_args_info::output_orig, gengetopt_args_info::periodicBox_given, gengetopt_args_info::refsele_given, gengetopt_args_info::refsele_orig, gengetopt_args_info::repeatX_given, gengetopt_args_info::repeatX_orig, gengetopt_args_info::repeatY_given, gengetopt_args_info::repeatY_orig, gengetopt_args_info::repeatZ_given, gengetopt_args_info::repeatZ_orig, gengetopt_args_info::rigidbody_given, gengetopt_args_info::selection_given, gengetopt_args_info::selection_orig, gengetopt_args_info::vectors_given, gengetopt_args_info::velocities_given, gengetopt_args_info::version_given, gengetopt_args_info::water_given, gengetopt_args_info::watertype_given, and gengetopt_args_info::zconstraint_given.
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)
argc | the number of command line options |
argv | the command line options |
args_info | the structure where option information will be stored |
params | additional parameters for the parser |
Definition at line 411 of file Dump2XYZCmd.cpp.
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.
This file can be read by the config file parser (if generated by gengetopt)
filename | the file where to save |
args_info | the option struct to save |
Definition at line 364 of file Dump2XYZCmd.cpp.
References cmdline_parser_dump(), and CMDLINE_PARSER_PACKAGE.
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 structure itself)
args_info | the structure to deallocate |
Definition at line 384 of file Dump2XYZCmd.cpp.
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 that have a default)
args_info | the structure to initialize |
Definition at line 215 of file Dump2XYZCmd.cpp.
References gengetopt_args_info::inputs, and gengetopt_args_info::inputs_num.
struct cmdline_parser_params * cmdline_parser_params_create | ( | void | ) |
Allocates dynamically a cmdline_parser_params structure and initializes all its fields to their default values.
Definition at line 239 of file Dump2XYZCmd.cpp.
References cmdline_parser_params_init().
void cmdline_parser_params_init | ( | struct cmdline_parser_params * | params | ) |
Initializes all the fields a cmdline_parser_params structure to their default values.
params | the structure to initialize |
Definition at line 226 of file Dump2XYZCmd.cpp.
References cmdline_parser_params::check_ambiguity, cmdline_parser_params::check_required, cmdline_parser_params::initialize, cmdline_parser_params::override, and cmdline_parser_params::print_errors.
void cmdline_parser_print_help | ( | void | ) |
Print the help.
Definition at line 206 of file Dump2XYZCmd.cpp.
void cmdline_parser_print_version | ( | void | ) |
Print the version.
Definition at line 180 of file Dump2XYZCmd.cpp.
References CMDLINE_PARSER_PACKAGE, CMDLINE_PARSER_PACKAGE_NAME, and CMDLINE_PARSER_VERSION.
int cmdline_parser_required | ( | struct gengetopt_args_info * | args_info, |
const char * | prog_name ) |
Checks that all the required options were specified.
args_info | the structure to check |
prog_name | the name of the program that will be used to print possible errors |
Definition at line 438 of file Dump2XYZCmd.cpp.
|
extern |
the description string of the program
Definition at line 33 of file Dump2XYZCmd.cpp.
|
extern |
all the lines making the help output
Definition at line 35 of file Dump2XYZCmd.cpp.
|
extern |
the purpose string of the program
Definition at line 27 of file Dump2XYZCmd.cpp.
|
extern |
the usage string of the program
Definition at line 29 of file Dump2XYZCmd.cpp.