cmdline.h
Go to the documentation of this file.
1 /**************************************************************************************************
2  Software License Agreement (BSD License)
3 
4  Copyright (c) 2011-2013, LAR toolkit developers - University of Aveiro - http://lars.mec.ua.pt
5  All rights reserved.
6 
7  Redistribution and use in source and binary forms, with or without modification, are permitted
8  provided that the following conditions are met:
9 
10  *Redistributions of source code must retain the above copyright notice, this list of
11  conditions and the following disclaimer.
12  *Redistributions in binary form must reproduce the above copyright notice, this list of
13  conditions and the following disclaimer in the documentation and/or other materials provided
14  with the distribution.
15  *Neither the name of the University of Aveiro nor the names of its contributors may be used to
16  endorse or promote products derived from this software without specific prior written permission.
17 
18  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
19  IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
20  FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
21  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22  DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
24  IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
25  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 ***************************************************************************************************/
27 /* cmdline.h */
28 
29 /* File autogenerated by gengetopt version 2.18 */
30 
31 #ifndef CMDLINE_H
32 #define CMDLINE_H
33 
34 /* If we use autoconf. */
35 #ifdef HAVE_CONFIG_H
36 #include "config.h"
37 #endif
38 
39 #ifdef __cplusplus
40 extern "C" {
41 #endif /* __cplusplus */
42 
43 #ifndef CMDLINE_PARSER_PACKAGE
44 #define CMDLINE_PARSER_PACKAGE "LinePerceptor"
45 #endif
46 
47 #ifndef CMDLINE_PARSER_VERSION
48 #define CMDLINE_PARSER_VERSION "1.0"
49 #endif
50 
52 {
53  const char *help_help; /* Print help and exit help description. */
54  const char *version_help; /* Print version and exit help description. */
55  char * lanes_conf_arg; /* Configuration file for lane detection (default='Lanes.conf'). */
56  char * lanes_conf_orig; /* Configuration file for lane detection original value given at command line. */
57  const char *lanes_conf_help; /* Configuration file for lane detection help description. */
58  char * stoplines_conf_arg; /* Configuration file for stopline detection (default='StopLines.conf'). */
59  char * stoplines_conf_orig; /* Configuration file for stopline detection original value given at command line. */
60  const char *stoplines_conf_help; /* Configuration file for stopline detection help description. */
61  int no_stoplines_flag; /* Don't detect stop lines (default=on). */
62  const char *no_stoplines_help; /* Don't detect stop lines help description. */
63  int no_lanes_flag; /* Don't detect lanes (default=off). */
64  const char *no_lanes_help; /* Don't detect lanes help description. */
65  char * camera_conf_arg; /* Configuration file for the camera paramters (default='CameraInfo.conf'). */
66  char * camera_conf_orig; /* Configuration file for the camera paramters original value given at command line. */
67  const char *camera_conf_help; /* Configuration file for the camera paramters help description. */
68  char * list_file_arg; /* Text file containing a list of images one per line. */
69  char * list_file_orig; /* Text file containing a list of images one per line original value given at command line. */
70  const char *list_file_help; /* Text file containing a list of images one per line help description. */
71  char * list_path_arg; /* Path where the image files are located, this is just appended at the front of each line in --list-file (default=''). */
72  char * list_path_orig; /* Path where the image files are located, this is just appended at the front of each line in --list-file original value given at command line. */
73  const char *list_path_help; /* Path where the image files are located, this is just appended at the front of each line in --list-file help description. */
74  char * image_file_arg; /* The path to an image. */
75  char * image_file_orig; /* The path to an image original value given at command line. */
76  const char *image_file_help; /* The path to an image help description. */
77  int wait_arg; /* Number of milliseconds to show the detected lanes. Put 0 for infinite i.e. waits for keypress. (default='0'). */
78  char * wait_orig; /* Number of milliseconds to show the detected lanes. Put 0 for infinite i.e. waits for keypress. original value given at command line. */
79  const char *wait_help; /* Number of milliseconds to show the detected lanes. Put 0 for infinite i.e. waits for keypress. help description. */
80  int show_flag; /* Show the detected lines (default=off). */
81  const char *show_help; /* Show the detected lines help description. */
82  int step_flag; /* Step through each image (needs a keypress) or fall through (waits for --wait msecs) (default=off). */
83  const char *step_help; /* Step through each image (needs a keypress) or fall through (waits for --wait msecs) help description. */
84  int show_lane_numbers_flag; /* Show the lane numbers on the output image (default=off). */
85  const char *show_lane_numbers_help; /* Show the lane numbers on the output image help description. */
86  char * output_suffix_arg; /* Suffix of images and results (default='_results'). */
87  char * output_suffix_orig; /* Suffix of images and results original value given at command line. */
88  const char *output_suffix_help; /* Suffix of images and results help description. */
89  int save_images_flag; /* Export all images with detected lanes to the by appending --output-suffix + '.png' to each input image (default=off). */
90  const char *save_images_help; /* Export all images with detected lanes to the by appending --output-suffix + '.png' to each input image help description. */
91  int save_lanes_flag; /* Export all detected lanes to a text file by appending --output-suffix + '.txt' to --list-file (default=off). */
92  const char *save_lanes_help; /* Export all detected lanes to a text file by appending --output-suffix + '.txt' to --list-file help description. */
93  int debug_flag; /* Show debugging information and images (default=off). */
94  const char *debug_help; /* Show debugging information and images help description. */
95 
96  int help_given ; /* Whether help was given. */
97  int version_given ; /* Whether version was given. */
98  int lanes_conf_given ; /* Whether lanes-conf was given. */
99  int stoplines_conf_given ; /* Whether stoplines-conf was given. */
100  int no_stoplines_given ; /* Whether no-stoplines was given. */
101  int no_lanes_given ; /* Whether no-lanes was given. */
102  int camera_conf_given ; /* Whether camera-conf was given. */
103  int list_file_given ; /* Whether list-file was given. */
104  int list_path_given ; /* Whether list-path was given. */
105  int image_file_given ; /* Whether image-file was given. */
106  int wait_given ; /* Whether wait was given. */
107  int show_given ; /* Whether show was given. */
108  int step_given ; /* Whether step was given. */
109  int show_lane_numbers_given ; /* Whether show-lane-numbers was given. */
110  int output_suffix_given ; /* Whether output-suffix was given. */
111  int save_images_given ; /* Whether save-images was given. */
112  int save_lanes_given ; /* Whether save-lanes was given. */
113  int debug_given ; /* Whether debug was given. */
114 
115  char **inputs ; /* unamed options */
116  unsigned inputs_num ; /* unamed options number */
117 } ;
118 
119 extern const char *gengetopt_args_info_purpose;
120 extern const char *gengetopt_args_info_usage;
121 extern const char *gengetopt_args_info_help[];
122 
123 int cmdline_parser (int argc, char * const *argv,
124  struct gengetopt_args_info *args_info);
125 int cmdline_parser2 (int argc, char * const *argv,
126  struct gengetopt_args_info *args_info,
127  int override, int initialize, int check_required);
128 int cmdline_parser_file_save(const char *filename,
129  struct gengetopt_args_info *args_info);
130 
131 void cmdline_parser_print_help(void);
133 
134 void cmdline_parser_init (struct gengetopt_args_info *args_info);
135 void cmdline_parser_free (struct gengetopt_args_info *args_info);
136 
137 int cmdline_parser_configfile (char * const filename,
138  struct gengetopt_args_info *args_info,
139  int override, int initialize, int check_required);
140 
141 int cmdline_parser_required (struct gengetopt_args_info *args_info,
142  const char *prog_name);
143 
144 
145 #ifdef __cplusplus
146 }
147 #endif /* __cplusplus */
148 #endif /* CMDLINE_H */
char * list_file_orig
Definition: cmdline.h:69
const char * camera_conf_help
Definition: cmdline.h:67
const char * list_file_help
Definition: cmdline.h:70
const char * output_suffix_help
Definition: cmdline.h:88
char * camera_conf_orig
Definition: cmdline.h:66
const char * gengetopt_args_info_help[]
Definition: cmdline.cpp:54
int cmdline_parser2(int argc, char *const *argv, struct gengetopt_args_info *args_info, int override, int initialize, int check_required)
Definition: cmdline.cpp:449
const char * lanes_conf_help
Definition: cmdline.h:57
char * image_file_arg
Definition: cmdline.h:74
char * list_file_arg
Definition: cmdline.h:68
const char * gengetopt_args_info_usage
Definition: cmdline.cpp:52
int cmdline_parser_file_save(const char *filename, struct gengetopt_args_info *args_info)
Definition: cmdline.cpp:313
const char * show_lane_numbers_help
Definition: cmdline.h:85
int cmdline_parser(int argc, char *const *argv, struct gengetopt_args_info *args_info)
Definition: cmdline.cpp:443
const char * no_lanes_help
Definition: cmdline.h:64
const char * step_help
Definition: cmdline.h:83
int show_lane_numbers_flag
Definition: cmdline.h:84
const char * gengetopt_args_info_purpose
Definition: cmdline.cpp:50
const char * debug_help
Definition: cmdline.h:94
void cmdline_parser_print_version(void)
Definition: cmdline.cpp:192
char * list_path_orig
Definition: cmdline.h:72
const char * wait_help
Definition: cmdline.h:79
void cmdline_parser_init(struct gengetopt_args_info *args_info)
Definition: cmdline.cpp:212
int cmdline_parser_configfile(char *const filename, struct gengetopt_args_info *args_info, int override, int initialize, int check_required)
Definition: cmdline.cpp:863
const char * stoplines_conf_help
Definition: cmdline.h:60
const char * list_path_help
Definition: cmdline.h:73
const char * no_stoplines_help
Definition: cmdline.h:62
char * output_suffix_arg
Definition: cmdline.h:86
char * image_file_orig
Definition: cmdline.h:75
const char * version_help
Definition: cmdline.h:54
char * stoplines_conf_arg
Definition: cmdline.h:58
char * stoplines_conf_orig
Definition: cmdline.h:59
char * lanes_conf_arg
Definition: cmdline.h:55
char * lanes_conf_orig
Definition: cmdline.h:56
void cmdline_parser_print_help(void)
Definition: cmdline.cpp:198
char * wait_orig
Definition: cmdline.h:78
unsigned inputs_num
Definition: cmdline.h:116
const char * help_help
Definition: cmdline.h:53
const char * image_file_help
Definition: cmdline.h:76
const char * show_help
Definition: cmdline.h:81
char * list_path_arg
Definition: cmdline.h:71
int show_lane_numbers_given
Definition: cmdline.h:109
const char * save_lanes_help
Definition: cmdline.h:92
const char * save_images_help
Definition: cmdline.h:90
int stoplines_conf_given
Definition: cmdline.h:99
char * output_suffix_orig
Definition: cmdline.h:87
char * camera_conf_arg
Definition: cmdline.h:65
void cmdline_parser_free(struct gengetopt_args_info *args_info)
Definition: cmdline.cpp:420
int cmdline_parser_required(struct gengetopt_args_info *args_info, const char *prog_name)
Definition: cmdline.cpp:465


caltech_lanes
Author(s): Ricardo Morais
autogenerated on Mon Mar 2 2015 01:31:31