- Main Page
- Namespaces
- Data Structures
- Files

# cmdline.h

    00001
    00008 #ifndef CMDLINE_H
    00009 #define CMDLINE_H
    00010
    00011 /* If we use autoconf.  */
    00012 #ifdef HAVE_CONFIG_H
    00013 #include "config.h"
    00014 #endif
    00015
    00016 #ifdef __cplusplus
    00017 extern "C" {
    00018 #endif /* __cplusplus */
    00019
    00020 #ifndef CMDLINE_PARSER_PACKAGE
    00021
    00022 #define CMDLINE_PARSER_PACKAGE PACKAGE
    00023 #endif
    00024
    00025 #ifndef CMDLINE_PARSER_VERSION
    00026
    00027 #define CMDLINE_PARSER_VERSION VERSION
    00028 #endif
    00029
    00031 struct gengetopt_args_info
    00032 {
    00033   const char *help_help;
    00034   const char *version_help;
    00035   char * fipid_arg;
    00036   char * fipid_orig;
    00037   const char *fipid_help;
    00038   char * fid_arg;
    00039   char * fid_orig;
    00040   const char *fid_help;
    00041   char * org_arg;
    00042   char * org_orig;
    00043   const char *org_help;
    00044   char * bank_arg;
    00045   char * bank_orig;
    00046   const char *bank_help;
    00047   char * broker_arg;
    00048   char * broker_orig;
    00049   const char *broker_help;
    00050   char * user_arg;
    00051   char * user_orig;
    00052   const char *user_help;
    00053   char * pass_arg;
    00054   char * pass_orig;
    00055   const char *pass_help;
    00056   char * acct_arg;
    00057   char * acct_orig;
    00058   const char *acct_help;
    00059   int type_arg;
    00060   char * type_orig;
    00061   const char *type_help;
    00062   long past_arg;
    00063   char * past_orig;
    00064   const char *past_help;
    00065   char * url_arg;
    00066   char * url_orig;
    00067   const char *url_help;
    00068   int trid_arg;
    00069   char * trid_orig;
    00070   const char *trid_help;
    00071   const char *statement_req_help;
    00072   const char *accountinfo_req_help;
    00073   const char *payment_req_help;
    00074   const char *paymentinquiry_req_help;
    00075   const char *bank_list_help;
    00076   const char *bank_fipid_help;
    00077   const char *bank_services_help;
    00078   const char *allsupport_help;
    00080   int help_given ;
    00081   int version_given ;
    00082   int fipid_given ;
    00083   int fid_given ;
    00084   int org_given ;
    00085   int bank_given ;
    00086   int broker_given ;
    00087   int user_given ;
    00088   int pass_given ;
    00089   int acct_given ;
    00090   int type_given ;
    00091   int past_given ;
    00092   int url_given ;
    00093   int trid_given ;
    00094   int statement_req_given ;
    00095   int accountinfo_req_given ;
    00096   int payment_req_given ;
    00097   int paymentinquiry_req_given ;
    00098   int bank_list_given ;
    00099   int bank_fipid_given ;
    00100   int bank_services_given ;
    00101   int allsupport_given ;
    00103   char **inputs ;
    00104   unsigned inputs_num ;
    00105   int command_group_counter;
    00106 } ;
    00107
    00109 struct cmdline_parser_params
    00110 {
    00111   int override;
    00112   int initialize;
    00113   int check_required;
    00114   int check_ambiguity;
    00115 } ;
    00116
    00118 extern const char *gengetopt_args_info_purpose;
    00120 extern const char *gengetopt_args_info_usage;
    00122 extern const char *gengetopt_args_info_help[];
    00123
    00131 int cmdline_parser (int argc, char * const *argv,
    00132   struct gengetopt_args_info *args_info);
    00133
    00145 int cmdline_parser2 (int argc, char * const *argv,
    00146   struct gengetopt_args_info *args_info,
    00147   int override, int initialize, int check_required);
    00148
    00157 int cmdline_parser_ext (int argc, char * const *argv,
    00158   struct gengetopt_args_info *args_info,
    00159   struct cmdline_parser_params *params);
    00160
    00168 int cmdline_parser_file_save(const char *filename,
    00169   struct gengetopt_args_info *args_info);
    00170
    00174 void cmdline_parser_print_help(void);
    00178 void cmdline_parser_print_version(void);
    00179
    00185 struct cmdline_parser_params *cmdline_parser_params_init();
    00186
    00192 void cmdline_parser_init (struct gengetopt_args_info *args_info);
    00198 void cmdline_parser_free (struct gengetopt_args_info *args_info);
    00199
    00207 int cmdline_parser_required (struct gengetopt_args_info *args_info,
    00208   const char *prog_name);
    00209
    00210
    00211 #ifdef __cplusplus
    00212 }
    00213 #endif /* __cplusplus */
    00214 #endif /* CMDLINE_H */