#include <ORESDB.H>
Inheritance diagram for ResourceDb:
Definition at line 18 of file ORESDB.H.
[inline]
Definition at line 32 of file ORESDB.H.
References init_flag.
Definition at line 33 of file ORESDB.H.
References deinit().
Definition at line 35 of file ORESDB.H.
References init(), and init_flag.
Definition at line 53 of file ORESDB.CPP.
References mem_del, and NULL.
Referenced by ~ResourceDb().
Position the file pointer to the beginning of the data and return the file stream
Syntax : get_file()
Return : <FILE*> the file stream NULL if the record has not index to data
Definition at line 123 of file ORESDB.CPP.
References NULL.
<char*> resName = name of the resource file (e.g. "GIF.RES") <Database*> dbObj = name of the database (e.g. Database db("PFILE.DBF")) <int> indexOffset = offset of the index field [int] useCommonBuf = whether use the vga common buffer to store the data or not (default:0)
Definition at line 29 of file ORESDB.CPP.
Referenced by ResourceDb().
If the whole database has been read into memory, then only no need to tell ResourceDb the database name and the index offset
<char*> resName = name of the resource file (e.g. "GIF.RES") <int> readAll = whether read all data into the buffer or read one each time [int] useCommonBuf = whether use the vga common buffer to store the data or not (default:0)
Definition at line 155 of file ORESDB.CPP.
Read in data from the resource file and store in an the buffer of this class
The index field of the current record in the database object is used to locate the data in the resource file.
Syntax : read(int recNo)
[int] recNo = the record no. in the database. (default : current record no.)
Return : <char*> data pointer NULL if the record has not index to data
Definition at line 84 of file ORESDB.CPP.
References COMMON_DATA_BUF_SIZE, and NULL.
If ResourceDb is initialized using init_imported(), then use read_imported to read the record
<long> offset = offset to the data in the resource file
Definition at line 198 of file ORESDB.CPP.
Definition at line 20 of file ORESDB.H.