Linuxpops  3.01.04
Spectral Anaysis Package for Single Dish Data
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
cactus.h File Reference

Go to the source code of this file.

Macros

#define SZ_LINE   161 /* Length of typical text line. */
 
#define SZ_FNAME   63 /* Maximum file name length. */
 
#define SZ_PATHNAME   127 /* Maximum path name length. */
 
#define EOS   '\0' /* End of string (null). */
 
#define ERR   (-1) /* Error condition return value. */
 
#define OK   0 /* Success condition return value. */
 
#define YES   1 /* Boolean true. */
 
#define NO   0 /* Boolean false. */
 
#define PROCESS_INFO_STATUS   0
 
#define BOF   0 /* Beginning-of-file. */
 
#define BOFL   (-3L)
 
#define EOFL   (-2L)
 
#define MSG_INFO   0 /* Informational message to writemsg() */
 
#define MSG_WARN   1 /* Warning message */
 
#define MSG_ERR   2 /* Error message */
 
#define MSG_FATAL   3 /* Severe error message */
 
#define MSG_DEBUG   4 /* Debugging message */
 
#define MSG_UNKNOWN   5 /* for writemsg use only */
 
#define MSG_NO_MAIL   32 /* add to suppress sending to monitor */
 
#define MSG_BIT_NOMAIL   5
 
#define MSG_NO_PRINT   64 /* add to suppress printing on screen */
 
#define MSG_BIT_NOPRINT   6
 
#define WRITEMSG_EF   14 /* event flag for writemsg */
 
#define MAXMBLINE   2050 /* formerly of ipc.h */
 
#define PI   (M_PI)
 
#define DEG_TO_RAD   (PI/180.0)
 
#define RAD_TO_DEG   (180.0/PI)
 
#define BITTEST(bitno, pattern)   (pattern >> bitno) & 1
 
#define BITSET(bitno, pattern)   pattern = (pattern | (1 << bitno))
 
#define BITCLEAR(bitno, pattern)   pattern = (pattern & ~(1 << bitno))
 
#define EPSILON   (1.192e-7) /* smallest real E s.t. (1.0+E > 1.0) */
 
#define EPSILOND   (2.220d-16) /* double precision epsilon */
 
#define MAX_LONG   2147483647
 
#define INDEFS   (-32767)
 
#define INDEFL   (0x80000001)
 
#define INDEFI   INDEFL
 
#define INDEFR   1.6e38
 
#define INDEFD   1.6e38
 
#define INDEF   INDEFR
 
#define PROTOTYPES   1 /* Use ANSI function prototypes (1=yes, 0=no)? */
 
#define min(a, b)   (((a)<(b))?(a):(b))
 
#define max(a, b)   (((a)>(b))?(a):(b))
 
#define mod(a, b)   ((a)-((a)/(b))*(b))
 
#define MAXRECEIVER   20 /* # of sets receiver specific pointing const */
 
#define LEFT_FLANGE   0
 
#define RIGHT_FLANGE   1
 
#define OPTICALBAY   10 /* Optical telescope "bay" */
 
#define N_IF_CHANS   4
 

Functions

int getntok ()
 
char * felem ()
 
char * strcmprs ()
 
double ctod ()
 
long ctoma ()
 
char * strlwr ()
 
char * strupr ()
 
char * strbin ()
 
int writemsg ()
 
int getbits ()
 
int chkbit ()
 

Variables

char * cactus_home
 
char * cactus_global
 
char * cactus_mailboxdefs
 
char * cactus_wind_memory
 
char * cactus_isc_memory
 

Macro Definition Documentation

#define BITCLEAR (   bitno,
  pattern 
)    pattern = (pattern & ~(1 << bitno))

Definition at line 89 of file cactus.h.

#define BITSET (   bitno,
  pattern 
)    pattern = (pattern | (1 << bitno))

Definition at line 88 of file cactus.h.

#define BITTEST (   bitno,
  pattern 
)    (pattern >> bitno) & 1

Definition at line 87 of file cactus.h.

#define BOF   0 /* Beginning-of-file. */

Definition at line 25 of file cactus.h.

#define BOFL   (-3L)

Definition at line 26 of file cactus.h.

#define DEG_TO_RAD   (PI/180.0)

Definition at line 48 of file cactus.h.

#define EOFL   (-2L)

Definition at line 27 of file cactus.h.

#define EOS   '\0' /* End of string (null). */

Definition at line 17 of file cactus.h.

#define EPSILON   (1.192e-7) /* smallest real E s.t. (1.0+E > 1.0) */

