|  | ATLAS Offline Software
    | 
#include "CxxUtils/checker_macros.h"#include <stdio.h>#include <stdlib.h>#include <string.h>#include <getopt.h>#include "cmdline.h"Go to the source code of this file.
| Classes | |
| union | generic_value | 
| generic value variable  More... | |
| struct | generic_list | 
| holds temporary values for multiple options  More... | |
| Enumerations | |
| enum | cmdline_parser_arg_type { ARG_NO, ARG_FLAG, ARG_STRING, ARG_INT, ARG_DOUBLE } | 
| Functions | |
| void | cmdline_parser_print_version (void) | 
| Print the version.  More... | |
| void | cmdline_parser_print_help (void) | 
| Print the help.  More... | |
| 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)  More... | |
| void | cmdline_parser_params_init (struct cmdline_parser_params *params) | 
| Initializes all the fields a cmdline_parser_params structure to their default values.  More... | |
| 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.  More... | |
| 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.  More... | |
| 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.  More... | |
| 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)  More... | |
| int | cmdline_parser (int argc, char **argv, struct gengetopt_args_info *args_info) | 
| The command line parser.  More... | |
| 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)  More... | |
| 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)  More... | |
| int | cmdline_parser_required (struct gengetopt_args_info *args_info, const char *prog_name) | 
| Checks that all the required options were specified.  More... | |
| Variables | |
| ATLAS_NO_CHECK_FILE_THREAD_SAFETY | |
| const char * | gengetopt_args_info_purpose = "" | 
| the purpose string of the program  More... | |
| const char * | gengetopt_args_info_usage = "Usage: iLumiCalc.exe [OPTIONS]..." | 
| the usage string of the program  More... | |
| const char * | gengetopt_args_info_description = "" | 
| const char * | gengetopt_args_info_help [] | 
| all the lines making the help output  More... | |
| Enumerator | |
|---|---|
| ARG_NO | |
| ARG_FLAG | |
| ARG_STRING | |
| ARG_INT | |
| ARG_DOUBLE | |
Definition at line 67 of file cmdline.cxx.
| 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 659 of file cmdline.cxx.
| 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 681 of file cmdline.cxx.
| 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 418 of file cmdline.cxx.
| 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 665 of file cmdline.cxx.
| 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 482 of file cmdline.cxx.
| 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 502 of file cmdline.cxx.
| 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 252 of file cmdline.cxx.
| 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 273 of file cmdline.cxx.
| 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 260 of file cmdline.cxx.
| void cmdline_parser_print_help | ( | void | ) | 
| void cmdline_parser_print_version | ( | void | ) | 
| 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 704 of file cmdline.cxx.
| ATLAS_NO_CHECK_FILE_THREAD_SAFETY | 
Definition at line 12 of file cmdline.cxx.
| const char* gengetopt_args_info_description = "" | 
Definition at line 31 of file cmdline.cxx.
| const char* gengetopt_args_info_help[] | 
all the lines making the help output
Definition at line 33 of file cmdline.cxx.
| const char* gengetopt_args_info_purpose = "" | 
the purpose string of the program
Definition at line 27 of file cmdline.cxx.
| const char* gengetopt_args_info_usage = "Usage: iLumiCalc.exe [OPTIONS]..." | 
the usage string of the program
Definition at line 29 of file cmdline.cxx.
 1.8.18
 1.8.18