#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "getopt.h"
#include "cmdline.h"
Go to the source code of this file.
Classes | |
struct | line_list |
Defines | |
#define | ADDITIONAL_ERROR " in configuration file " |
#define | CONFIG_FILE_LINE_BUFFER_SIZE (CONFIG_FILE_LINE_SIZE+3) |
#define | CONFIG_FILE_LINE_SIZE 2048 |
Functions | |
static void | clear_args (struct gengetopt_args_info *args_info) |
static void | clear_given (struct gengetopt_args_info *args_info) |
int | cmdline_parser (int argc, char *const *argv, struct gengetopt_args_info *args_info) |
int | cmdline_parser2 (int argc, char *const *argv, struct gengetopt_args_info *args_info, int override, int initialize, int check_required) |
int | cmdline_parser_configfile (char *const filename, struct gengetopt_args_info *args_info, int override, int initialize, int check_required) |
int | cmdline_parser_file_save (const char *filename, struct gengetopt_args_info *args_info) |
void | cmdline_parser_free (struct gengetopt_args_info *args_info) |
void | cmdline_parser_init (struct gengetopt_args_info *args_info) |
static int | cmdline_parser_internal (int argc, char *const *argv, struct gengetopt_args_info *args_info, int override, int initialize, int check_required, const char *additional_error) |
void | cmdline_parser_print_help (void) |
void | cmdline_parser_print_version (void) |
static void | cmdline_parser_release (struct gengetopt_args_info *args_info) |
int | cmdline_parser_required (struct gengetopt_args_info *args_info, const char *prog_name) |
static void | free_cmd_list (void) |
static char * | gengetopt_strdup (const char *s) |
static void | init_args_info (struct gengetopt_args_info *args_info) |
Variables | |
static struct line_list * | cmd_line_list = 0 |
static struct line_list * | cmd_line_list_tmp = 0 |
const char * | gengetopt_args_info_help [] |
const char * | gengetopt_args_info_purpose = "Detects lanes in street images." |
const char * | gengetopt_args_info_usage = "Usage: LinePerceptor [OPTIONS]... [FILES]..." |
char | my2_argv [CONFIG_FILE_LINE_BUFFER_SIZE+1] |
#define ADDITIONAL_ERROR " in configuration file " |
Definition at line 855 of file cmdline.cpp.
#define CONFIG_FILE_LINE_BUFFER_SIZE (CONFIG_FILE_LINE_SIZE+3) |
Definition at line 857 of file cmdline.cpp.
#define CONFIG_FILE_LINE_SIZE 2048 |
Definition at line 853 of file cmdline.cpp.
static void clear_args | ( | struct gengetopt_args_info * | args_info | ) | [static] |
Definition at line 138 of file cmdline.cpp.
static void clear_given | ( | struct gengetopt_args_info * | args_info | ) | [static] |
Definition at line 115 of file cmdline.cpp.
int cmdline_parser | ( | int | argc, | |
char *const * | argv, | |||
struct gengetopt_args_info * | args_info | |||
) |
Definition at line 443 of file cmdline.cpp.
int cmdline_parser2 | ( | int | argc, | |
char *const * | argv, | |||
struct gengetopt_args_info * | args_info, | |||
int | override, | |||
int | initialize, | |||
int | check_required | |||
) |
Definition at line 449 of file cmdline.cpp.
int cmdline_parser_configfile | ( | char *const | filename, | |
struct gengetopt_args_info * | args_info, | |||
int | override, | |||
int | initialize, | |||
int | check_required | |||
) |
Definition at line 863 of file cmdline.cpp.
int cmdline_parser_file_save | ( | const char * | filename, | |
struct gengetopt_args_info * | args_info | |||
) |
Definition at line 313 of file cmdline.cpp.
void cmdline_parser_free | ( | struct gengetopt_args_info * | args_info | ) |
Definition at line 420 of file cmdline.cpp.
void cmdline_parser_init | ( | struct gengetopt_args_info * | args_info | ) |
Definition at line 212 of file cmdline.cpp.
int cmdline_parser_internal | ( | int | argc, | |
char *const * | argv, | |||
struct gengetopt_args_info * | args_info, | |||
int | override, | |||
int | initialize, | |||
int | check_required, | |||
const char * | additional_error | |||
) | [static] |
Definition at line 471 of file cmdline.cpp.
void cmdline_parser_print_help | ( | void | ) |
Definition at line 198 of file cmdline.cpp.
void cmdline_parser_print_version | ( | void | ) |
Definition at line 192 of file cmdline.cpp.
static void cmdline_parser_release | ( | struct gengetopt_args_info * | args_info | ) | [static] |
Definition at line 223 of file cmdline.cpp.
int cmdline_parser_required | ( | struct gengetopt_args_info * | args_info, | |
const char * | prog_name | |||
) |
Definition at line 465 of file cmdline.cpp.
static void free_cmd_list | ( | void | ) | [static] |
Definition at line 96 of file cmdline.cpp.
char * gengetopt_strdup | ( | const char * | s | ) | [static] |
Definition at line 429 of file cmdline.cpp.
static void init_args_info | ( | struct gengetopt_args_info * | args_info | ) | [static] |
Definition at line 168 of file cmdline.cpp.
struct line_list* cmd_line_list = 0 [static] |
Definition at line 92 of file cmdline.cpp.
struct line_list* cmd_line_list_tmp = 0 [static] |
Definition at line 93 of file cmdline.cpp.
const char* gengetopt_args_info_help[] |
{ " -h, --help Print help and exit", " -V, --version Print version and exit", "\nBasic options:", " --lanes-conf=STRING Configuration file for lane detection \n (default=`Lanes.conf')", " --stoplines-conf=STRING Configuration file for stopline detection \n (default=`StopLines.conf')", " --no-stoplines Don't detect stop lines (default=on)", " --no-lanes Don't detect lanes (default=off)", " --camera-conf=STRING Configuration file for the camera paramters \n (default=`CameraInfo.conf')", " --list-file=STRING Text file containing a list of images one per \n line", " --list-path=STRING Path where the image files are located, this is \n just appended at the front of each line in \n --list-file (default=`')", " --image-file=STRING The path to an image", "\nDebugging options:", " --wait=INT Number of milliseconds to show the detected \n lanes. Put 0 for infinite i.e. waits for \n keypress. (default=`0')", " --show Show the detected lines (default=off)", " --step Step through each image (needs a keypress) or \n fall through (waits for --wait msecs) \n (default=off)", " --show-lane-numbers Show the lane numbers on the output image \n (default=off)", " --output-suffix=STRING Suffix of images and results \n (default=`_results')", " --save-images Export all images with detected lanes to the by \n appending --output-suffix + '.png' to each \n input image (default=off)", " --save-lanes Export all detected lanes to a text file by \n appending --output-suffix + '.txt' to \n --list-file (default=off)", " --debug Show debugging information and images \n (default=off)", 0 }
Definition at line 54 of file cmdline.cpp.
const char* gengetopt_args_info_purpose = "Detects lanes in street images." |
Definition at line 50 of file cmdline.cpp.
const char* gengetopt_args_info_usage = "Usage: LinePerceptor [OPTIONS]... [FILES]..." |
Definition at line 52 of file cmdline.cpp.
char my2_argv[CONFIG_FILE_LINE_BUFFER_SIZE+1] |
Definition at line 860 of file cmdline.cpp.