#include <ORESX.H>
Inheritance diagram for ResourceIdx:
Definition at line 24 of file ORESX.H.
Definition at line 26 of file ORESX.H.
[inline]
Definition at line 45 of file ORESX.H.
References init_flag.
Definition at line 46 of file ORESX.H.
References deinit().
Definition at line 48 of file ORESX.H.
References init(), and init_flag.
Definition at line 361 of file ORESX.CPP.
References index_buf, ResIndex::name, NULL, and rec_count.
Referenced by SECtrl::get_effect_name().
Definition at line 96 of file ORESX.CPP.
References mem_del, and NULL.
Referenced by GameSet::close_set(), SpriteInfo::free_bitmap_res(), and ~ResourceIdx().
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.
<int> indexId = index of the data pointing to the resource file
Return : <char*> data pointer
Definition at line 215 of file ORESX.CPP.
Referenced by ImageRes::put_back(), ImageRes::put_front(), and ImageRes::put_to_buf().
Position the file pointer to the beginning of the data and return the file stream
Syntax : get_file(char* dataName)
<char*> dataName = name of the data going to read <int&> dataSIze = for returning the data size of the resource record
Return : <FILE*> the file stream NULL if the record has not index to data
Definition at line 317 of file ORESX.CPP.
Definition at line 282 of file ORESX.CPP.
Referenced by ImageRes::put_large(), and ImageRes::put_to_buf().
Get the index of the data in the resource file, and later can retrieve the data using this index by calling get_data()
<char*> dataName = name of the data going to get_index
Return : <int> index of the data in the resource file 0 if the name is not found in the resource file
Definition at line 189 of file ORESX.CPP.
Referenced by SECtrl::search_effect_id().
<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 (default:0) [int] useCommonBuf = whether use the common buffer to store the data or not (default:0)
Definition at line 42 of file ORESX.CPP.
References NULL.
Referenced by SECtrl::init(), GameSet::open_set(), and ResourceIdx().
Definition at line 54 of file ORESX.H.
Syntax : read(char* dataName)
<char*> dataName = name of the data going to read
Return : <char*> data pointer NULL if the record has not index to data
Definition at line 166 of file ORESX.CPP.
Referenced by ImageRes::get_ptr(), GameSet::open_db(), ImageRes::put_back(), ImageRes::put_front(), and ImageRes::put_join().
Read a block of data into the buffer specified by the user.
<char*> dataName = name of the data going to read <char*> userBuf = pointer to the user buffer <int> userBufSize = size of the user buffer. [int] userStartReadPos = the starting position of the data to be read into the buffer. (default:0)
Return : <int> 1 - succeeded 0 - failed
Definition at line 131 of file ORESX.CPP.
Cancel using custom user data buffer.
Definition at line 353 of file ORESX.CPP.
Set custom user data buffer. When it is set, data will be loaded into the user buffer instead of ResourceIdx's own buffer.
<char*> userDataBuf - pointer user data buffer <int> bufSize - size of the data bufferr <int> userStartReadPos - the starting position of the data to be read into the buffer.
Definition at line 341 of file ORESX.CPP.
Definition at line 38 of file ORESX.H.
Definition at line 31 of file ORESX.H.
Definition at line 32 of file ORESX.H.
Definition at line 30 of file ORESX.H.
Referenced by data_name().
Definition at line 34 of file ORESX.H.
Referenced by is_inited(), and ResourceIdx().
Definition at line 35 of file ORESX.H.
Definition at line 37 of file ORESX.H.
Definition at line 36 of file ORESX.H.
Definition at line 40 of file ORESX.H.
Definition at line 41 of file ORESX.H.
Definition at line 42 of file ORESX.H.