Definition at line 97 of file cactus.h.

#define EPSILOND   (2.220d-16) /* double precision epsilon */

Definition at line 98 of file cactus.h.

#define ERR   (-1) /* Error condition return value. */

Definition at line 18 of file cactus.h.

#define INDEF   INDEFR

Definition at line 108 of file cactus.h.

#define INDEFD   1.6e38

Definition at line 107 of file cactus.h.

#define INDEFI   INDEFL

Definition at line 105 of file cactus.h.

#define INDEFL   (0x80000001)

Definition at line 104 of file cactus.h.

#define INDEFR   1.6e38

Definition at line 106 of file cactus.h.

#define INDEFS   (-32767)

Definition at line 103 of file cactus.h.

#define LEFT_FLANGE   0

Definition at line 119 of file cactus.h.

#define max (   a,
  b 
)    (((a)>(b))?(a):(b))

Definition at line 115 of file cactus.h.

#define MAX_LONG   2147483647

Definition at line 99 of file cactus.h.

#define MAXMBLINE   2050 /* formerly of ipc.h */

Definition at line 42 of file cactus.h.

#define MAXRECEIVER   20 /* # of sets receiver specific pointing const */

Definition at line 118 of file cactus.h.

#define min (   a,
  b 
)    (((a)<(b))?(a):(b))

Definition at line 114 of file cactus.h.

#define mod (   a,
  b 
)    ((a)-((a)/(b))*(b))

Definition at line 116 of file cactus.h.

#define MSG_BIT_NOMAIL   5

Definition at line 37 of file cactus.h.

#define MSG_BIT_NOPRINT   6

Definition at line 39 of file cactus.h.

#define MSG_DEBUG   4 /* Debugging message */

Definition at line 33 of file cactus.h.

#define MSG_ERR   2 /* Error message */

Definition at line 31 of file cactus.h.

#define MSG_FATAL   3 /* Severe error message */

Definition at line 32 of file cactus.h.

#define MSG_INFO   0 /* Informational message to writemsg() */

Definition at line 29 of file cactus.h.

#define MSG_NO_MAIL   32 /* add to suppress sending to monitor */

Definition at line 36 of file cactus.h.

#define MSG_NO_PRINT   64 /* add to suppress printing on screen */

Definition at line 38 of file cactus.h.

#define MSG_UNKNOWN   5 /* for writemsg use only */

Definition at line 34 of file cactus.h.

#define MSG_WARN   1 /* Warning message */

Definition at line 30 of file cactus.h.

#define N_IF_CHANS   4

Definition at line 124 of file cactus.h.

#define NO   0 /* Boolean false. */

Definition at line 21 of file cactus.h.

#define OK   0 /* Success condition return value. */

Definition at line 19 of file cactus.h.

#define OPTICALBAY   10 /* Optical telescope "bay" */

Definition at line 122 of file cactus.h.

#define PI   (M_PI)

Definition at line 45 of file cactus.h.

#define PROCESS_INFO_STATUS   0

Definition at line 23 of file cactus.h.

#define PROTOTYPES   1 /* Use ANSI function prototypes (1=yes, 0=no)? */

Definition at line 110 of file cactus.h.

#define RAD_TO_DEG   (180.0/PI)

Definition at line 49 of file cactus.h.

#define RIGHT_FLANGE   1

Definition at line 120 of file cactus.h.

#define SZ_FNAME   63 /* Maximum file name length. */

Definition at line 15 of file cactus.h.

#define SZ_LINE   161 /* Length of typical text line. */

Definition at line 14 of file cactus.h.

#define SZ_PATHNAME   127 /* Maximum path name length. */

Definition at line 16 of file cactus.h.

#define WRITEMSG_EF   14 /* event flag for writemsg */

Definition at line 41 of file cactus.h.

#define YES   1 /* Boolean true. */

Definition at line 20 of file cactus.h.

Function Documentation

int chkbit ( )
double ctod ( )
long ctoma ( )
char* felem ( )
int getbits ( )
int getntok ( )
char* strbin ( )
char* strcmprs ( )
char* strlwr ( )
char* strupr ( )
int writemsg ( )

Variable Documentation

char* cactus_global

Definition at line 54 of file cactus.h.

char* cactus_home

Definition at line 53 of file cactus.h.

char* cactus_isc_memory

Definition at line 57 of file cactus.h.

char* cactus_mailboxdefs

Definition at line 55 of file cactus.h.

char* cactus_wind_memory

Definition at line 56 of file cactus.h.