]> Creatis software - creaImageIO.git/blob - appli/gimmick/gimmick_ggo.h
*** empty log message ***
[creaImageIO.git] / appli / gimmick / gimmick_ggo.h
1 /* gimmick_ggo.h */
2
3 /* File autogenerated by gengetopt version 2.20  */
4
5 #ifndef GIMMICK_GGO_H
6 #define GIMMICK_GGO_H
7
8 /* If we use autoconf.  */
9 #ifdef HAVE_CONFIG_H
10 #include "config.h"
11 #endif
12
13 #ifdef __cplusplus
14 extern "C" {
15 #endif /* __cplusplus */
16
17 #ifndef CMDLINE_PARSER_PACKAGE
18 #define CMDLINE_PARSER_PACKAGE "gimmick"
19 #endif
20
21 #ifndef CMDLINE_PARSER_VERSION
22 #define CMDLINE_PARSER_VERSION "0.1.0"
23 #endif
24
25 struct gengetopt_args_info
26 {
27   const char *help_help; /* Print help and exit help description.  */
28   const char *version_help; /* Print version and exit help description.  */
29   int print_flag;       /* Prints the local database tree (default=off).  */
30   const char *print_help; /* Prints the local database tree help description.  */
31   char * file_arg;      /* Adds the file to local database.  */
32   char * file_orig;     /* Adds the file to local database original value given at command line.  */
33   const char *file_help; /* Adds the file to local database help description.  */
34   char * dir_arg;       /* Adds the directory to local database.  */
35   char * dir_orig;      /* Adds the directory to local database original value given at command line.  */
36   const char *dir_help; /* Adds the directory to local database help description.  */
37   int recurse_flag;     /* Recurse into sub-directories (default=off).  */
38   const char *recurse_help; /* Recurse into sub-directories help description.  */
39   int verbose_arg;      /* Verbosity level (default='1').  */
40   char * verbose_orig;  /* Verbosity level original value given at command line.  */
41   const char *verbose_help; /* Verbosity level help description.  */
42   int debug_arg;        /* Debug messages level (default='0').  */
43   char * debug_orig;    /* Debug messages level original value given at command line.  */
44   const char *debug_help; /* Debug messages level help description.  */
45   
46   int help_given ;      /* Whether help was given.  */
47   int version_given ;   /* Whether version was given.  */
48   int print_given ;     /* Whether print was given.  */
49   int file_given ;      /* Whether file was given.  */
50   int dir_given ;       /* Whether dir was given.  */
51   int recurse_given ;   /* Whether recurse was given.  */
52   int verbose_given ;   /* Whether verbose was given.  */
53   int debug_given ;     /* Whether debug was given.  */
54
55 } ;
56
57 extern const char *gengetopt_args_info_purpose;
58 extern const char *gengetopt_args_info_usage;
59 extern const char *gengetopt_args_info_help[];
60
61 int cmdline_parser (int argc, char * const *argv,
62   struct gengetopt_args_info *args_info);
63 int cmdline_parser2 (int argc, char * const *argv,
64   struct gengetopt_args_info *args_info,
65   int override, int initialize, int check_required);
66 int cmdline_parser_file_save(const char *filename,
67   struct gengetopt_args_info *args_info);
68
69 void cmdline_parser_print_help(void);
70 void cmdline_parser_print_version(void);
71
72 void cmdline_parser_init (struct gengetopt_args_info *args_info);
73 void cmdline_parser_free (struct gengetopt_args_info *args_info);
74
75 int cmdline_parser_required (struct gengetopt_args_info *args_info,
76   const char *prog_name);
77
78
79 #ifdef __cplusplus
80 }
81 #endif /* __cplusplus */
82 #endif /* GIMMICK_GGO_H */