forked from scottransom/presto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtoas2dat_cmd.h
49 lines (42 loc) · 1.22 KB
/
toas2dat_cmd.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
#ifndef __toas2dat_cmd__
#define __toas2dat_cmd__
/*****
command line parser interface -- generated by clig
(http://wsd.iitb.fhg.de/~geg/clighome/)
The command line parser `clig':
(C) 1995-2004 Harald Kirsch ([email protected])
*****/
typedef struct s_Cmdline {
/***** -n: The number of bins in the output time series */
char numoutP;
long numout;
int numoutC;
/***** -dt: Time interval in seconds for output time bins */
char dtP;
double dt;
int dtC;
/***** -t0: Time for the start of bin 0 (same units as the TOAs) */
char t0P;
double t0;
int t0C;
/***** -o: Name of the output time series file */
char outfileP;
char* outfile;
int outfileC;
/***** -text: TOAs are ASCII text (default is binary double) */
char textP;
/***** -float: TOAs are binary floats (default is binary double) */
char floatP;
/***** -sec: TOA unit is seconds (default is days) */
char secP;
/***** uninterpreted command line parameters */
int argc;
/*@null*/char **argv;
/***** the whole command line concatenated */
char *full_cmd_line;
} Cmdline;
extern char *Program;
extern void usage(void);
extern /*@shared*/Cmdline *parseCmdline(int argc, char **argv);
extern void showOptionValues(void);
#endif