Linuxpops  3.01.04
Spectral Anaysis Package for Single Dish Data
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
commands.h
Go to the documentation of this file.
1 #ifndef COMMANDS_H
2 #define COMMANDS_H
3 
4 struct COMMANDS {
5  char *cmd; /* Command */
6  int ntoken; /* Expected number of tokens/args */
7  char *args; /* Help string showing possible args */
8  int (*fctn)(); /* Function to execute */
9  char *fctnStr; /* Function String */
10  int mode; /* SPEC, CONT. ALL */
11  char *help; /* Help string */
12  int (*post)(); /* Function to execute after command is executed */
13 };
14 
15 
16 struct CALIBRATOR {
17  char date[80];
18  int band;
19  double ra;
20  double dec;
21  double jk;
22  double errBar;
23  double freq;
24  char name[128];
25 };
26 
27 #define MAX_DYN_VARS 2048
28 
29 #define DYN_TYPE_UNUSED 0
30 #define DYN_TYPE_INT 1
31 #define DYN_TYPE_DOUBLE 2
32 
33 /* The number of protected dynamic variables at the top of the stack */
34 #define DYN_VARIBLE_PROTECTED 6
35 
37  char name[80];
38  double *dval;
39  int *ival;
40  int type;
41  int (*fctn)();
42 };
43 
44 
45 #endif
char * args
Definition: commands.h:7
char * cmd
Definition: commands.h:5
char name[128]
Definition: commands.h:24
int ntoken
Definition: commands.h:6
char name[80]
Definition: commands.h:37
double * dval
Definition: commands.h:38
char * help
Definition: commands.h:11
double freq
Definition: commands.h:23
double errBar
Definition: commands.h:22
int(* fctn)()
Definition: commands.h:41
int mode
Definition: commands.h:10
int(* fctn)()
Definition: commands.h:8
double jk
Definition: commands.h:21
char * fctnStr
Definition: commands.h:9
int(* post)()
Definition: commands.h:12
int band
Definition: commands.h:18
double ra
Definition: commands.h:19
double dec
Definition: commands.h:20
char date[80]
Definition: commands.h:17