-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathparse.h
135 lines (89 loc) · 3.48 KB
/
parse.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
/* This file has been generated with opag 0.6.4. */
#ifndef HDR_PARSE
#define HDR_PARSE 1
struct options {
/* Set to 1 if option --tries (-r) has been specified. */
unsigned int opt_tries : 1;
/* Set to 1 if option --tours (-s) has been specified. */
unsigned int opt_tours : 1;
/* Set to 1 if option --time (-t) has been specified. */
unsigned int opt_time : 1;
/* Set to 1 if option --tsplibfile (-i) has been specified. */
unsigned int opt_tsplibfile : 1;
/* Set to 1 if option --optimum (-o) has been specified. */
unsigned int opt_optimum : 1;
/* Set to 1 if option --ants (-m) has been specified. */
unsigned int opt_ants : 1;
/* Set to 1 if option --nnants (-g) has been specified. */
unsigned int opt_nnants : 1;
/* Set to 1 if option --alpha (-a) has been specified. */
unsigned int opt_alpha : 1;
/* Set to 1 if option --beta (-b) has been specified. */
unsigned int opt_beta : 1;
/* Set to 1 if option --rho (-e) has been specified. */
unsigned int opt_rho : 1;
/* Set to 1 if option --q0 (-q) has been specified. */
unsigned int opt_q0 : 1;
/* Set to 1 if option --elitistants (-c) has been specified. */
unsigned int opt_elitistants : 1;
/* Set to 1 if option --rasranks (-f) has been specified. */
unsigned int opt_rasranks : 1;
/* Set to 1 if option --nnls (-k) has been specified. */
unsigned int opt_nnls : 1;
/* Set to 1 if option --localsearch (-l) has been specified. */
unsigned int opt_localsearch : 1;
/* Set to 1 if option --dlb (-d) has been specified. */
unsigned int opt_dlb : 1;
/* Set to 1 if option --as (-u) has been specified. */
unsigned int opt_as : 1;
/* Set to 1 if option --eas (-v) has been specified. */
unsigned int opt_eas : 1;
/* Set to 1 if option --ras (-w) has been specified. */
unsigned int opt_ras : 1;
/* Set to 1 if option --mmas (-x) has been specified. */
unsigned int opt_mmas : 1;
/* Set to 1 if option --bwas (-y) has been specified. */
unsigned int opt_bwas : 1;
/* Set to 1 if option --acs (-z) has been specified. */
unsigned int opt_acs : 1;
/* Set to 1 if option --help (-h) has been specified. */
unsigned int opt_help : 1;
/* Argument to option --tries (-r). */
const char *arg_tries;
/* Argument to option --tours (-s). */
const char *arg_tours;
/* Argument to option --time (-t). */
const char *arg_time;
/* Argument to option --tsplibfile (-i). */
const char *arg_tsplibfile;
/* Argument to option --optimum (-o). */
const char *arg_optimum;
/* Argument to option --ants (-m). */
const char *arg_ants;
/* Argument to option --nnants (-g). */
const char *arg_nnants;
/* Argument to option --alpha (-a). */
const char *arg_alpha;
/* Argument to option --beta (-b). */
const char *arg_beta;
/* Argument to option --rho (-e). */
const char *arg_rho;
/* Argument to option --q0 (-q). */
const char *arg_q0;
/* Argument to option --elitistants (-c). */
const char *arg_elitistants;
/* Argument to option --rasranks (-f). */
const char *arg_rasranks;
/* Argument to option --nnls (-k). */
const char *arg_nnls;
/* Argument to option --localsearch (-l). */
const char *arg_localsearch;
/* Argument to option --dlb (-d). */
const char *arg_dlb;
};
/* Parse command line options. Return index of first non-option argument,
or -1 if an error is encountered. */
extern int parse_options (struct options *options, const char *program_name, int argc, char **argv);
extern void check_out_of_range ( double value, double MIN, double MAX, char *optionName );
extern int parse_commandline (int argc, char *argv []);
#endif