00001 #ifndef __FILELIST_H__
00002 #define __FILELIST_H__
00003
00004
00005
00006
00007
00008
00009
00010
00011 #include "configure.h"
00012 #include "dllist.h"
00013
00014
00015
00016
00017 DefineDll
00018 (
00019 FileList ,
00020 vSTRING fileName;
00021 vINT fileNumber; ,
00022 vINT pad;
00023 );
00024
00025
00026 typedef enum
00027 {
00028 vFILE_LIST_NO_ERROR,
00029 vFILE_LIST_ERROR_NO_FILES,
00030 vFILE_LIST_ERROR_INVALID_SPEC,
00031 vFILE_LIST_ERROR_OUT_OF_MEMORY
00032 }
00033 vFILE_LIST_ERROR_CODE;
00034
00035
00036 vFILE_LIST_ERROR_CODE InitFileList( FileList *fileList );
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058 vFILE_LIST_ERROR_CODE GetFileList( FileList *fileList, vSTRING sampleFileName );
00059
00060
00061
00062
00063 vVOID SplitFileListName( vSTRING fileName, vSTRING prefix, vSTRING extension );
00064
00065
00066
00067
00068 vBOOL ParseFileListNumber( vSTRING fileName, vSIZE prefixLength, vINT *fileNumber );
00069
00070
00071 vSIZE SizeOfFileList( FileList *fileList );
00072
00073 FileListIterator BeginFileList( FileList *fileList );
00074 FileListIterator EndFileList( FileList *fileList );
00075
00076 FileListIterator NextFileListIterator( FileListIterator iter );
00077
00078
00079 vVOID DestroyFileList( FileList *fileList );
00080
00081
00082 #endif
00083