3 #ifndef __DbFileStorage_H
4 #define __DbFileStorage_H
14 #include <sys/types.h>
17 #include <mix/trans.h>
19 #include <ldb/DbTableTypes.H>
33 DbFile (
int fd,
size_t nFHdrSize,
size_t nLineSize);
46 void load_lines (DbIndex line1, DbIndex line2,
void* pBuf)
const;
52 DbIndex
save_lines (DbIndex& line1, DbIndex& line2,
const void* pBuf);
70 size_t fhdr_size, line_size;
88 void DbFileReadHdr (
int fd,
DbFileHeader* pHdr, ByteOrder& eBO);
93 void DbFileReadDmnAttrs (
int fd, ByteOrder eBO,
unsigned nDmns,
99 DbIndex DbFileReadLines (
int fd, ByteOrder bo, DbIndex line_cnt,
105 void DbFileWriteHdr (
int fd,
const DbFileHeader* pHdr, ByteOrder eBO);
110 void DbFileWriteDmnAttrs (
int fd, ByteOrder eBO,
unsigned nDmns,
116 DbIndex DbFileWriteLines (
int fd, ByteOrder bo, DbIndex line_cnt,
122 void DbTableTransLines (ByteOrder eSrcBO, ByteOrder eDstBO,
123 int nLines,
DbTTDesc& rTTD,
void* pBuf);
void load_lines(DbIndex line1, DbIndex line2, void *pBuf) const
void add_lines(DbIndex lines)
void del_lines(DbIndex lines)
DbIndex save_lines(DbIndex &line1, DbIndex &line2, const void *pBuf)
DbIndex lines_count() const
Definition: DbFileStorage.H:28
Definition: DbTableTypes.H:61
void set_file_sizes(size_t nFHdrSize, size_t nLineSize)
DbFile(int fd, size_t nFHdrSize, size_t nLineSize)