Biorithm  1.1
 All Classes Functions Variables Typedefs Friends
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 "cluster"
00025 #endif
00026 
00027 #ifndef CMDLINE_PARSER_PACKAGE_NAME
00028 
00029 #define CMDLINE_PARSER_PACKAGE_NAME "cluster"
00030 #endif
00031 
00032 #ifndef CMDLINE_PARSER_VERSION
00033 
00034 #define CMDLINE_PARSER_VERSION "2.0"
00035 #endif
00036 
00038 struct gengetopt_args_info
00039 {
00040   const char *help_help; 
00041   const char *version_help; 
00042   float alpha_arg;      
00043   char * alpha_orig;    
00044   const char *alpha_help; 
00045   int anneal_flag;      
00046   const char *anneal_help; 
00047   int apriori_flag;     
00048   const char *apriori_help; 
00049   char * classes_arg;   
00050   char * classes_orig;  
00051   const char *classes_help; 
00052   char * config_arg;    
00053   char * config_orig;   
00054   const char *config_help; 
00055   float correlations_arg;       
00056   char * correlations_orig;     
00057   const char *correlations_help; 
00058   int flip_flag;        
00059   const char *flip_help; 
00060   int filter_flag;      
00061   const char *filter_help; 
00062   int gibbs_flag;       
00063   const char *gibbs_help; 
00064   int greedy_flag;      
00065   const char *greedy_help; 
00066   char * generate_arg;  
00067   char * generate_orig; 
00068   const char *generate_help; 
00069   char * input_arg;     
00070   char * input_orig;    
00071   const char *input_help; 
00072   int itemsets_flag;    
00073   const char *itemsets_help; 
00074   char * limit_arg;     
00075   char * limit_orig;    
00076   const char *limit_help; 
00077   int memory_flag;      
00078   const char *memory_help; 
00079   int min_flag; 
00080   const char *min_help; 
00081   int number_arg;       
00082   char * number_orig;   
00083   const char *number_help; 
00084   char * output_arg;    
00085   char * output_orig;   
00086   const char *output_help; 
00087   int partition_flag;   
00088   const char *partition_help; 
00089   int significant_flag; 
00090   const char *significant_help; 
00091   int statistics_flag;  
00092   const char *statistics_help; 
00093   int test_flag;        
00094   const char *test_help; 
00095   int train_flag;       
00096   const char *train_help; 
00097   int verbose_arg;      
00098   char * verbose_orig;  
00099   const char *verbose_help; 
00100   float width_arg;      
00101   char * width_orig;    
00102   const char *width_help; 
00103   int gaussian_flag;    
00104   const char *gaussian_help; 
00105   char * genes_arg;     
00106   char * genes_orig;    
00107   const char *genes_help; 
00108   char * gene_id_column_arg;    
00109   char * gene_id_column_orig;   
00110   const char *gene_id_column_help; 
00111   char * gene_name_column_arg;  
00112   char * gene_name_column_orig; 
00113   const char *gene_name_column_help; 
00114   char * ignore_column_name_arg;        
00115   char * ignore_column_name_orig;       
00116   const char *ignore_column_name_help; 
00117   char * ignore_row_name_arg;   
00118   char * ignore_row_name_orig;  
00119   const char *ignore_row_name_help; 
00120   float lb_arg; 
00121   char * lb_orig;       
00122   const char *lb_help; 
00123   int log_flag; 
00124   const char *log_help; 
00125   int mc_arg;   
00126   char * mc_orig;       
00127   const char *mc_help; 
00128   float mh_arg; 
00129   char * mh_orig;       
00130   const char *mh_help; 
00131   float min_up_regulated_arg;   
00132   char * min_up_regulated_orig; 
00133   const char *min_up_regulated_help; 
00134   float max_down_regulated_arg; 
00135   char * max_down_regulated_orig;       
00136   const char *max_down_regulated_help; 
00137   int nb_arg;   
00138   char * nb_orig;       
00139   const char *nb_help; 
00140   int nc_arg;   
00141   char * nc_orig;       
00142   const char *nc_help; 
00143   int nm_arg;   
00144   char * nm_orig;       
00145   const char *nm_help; 
00146   int nd_arg;   
00147   char * nd_orig;       
00148   const char *nd_help; 
00149   int sd_arg;   
00150   char * sd_orig;       
00151   const char *sd_help; 
00152   int ns_arg;   
00153   char * ns_orig;       
00154   const char *ns_help; 
00155   char * oi_arg;        
00156   char * oi_orig;       
00157   const char *oi_help; 
00158   int pc_arg;   
00159   char * pc_orig;       
00160   const char *pc_help; 
00161   float pv_arg; 
00162   char * pv_orig;       
00163   const char *pv_help; 
00164   char * rf_arg;        
00165   char * rf_orig;       
00166   const char *rf_help; 
00167   char * row_name_column_arg;   
00168   char * row_name_column_orig;  
00169   const char *row_name_column_help; 
00170   int shamir_flag;      
00171   const char *shamir_help; 
00172   float st_arg; 
00173   char * st_orig;       
00174   const char *st_help; 
00175   float ub_arg; 
00176   char * ub_orig;       
00177   const char *ub_help; 
00178   int uniform_flag;     
00179   const char *uniform_help; 
00180   char * wf_arg;        
00181   char * wf_orig;       
00182   const char *wf_help; 
00184   unsigned int help_given ;     
00185   unsigned int version_given ;  
00186   unsigned int alpha_given ;    
00187   unsigned int anneal_given ;   
00188   unsigned int apriori_given ;  
00189   unsigned int classes_given ;  
00190   unsigned int config_given ;   
00191   unsigned int correlations_given ;     
00192   unsigned int flip_given ;     
00193   unsigned int filter_given ;   
00194   unsigned int gibbs_given ;    
00195   unsigned int greedy_given ;   
00196   unsigned int generate_given ; 
00197   unsigned int input_given ;    
00198   unsigned int itemsets_given ; 
00199   unsigned int limit_given ;    
00200   unsigned int memory_given ;   
00201   unsigned int min_given ;      
00202   unsigned int number_given ;   
00203   unsigned int output_given ;   
00204   unsigned int partition_given ;        
00205   unsigned int significant_given ;      
00206   unsigned int statistics_given ;       
00207   unsigned int test_given ;     
00208   unsigned int train_given ;    
00209   unsigned int verbose_given ;  
00210   unsigned int width_given ;    
00211   unsigned int gaussian_given ; 
00212   unsigned int genes_given ;    
00213   unsigned int gene_id_column_given ;   
00214   unsigned int gene_name_column_given ; 
00215   unsigned int ignore_column_name_given ;       
00216   unsigned int ignore_row_name_given ;  
00217   unsigned int lb_given ;       
00218   unsigned int log_given ;      
00219   unsigned int mc_given ;       
00220   unsigned int mh_given ;       
00221   unsigned int min_up_regulated_given ; 
00222   unsigned int max_down_regulated_given ;       
00223   unsigned int nb_given ;       
00224   unsigned int nc_given ;       
00225   unsigned int nm_given ;       
00226   unsigned int nd_given ;       
00227   unsigned int sd_given ;       
00228   unsigned int ns_given ;       
00229   unsigned int oi_given ;       
00230   unsigned int pc_given ;       
00231   unsigned int pv_given ;       
00232   unsigned int rf_given ;       
00233   unsigned int row_name_column_given ;  
00234   unsigned int shamir_given ;   
00235   unsigned int st_given ;       
00236   unsigned int ub_given ;       
00237   unsigned int uniform_given ;  
00238   unsigned int wf_given ;       
00240 } ;
00241 
00243 struct cmdline_parser_params
00244 {
00245   int override; 
00246   int initialize; 
00247   int check_required; 
00248   int check_ambiguity; 
00249   int print_errors; 
00250 } ;
00251 
00253 extern const char *gengetopt_args_info_purpose;
00255 extern const char *gengetopt_args_info_usage;
00257 extern const char *gengetopt_args_info_help[];
00258 
00266 int cmdline_parser (int argc, char **argv,
00267   struct gengetopt_args_info *args_info);
00268 
00280 int cmdline_parser2 (int argc, char **argv,
00281   struct gengetopt_args_info *args_info,
00282   int override, int initialize, int check_required);
00283 
00292 int cmdline_parser_ext (int argc, char **argv,
00293   struct gengetopt_args_info *args_info,
00294   struct cmdline_parser_params *params);
00295 
00302 int cmdline_parser_dump(FILE *outfile,
00303   struct gengetopt_args_info *args_info);
00304 
00312 int cmdline_parser_file_save(const char *filename,
00313   struct gengetopt_args_info *args_info);
00314 
00318 void cmdline_parser_print_help(void);
00322 void cmdline_parser_print_version(void);
00323 
00329 void cmdline_parser_params_init(struct cmdline_parser_params *params);
00330 
00336 struct cmdline_parser_params *cmdline_parser_params_create(void);
00337 
00343 void cmdline_parser_init (struct gengetopt_args_info *args_info);
00349 void cmdline_parser_free (struct gengetopt_args_info *args_info);
00350 
00358 int cmdline_parser_required (struct gengetopt_args_info *args_info,
00359   const char *prog_name);
00360 
00361 
00362 #ifdef __cplusplus
00363 }
00364 #endif /* __cplusplus */
00365 #endif /* CMDLINE_H */
 All Classes Functions Variables Typedefs Friends