-
Notifications
You must be signed in to change notification settings - Fork 3
/
cirec.hpp
88 lines (63 loc) · 1.91 KB
/
cirec.hpp
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
#ifndef CIREC_HPP
#define CIREC_HPP
#include <cidbx.hpp>
class _YOURCLASS RECSTRU // : public CISIS
{
public:
LONGX recnbytes; /* nbytes allocated (RECHSIZE not included) */
int rectype; /* layout indicator */
DBXSTRU *recdbxp; /* ptr dbx */
int recrc; /* record rc */
#if MULTI
int reclock; /* mfr read/lock option */
int recwlock; /* mfr write/lock option */
#endif /* MULTI */
int recgdbl; /* mfr read/mfrl lock granted */
int recgdbw; /* mfr read/mfrl flag */
MFUNION *recmfp; /* ptr to master_recs and .mx unions */
CISISX *cisisxp;
RECSTRU (CISISX *cxp);
RECSTRU (CISISX *cxp,
const RECSTRU &other); // copy constructor
~RECSTRU (void);
LONGX xrecalloc(LONGX nbytes);
LONGX xrecord(char *dbnamp,
LONGX mfn);
int xrecread(LONGX mfn);
int xrecxref(LONGX mfn,
LONGX *comb,
int *comp);
int xnocc(int tag);
int xfieldn(int tag,
int occ);
int xfieldx(int tag,
int occ);
void xmstsetup(char *dbnamp,
LONGX loadxrf,
LONGX loadmst);
#if MULTI
int xrecunlck(int option);
#endif
//int xrecisis0(char *dbnamp); /* moved to CISISX */
int xrecupdat(void);
int xrecwrite(RECSTRU *crecp);
int xrecwmast(RECSTRU *crecp,
LONGX comb,
int comp,
int newblk,
FFI wlen);
int xrecwxref(XRPTR pointer,
LONGX lastmfn);
char *xfldupdat(char *batchp);
// char *xrecfield(char *areap,
// LONGX ridx,
// int tag,
// int iocc,
// char *defaultp);
#if HBARB
RECSTRU *xRecord(char *dbname,
LONGX mfn);
RECSTRU *xRecAlloc(LONGX nbytes);
#endif /* HBARB */
};
#endif // CIREC_HPP