Definitions of constants and datatypes that are publically used in COSTA. More...
#include <stdlib.h>
#include <math.h>
#include "cta_system.h"
Go to the source code of this file.
Defines | |
#define | CTA_HANDLE (-1) |
#define | CTA_INTERFACE (-2) |
#define | CTA_FUNCTION (-3) |
#define | CTA_VECTOR (-4) |
#define | CTA_VECTORCLASS (-5) |
#define | CTA_TREEVECTOR (-6) |
#define | CTA_MATRIXCLASS (-7) |
#define | CTA_MATRIX (-8) |
#define | CTA_COVMATCLASS (-9) |
#define | CTA_COVMAT (-10) |
#define | CTA_INTPOL (-11) |
#define | CTA_OBS (-12) |
#define | CTA_MODELCLASS (-13) |
#define | CTA_MODEL (-14) |
#define | CTA_TIME (-15) |
#define | CTA_SOBS (-16) |
#define | CTA_SOBSCLASS (-17) |
#define | CTA_OBSDESCR (-18) |
#define | CTA_OBSDESCRCLASS (CTA_SOBSCLASS) |
#define | CTA_METHODCLASS (-19) |
#define | CTA_METHOD (-20) |
#define | CTA_TREE (-21) |
#define | CTA_PACK (-22) |
#define | CTA_DATABLOCK (-23) |
#define | CTA_METAINFO (-24) |
#define | CTA_METAINFOCLASS (-25) |
#define | CTA_RELTABLE (-26) |
#define | CTA_SUBTREEVECTOR (-27) |
#define | CTA_STRING (-28) |
#define | CTA_FILE (-29) |
#define | CTA_ARRAY (-30) |
#define | CTA_VOID (-100) |
#define | CTA_INTEGER (-101) |
#define | CTA_REAL (-102) |
#define | CTA_DOUBLE (-103) |
#define | CTA_FSTRING (-104) |
#define | CTA_CSTRING (-105) |
#define | CTA_1DINTEGER (-201) |
#define | CTA_1DREAL (-202) |
#define | CTA_1DDOUBLE (-203) |
#define | CTA_1DFSTRING (-204) |
#define | CTA_1DCSTRING (-205) |
#define | CTA_DEFAULT (0) |
#define | CTA_NULL (0) |
#define | CTA_FALSE (0) |
#define | CTA_TRUE (1) |
#define | BOOL int |
#define | TRUE (1) |
#define | FALSE (0) |
#define | M_PI (3.14159265358979) |
#define | M_EPS (2.22044604925031e-16) |
#define | CTA_STRLEN_TAG (80) |
#define | CTA_STRLEN_NAME (80) |
#define | CTA_FLUSH_ALWAYS ( 1) |
#define | CTA_F77_STDOUT ( 6) |
Typedefs | |
typedef int | CTA_Datatype |
typedef void | CTA_Function () |
Functions | |
CTAEXPORT int | CTA_SizeOf (CTA_Datatype datatype, int *size) |
Get the result of the C-function sizeof for a COSTA datatype. |
Definitions of constants and datatypes that are publically used in COSTA.
Definition in file cta_datatypes.h.
#define BOOL int |
Datatype for boolians
Definition at line 147 of file cta_datatypes.h.
#define CTA_1DCSTRING (-205) |
CTA_Datatypes constant: array of C-strings
Definition at line 132 of file cta_datatypes.h.
#define CTA_1DDOUBLE (-203) |
CTA_Datatypes constant: double precision real array
Definition at line 128 of file cta_datatypes.h.
#define CTA_1DFSTRING (-204) |
CTA_Datatypes constant: array of FORTRAN-strings
Definition at line 130 of file cta_datatypes.h.
#define CTA_1DINTEGER (-201) |
CTA_Datatypes constant: integer array
Definition at line 124 of file cta_datatypes.h.
#define CTA_1DREAL (-202) |
CTA_Datatypes constant: single precision real array
Definition at line 126 of file cta_datatypes.h.
#define CTA_ARRAY (-30) |
CTA_Datatypes constant: COSTA-array
Definition at line 104 of file cta_datatypes.h.
#define CTA_COVMAT (-10) |
A handle of a COSTA Covariance matrix
Definition at line 62 of file cta_datatypes.h.
#define CTA_COVMATCLASS (-9) |
A handle of a COSTA Covariance matrix class
Definition at line 60 of file cta_datatypes.h.
#define CTA_CSTRING (-105) |
CTA_Datatypes constant: C-string
Definition at line 120 of file cta_datatypes.h.
#define CTA_DATABLOCK (-23) |
A handle to an unknown data object
Definition at line 90 of file cta_datatypes.h.
#define CTA_DEFAULT (0) |
COSTA flag/constant: Default
Definition at line 137 of file cta_datatypes.h.
#define CTA_DOUBLE (-103) |
CTA_Datatypes constant: double precision real (scalar)
Definition at line 116 of file cta_datatypes.h.
#define CTA_F77_STDOUT ( 6) |
FORTRAN file unit for standard output
Definition at line 187 of file cta_datatypes.h.
#define CTA_FALSE (0) |
COSTA flag/constant: FALSE
Definition at line 141 of file cta_datatypes.h.
#define CTA_FILE (-29) |
CTA_Datatypes constant: COSTA-file
Definition at line 102 of file cta_datatypes.h.
#define CTA_FLUSH_ALWAYS ( 1) |
flush stdout and stderr in a number of the COSTA methods. useful for debugging
Definition at line 184 of file cta_datatypes.h.
#define CTA_FSTRING (-104) |
CTA_Datatypes constant: FORTRAN-string
Definition at line 118 of file cta_datatypes.h.
#define CTA_FUNCTION (-3) |
A handle of a COSTA function object
Definition at line 48 of file cta_datatypes.h.
#define CTA_HANDLE (-1) |
handle to a COSTA object
Definition at line 44 of file cta_datatypes.h.
#define CTA_INTEGER (-101) |
CTA_Datatypes constant: integer (scalar)
Definition at line 112 of file cta_datatypes.h.
#define CTA_INTERFACE (-2) |
A handle of a COSTA interface object
Definition at line 46 of file cta_datatypes.h.
#define CTA_INTPOL (-11) |
A handle of a COSTA Interpolation matrix
Definition at line 64 of file cta_datatypes.h.
#define CTA_MATRIX (-8) |
A handle of a COSTA Matrix
Definition at line 58 of file cta_datatypes.h.
#define CTA_MATRIXCLASS (-7) |
A handle of a COSTA Matrix class
Definition at line 56 of file cta_datatypes.h.
#define CTA_METAINFO (-24) |
A handle of a COSTA meta information object
Definition at line 92 of file cta_datatypes.h.
#define CTA_METAINFOCLASS (-25) |
A handle of a COSTA meta information object
Definition at line 94 of file cta_datatypes.h.
#define CTA_METHOD (-20) |
A handle of a COSTA Method object
Definition at line 84 of file cta_datatypes.h.
#define CTA_METHODCLASS (-19) |
A handle of a COSTA Method object
Definition at line 82 of file cta_datatypes.h.
#define CTA_MODEL (-14) |
A handle of a COSTA Model
Definition at line 70 of file cta_datatypes.h.
#define CTA_MODELCLASS (-13) |
A handle of a COSTA Model class
Definition at line 68 of file cta_datatypes.h.
#define CTA_NULL (0) |
COSTA flag/constant: NULL-Handle
Definition at line 139 of file cta_datatypes.h.
#define CTA_OBS (-12) |
A handle of a COSTA observation component
Definition at line 66 of file cta_datatypes.h.
#define CTA_OBSDESCR (-18) |
A handle of a COSTA ObserverDescription object
Definition at line 78 of file cta_datatypes.h.
#define CTA_OBSDESCRCLASS (CTA_SOBSCLASS) |
A handle of a COSTA ObserverDescription class
Definition at line 80 of file cta_datatypes.h.
#define CTA_PACK (-22) |
A handle of a COSTA Pack-object
Definition at line 88 of file cta_datatypes.h.
#define CTA_REAL (-102) |
CTA_Datatypes constant: single precision real (scalar)
Definition at line 114 of file cta_datatypes.h.
#define CTA_RELTABLE (-26) |
A handle of a COSTA relation table object
Definition at line 96 of file cta_datatypes.h.
#define CTA_SOBS (-16) |
A handle of a COSTA StochObserver object
Definition at line 74 of file cta_datatypes.h.
#define CTA_SOBSCLASS (-17) |
A handle of a COSTA StochObserver class
Definition at line 76 of file cta_datatypes.h.
#define CTA_STRING (-28) |
CTA_Datatypes constant: COSTA-string
Definition at line 100 of file cta_datatypes.h.
#define CTA_STRLEN_NAME (80) |
Definition at line 176 of file cta_datatypes.h.
#define CTA_STRLEN_TAG (80) |
Definition at line 175 of file cta_datatypes.h.
#define CTA_SUBTREEVECTOR (-27) |
An explicit subtreevector (for XML-use)
Definition at line 98 of file cta_datatypes.h.
#define CTA_TIME (-15) |
A handle of a COSTA Time
Definition at line 72 of file cta_datatypes.h.
#define CTA_TREE (-21) |
A handle of a COSTA tree object
Definition at line 86 of file cta_datatypes.h.
#define CTA_TREEVECTOR (-6) |
A handle of a COSTA (sub) treevector
Definition at line 54 of file cta_datatypes.h.
#define CTA_TRUE (1) |
COSTA flag/constant: TRUE
Definition at line 143 of file cta_datatypes.h.
#define CTA_VECTOR (-4) |
A handle of a COSTA vector object
Definition at line 50 of file cta_datatypes.h.
#define CTA_VECTORCLASS (-5) |
A handle of a COSTA Vector class
Definition at line 52 of file cta_datatypes.h.
#define CTA_VOID (-100) |
COSTA CTA_Datatypes: arbitrary void
Definition at line 110 of file cta_datatypes.h.
#define FALSE (0) |
Boolean value of FALSE
Definition at line 154 of file cta_datatypes.h.
#define M_EPS (2.22044604925031e-16) |
The machine precision. More precisely, `eps' is the largest relative spacing between any two adjacent numbers in the machine's floating point system. This number is obviously system-dependent. On machines that support 64 bit IEEE floating point arithmetic, `eps' is approximately 2.2204e-16. This variable is not set automatically (yet)
Definition at line 172 of file cta_datatypes.h.
#define M_PI (3.14159265358979) |
constant pi
Definition at line 161 of file cta_datatypes.h.
#define TRUE (1) |
Boolean value of TRUE
Definition at line 150 of file cta_datatypes.h.
typedef int CTA_Datatype |
The datatpe of a COSTA Datatype
Definition at line 33 of file cta_datatypes.h.
typedef void CTA_Function() |
A COSTA-function CTA_Function *function is a void-pointer. If it points to an existing function, it may be used to call that function, simply by retval = function(arguments);
Definition at line 41 of file cta_datatypes.h.
CTAEXPORT int CTA_SizeOf | ( | CTA_Datatype | datatype, | |
int * | size | |||
) |
Get the result of the C-function sizeof for a COSTA datatype.
datatype | I COSTA data type | |
size | O receives result sizeof-function |