#include <sgindgen.h>
Inheritance diagram for IndGenFileBuffer:
Public Member Functions | |
IndGenFileBuffer () | |
Constructor Notes: Since MSDOS seems happy returning filenames of files in a directory in a completely random fashion, we need to have some way of storing all the ones it returns us and sorting them alphabetically, so we can generate index files in a nice alphabetical order. | |
~IndGenFileBuffer () | |
Destructor - frees all the memory Notes:. | |
BOOL | Init (INT32 Count) |
BOOL | AddItem (TCHAR *String) |
BOOL | Sort (void) |
TCHAR * | GetItem (INT32 Count) |
INT32 | ItemCount (void) |
Static Protected Member Functions | |
static INT32 __cdecl | SortComparator (const void *Item1, const void *Item2) |
Protected Attributes | |
TCHAR ** | Buffer |
INT32 | Items |
INT32 | Position |
Definition at line 124 of file sgindgen.h.
|
Constructor Notes: Since MSDOS seems happy returning filenames of files in a directory in a completely random fashion, we need to have some way of storing all the ones it returns us and sorting them alphabetically, so we can generate index files in a nice alphabetical order.
Definition at line 964 of file sgindgen.cpp.
|
|
Destructor - frees all the memory Notes:.
Definition at line 987 of file sgindgen.cpp. 00988 { 00989 if(Buffer != NULL) 00990 { 00991 for(INT32 i = 0; i<Items; i++) 00992 { 00993 if(Buffer[i] != NULL) 00994 CCFree(Buffer[i]); 00995 } 00996 00997 CCFree(Buffer); 00998 Buffer = NULL; 00999 } 01000 }
|
|
|
|
|
|
|
|
Definition at line 135 of file sgindgen.h. 00135 {return Items;}
|
|
|
|
|
|
Definition at line 141 of file sgindgen.h. |
|
Definition at line 142 of file sgindgen.h. |
|
Definition at line 143 of file sgindgen.h. |