![]() |
CMGDK r49-rc2
|
#include <HacTemplate.H>
公有成员 | |
HacTemplate () | |
virtual | ~HacTemplate () |
bool | FindFile (const wchar_t *) |
查找一个文件 | |
bool | FindFile (void *, const wchar_t *) |
查找一个文件 | |
virtual bool | LoadFilePart (void *, uint, uint, void *)=0 |
virtual Stream * | LoadFileFrom (void *, const wchar_t *, bool=false)=0 |
加载一个文件到流 | |
virtual bool | LoadFileFrom (void *, const wchar_t *, void **, int *)=0 |
加载一个文件到指定内存块 | |
Stream * | LoadFile (const wchar_t *, bool=false) |
加载一个文件到流 | |
bool | LoadFile (const wchar_t *, void **, int *) |
加载一个文件到指定内存块 | |
void * | GetFolder (const wchar_t *) |
取得一个目录 | |
int | GetFileCount (void *) |
取得目录下的文件数量 | |
bool | GetFileInfo (void *, int, WideString &, int &) |
取得文件信息 | |
void * | GetFile (void *, const wchar_t *, int *) |
void * | GetFile (const wchar_t *, int *) |
保护成员 | |
virtual void | LoadFolder (FileStream *, HacFolder< F > *)=0 |
保护属性 | |
HacFolder< F > * | RootFolder |
wchar_t | lower_filename [1024] |
hgl::HacTemplate< F >::HacTemplate | ( | ) | [inline] |
virtual hgl::HacTemplate< F >::~HacTemplate | ( | ) | [inline, virtual] |
bool hgl::HacTemplate< F >::FindFile | ( | const wchar_t * | filename | ) | [virtual] |
bool hgl::HacTemplate< F >::FindFile | ( | void * | path_pointer, |
const wchar_t * | filename | ||
) | [virtual] |
void * hgl::HacTemplate< F >::GetFile | ( | const wchar_t * | filename, |
int * | filelength | ||
) | [virtual] |
void * hgl::HacTemplate< F >::GetFile | ( | void * | path_pointer, |
const wchar_t * | filename, | ||
int * | filelength | ||
) | [virtual] |
int hgl::HacTemplate< F >::GetFileCount | ( | void * | path_pointer | ) | [virtual] |
bool hgl::HacTemplate< F >::GetFileInfo | ( | void * | path_pointer, |
int | index, | ||
WideString & | name, | ||
int & | size | ||
) | [virtual] |
取得文件信息
取得目录内指定的第index个文件的信息
path_pointer | 目录指针 |
index | 要取的文件索引 |
name | 取出的文件名 |
size | 取出的文件长度 |
实现了hgl::HAC。
void * hgl::HacTemplate< F >::GetFolder | ( | const wchar_t * | pathname | ) | [virtual] |
bool hgl::HacTemplate< F >::LoadFile | ( | const wchar_t * | filename, |
void ** | data, | ||
int * | size | ||
) | [virtual] |
加载一个文件到指定内存块
加载一个文件到内存中
filename | 要加载的文件名称 |
data | 要用来保存数据的内存块 |
size | 内存块的大小,以及加载成功后文件的大小 |
实现了hgl::HAC。
Stream * hgl::HacTemplate< F >::LoadFile | ( | const wchar_t * | filename, |
bool | load_to_memory = false |
||
) | [virtual] |
加载一个文件到流
加载一个文件到流中,并返回这个流
filename | 要加载的文件名称 |
load_to_memory | 是否加载到内存 |
实现了hgl::HAC。
virtual Stream* hgl::HacTemplate< F >::LoadFileFrom | ( | void * | path_pointer, |
const wchar_t * | filename, | ||
bool | load_to_memory = false |
||
) | [pure virtual] |
virtual bool hgl::HacTemplate< F >::LoadFileFrom | ( | void * | path_pointer, |
const wchar_t * | filename, | ||
void ** | data, | ||
int * | size | ||
) | [pure virtual] |
virtual bool hgl::HacTemplate< F >::LoadFilePart | ( | void * | , |
uint | , | ||
uint | , | ||
void * | |||
) | [pure virtual] |
virtual void hgl::HacTemplate< F >::LoadFolder | ( | FileStream * | , |
HacFolder< F > * | |||
) | [protected, pure virtual] |
wchar_t hgl::HacTemplate< F >::lower_filename[1024] [protected] |
HacFolder<F>* hgl::HacTemplate< F >::RootFolder [protected] |