LibOFX

- Main Page
- Namespaces
- Data Structures
- Files

- File List
- Globals

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 #include <stdio.h> /* for FILE */
    00017
    00018 #ifdef __cplusplus
    00019 extern "C" {
    00020 #endif /* __cplusplus */
    00021
    00022 #ifndef CMDLINE_PARSER_PACKAGE
    00023
    00024 #define CMDLINE_PARSER_PACKAGE PACKAGE
    00025 #endif
    00026
    00027 #ifndef CMDLINE_PARSER_PACKAGE_NAME
    00028
    00029 #ifdef PACKAGE_NAME
    00030 #define CMDLINE_PARSER_PACKAGE_NAME PACKAGE_NAME
    00031 #else
    00032 #define CMDLINE_PARSER_PACKAGE_NAME PACKAGE
    00033 #endif
    00034 #endif
    00035
    00036 #ifndef CMDLINE_PARSER_VERSION
    00037
    00038 #define CMDLINE_PARSER_VERSION VERSION
    00039 #endif
    00040
    00042 struct gengetopt_args_info
    00043 {
    00044   const char *help_help;
    00045   const char *version_help;
    00046   char * fipid_arg;
    00047   char * fipid_orig;
    00048   const char *fipid_help;
    00049   char * fid_arg;
    00050   char * fid_orig;
    00051   const char *fid_help;
    00052   char * org_arg;
    00053   char * org_orig;
    00054   const char *org_help;
    00055   char * bank_arg;
    00056   char * bank_orig;
    00057   const char *bank_help;
    00058   char * broker_arg;
    00059   char * broker_orig;
    00060   const char *broker_help;
    00061   char * user_arg;
    00062   char * user_orig;
    00063   const char *user_help;
    00064   char * pass_arg;
    00065   char * pass_orig;
    00066   const char *pass_help;
    00067   char * acct_arg;
    00068   char * acct_orig;
    00069   const char *acct_help;
    00070   int type_arg;
    00071   char * type_orig;
    00072   const char *type_help;
    00073   long past_arg;
    00074   char * past_orig;
    00075   const char *past_help;
    00076   char * url_arg;
    00077   char * url_orig;
    00078   const char *url_help;
    00079   int trid_arg;
    00080   char * trid_orig;
    00081   const char *trid_help;
    00082   const char *statement_req_help;
    00083   const char *accountinfo_req_help;
    00084   const char *payment_req_help;
    00085   const char *paymentinquiry_req_help;
    00086   const char *bank_list_help;
    00087   const char *bank_fipid_help;
    00088   const char *bank_services_help;
    00089   const char *allsupport_help;
    00091   unsigned int help_given ;
    00092   unsigned int version_given ;
    00093   unsigned int fipid_given ;
    00094   unsigned int fid_given ;
    00095   unsigned int org_given ;
    00096   unsigned int bank_given ;
    00097   unsigned int broker_given ;
    00098   unsigned int user_given ;
    00099   unsigned int pass_given ;
    00100   unsigned int acct_given ;
    00101   unsigned int type_given ;
    00102   unsigned int past_given ;
    00103   unsigned int url_given ;
    00104   unsigned int trid_given ;
    00105   unsigned int statement_req_given ;
    00106   unsigned int accountinfo_req_given ;
    00107   unsigned int payment_req_given ;
    00108   unsigned int paymentinquiry_req_given ;
    00109   unsigned int bank_list_given ;
    00110   unsigned int bank_fipid_given ;
    00111   unsigned int bank_services_given ;
    00112   unsigned int allsupport_given ;
    00114   char **inputs ;
    00115   unsigned inputs_num ;
    00116   int command_group_counter;
    00117 } ;
    00118
    00120 struct cmdline_parser_params
    00121 {
    00122   int override;
    00123   int initialize;
    00124   int check_required;
    00125   int check_ambiguity;
    00126   int print_errors;
    00127 } ;
    00128
    00130 extern const char *gengetopt_args_info_purpose;
    00132 extern const char *gengetopt_args_info_usage;
    00134 extern const char *gengetopt_args_info_help[];
    00135
    00143 int cmdline_parser (int argc, char **argv,
    00144   struct gengetopt_args_info *args_info);
    00145
    00157 int cmdline_parser2 (int argc, char **argv,
    00158   struct gengetopt_args_info *args_info,
    00159   int override, int initialize, int check_required);
    00160
    00169 int cmdline_parser_ext (int argc, char **argv,
    00170   struct gengetopt_args_info *args_info,
    00171   struct cmdline_parser_params *params);
    00172
    00179 int cmdline_parser_dump(FILE *outfile,
    00180   struct gengetopt_args_info *args_info);
    00181
    00189 int cmdline_parser_file_save(const char *filename,
    00190   struct gengetopt_args_info *args_info);
    00191
    00195 void cmdline_parser_print_help(void);
    00199 void cmdline_parser_print_version(void);
    00200
    00206 void cmdline_parser_params_init(struct cmdline_parser_params *params);
    00207
    00213 struct cmdline_parser_params *cmdline_parser_params_create(void);
    00214
    00220 void cmdline_parser_init (struct gengetopt_args_info *args_info);
    00226 void cmdline_parser_free (struct gengetopt_args_info *args_info);
    00227
    00235 int cmdline_parser_required (struct gengetopt_args_info *args_info,
    00236   const char *prog_name);
    00237
    00238
    00239 #ifdef __cplusplus
    00240 }
    00241 #endif /* __cplusplus */
    00242 #endif /* CMDLINE_H */