|
Revision 1, 1.9 kB
(checked in by heitor.barbieri, 2 years ago)
|
|
Criação do svn para Cisis.
|
| Line | |
|---|
| 1 | #ifndef CIREC_HPP |
|---|
| 2 | #define CIREC_HPP |
|---|
| 3 | |
|---|
| 4 | #include <cidbx.hpp> |
|---|
| 5 | |
|---|
| 6 | class _YOURCLASS RECSTRU // : public CISIS |
|---|
| 7 | { |
|---|
| 8 | public: |
|---|
| 9 | |
|---|
| 10 | LONGX recnbytes; /* nbytes allocated (RECHSIZE not included) */ |
|---|
| 11 | int rectype; /* layout indicator */ |
|---|
| 12 | DBXSTRU *recdbxp; /* ptr dbx */ |
|---|
| 13 | int recrc; /* record rc */ |
|---|
| 14 | #if MULTI |
|---|
| 15 | int reclock; /* mfr read/lock option */ |
|---|
| 16 | int recwlock; /* mfr write/lock option */ |
|---|
| 17 | #endif /* MULTI */ |
|---|
| 18 | int recgdbl; /* mfr read/mfrl lock granted */ |
|---|
| 19 | int recgdbw; /* mfr read/mfrl flag */ |
|---|
| 20 | MFUNION *recmfp; /* ptr to master_recs and .mx unions */ |
|---|
| 21 | CISISX *cisisxp; |
|---|
| 22 | |
|---|
| 23 | RECSTRU (CISISX *cxp); |
|---|
| 24 | |
|---|
| 25 | RECSTRU (CISISX *cxp, |
|---|
| 26 | const RECSTRU &other); // copy constructor |
|---|
| 27 | |
|---|
| 28 | ~RECSTRU (void); |
|---|
| 29 | |
|---|
| 30 | LONGX xrecalloc(LONGX nbytes); |
|---|
| 31 | |
|---|
| 32 | LONGX xrecord(char *dbnamp, |
|---|
| 33 | LONGX mfn); |
|---|
| 34 | |
|---|
| 35 | int xrecread(LONGX mfn); |
|---|
| 36 | |
|---|
| 37 | int xrecxref(LONGX mfn, |
|---|
| 38 | LONGX *comb, |
|---|
| 39 | int *comp); |
|---|
| 40 | |
|---|
| 41 | int xnocc(int tag); |
|---|
| 42 | |
|---|
| 43 | int xfieldn(int tag, |
|---|
| 44 | int occ); |
|---|
| 45 | |
|---|
| 46 | int xfieldx(int tag, |
|---|
| 47 | int occ); |
|---|
| 48 | |
|---|
| 49 | void xmstsetup(char *dbnamp, |
|---|
| 50 | LONGX loadxrf, |
|---|
| 51 | LONGX loadmst); |
|---|
| 52 | |
|---|
| 53 | #if MULTI |
|---|
| 54 | int xrecunlck(int option); |
|---|
| 55 | #endif |
|---|
| 56 | |
|---|
| 57 | //int xrecisis0(char *dbnamp); /* moved to CISISX */ |
|---|
| 58 | |
|---|
| 59 | int xrecupdat(void); |
|---|
| 60 | |
|---|
| 61 | int xrecwrite(RECSTRU *crecp); |
|---|
| 62 | |
|---|
| 63 | int xrecwmast(RECSTRU *crecp, |
|---|
| 64 | LONGX comb, |
|---|
| 65 | int comp, |
|---|
| 66 | int newblk, |
|---|
| 67 | FFI wlen); |
|---|
| 68 | |
|---|
| 69 | int xrecwxref(XRPTR pointer, |
|---|
| 70 | LONGX lastmfn); |
|---|
| 71 | |
|---|
| 72 | char *xfldupdat(char *batchp); |
|---|
| 73 | |
|---|
| 74 | // char *xrecfield(char *areap, |
|---|
| 75 | // LONGX ridx, |
|---|
| 76 | // int tag, |
|---|
| 77 | // int iocc, |
|---|
| 78 | // char *defaultp); |
|---|
| 79 | |
|---|
| 80 | #if HBARB |
|---|
| 81 | RECSTRU *xRecord(char *dbname, |
|---|
| 82 | LONGX mfn); |
|---|
| 83 | |
|---|
| 84 | RECSTRU *xRecAlloc(LONGX nbytes); |
|---|
| 85 | #endif /* HBARB */ |
|---|
| 86 | }; |
|---|
| 87 | |
|---|
| 88 | #endif // CIREC_HPP |
|---|