12 #include <mix/Types.h>
13 #include <mix/General.h>
24 #define TV_FLOAT REAL_8
25 #define TV_CHAR CHAR_1
26 #define TV_DBPTR DBTPTR
27 #define TV_NO_TYPE __NO_TYPE__
30 #define DB_DMAX DB_IDENT_LEN
31 #define DB_TMAX DB_IDENT_LEN
38 #define DB_PREFIX_LEN 3
39 #define DB_TABLE_LEN DB_IDENT_LEN
40 #define DB_WELL_LEN DB_IDENT_LEN
42 #define DB_SP_VAL 9999
44 #define DB_MOD_VAL 9999
45 #define DB_FILE_NAME_LEN (DB_PREFIX_LEN + 1 + \
52 #define szDBprefix "VSP"
53 #define szDBseparator "."
54 #define cDBseparator '.'
71 char table[DB_TABLE_LEN+1];
72 char well[DB_WELL_LEN+1];
94 #define DB_NEW_ITEM (-1)
106 char project[PROJECT_LEN+1];
116 #define DB_TABLE (1<<0)
117 #define DB_WELL (1<<1)
119 #define DB_MOD (1<<3)
120 #define DB_LIST (1<<4)
123 #define DB_PARSE_ERROR (1<<5)
126 #define DBM_LIST (DB_LIST|DB_TABLE)
127 #define DBM_WELL (DB_TABLE|DB_WELL|DB_MOD)
128 #define DBM_WELL_SP (DB_TABLE|DB_WELL|DB_SP|DB_MOD)
129 #define DBM_ALL (DB_LIST|DB_TABLE|DB_WELL|DB_SP|DB_MOD)
132 #define IsDBmod(x) (!!((x)&DB_MOD))
133 #define IsDBsp(x) (!!((x)&DB_SP))
134 #define IsDBwell(x) (!!((x)&DB_WELL))
135 #define IsDBtable(x) (!!((x)&DB_TABLE))
136 #define IsDBlist(x) (!!((x)&DB_LIST))
137 #define IsDBparseError(x) (!!((x)&DB_PARSE_ERROR))
138 #define IsDBempty(x) (!!((x)&DBM_WELL_SP))
154 DbNoHistory = (1 << 5),
156 DbSmallPreread = (1 << 6),
159 DbReadAtOnce = (1 << 7)
166 #define DbAccessMode(x) ((DbAccess)((x)&DbAccessMask))
169 #define DbAccessFlags(x) ((DbAccess)((x)&~DbAccessMask))
172 #define DbAccessMix(m,f) ((DbAccess)(DbAccessMode(m)|(f)))
193 int dbParseFileName (
const char* szFileName,
202 char szFileName[DB_FILE_NAME_LEN+1]);
int mod
Definition: dbnamedefs.h:74
Definition: dbnamedefs.h:67
int sp
Definition: dbnamedefs.h:73
Definition: dbnamedefs.h:103
int mask
Definition: dbnamedefs.h:69
Definition: dbnamedefs.h:85