List of file information.
More...
#include <fios.h>
List of file information.
Definition at line 106 of file fios.h.
◆ Append()
Construct a new entry in the file list.
- Returns
- Pointer to the new items to be initialized.
Definition at line 114 of file fios.h.
◆ Begin()
const FiosItem* FileList::Begin |
( |
| ) |
const |
|
inline |
◆ BuildFileList()
◆ Clear()
◆ Compact()
void FileList::Compact |
( |
| ) |
|
|
inline |
Compact the list down to the smallest block size boundary.
Definition at line 185 of file fios.h.
◆ End()
Get a pointer behind the last file information.
- Returns
- Address behind the last file information.
Definition at line 141 of file fios.h.
Referenced by FindItem(), and SortSaveGameList().
◆ FindItem()
const FiosItem * FileList::FindItem |
( |
const char * |
file | ) |
|
Find file information of a file by its name from the file list.
- Parameters
-
file | The filename to return information about. Can be the actual name or a numbered entry into the filename list. |
- Returns
- The information on the file, or
NULL
if the file is not available.
Definition at line 108 of file fios.cpp.
References Begin(), End(), Get(), IsInsideMM(), and Length().
Referenced by DEF_CONSOLE_CMD().
◆ Get() [1/2]
const FiosItem* FileList::Get |
( |
uint |
index | ) |
const |
|
inline |
Get a pointer to the indicated file information.
File information must exist.
- Returns
- Address of the indicated existing file information.
Definition at line 150 of file fios.h.
Referenced by FindItem().
◆ Get() [2/2]
Get a pointer to the indicated file information.
File information must exist.
- Returns
- Address of the indicated existing file information.
Definition at line 159 of file fios.h.
◆ Length()
uint FileList::Length |
( |
| ) |
const |
|
inline |
◆ operator[]()
FiosItem& FileList::operator[] |
( |
uint |
index | ) |
|
|
inline |
Get a reference to the indicated file information.
File information must exist.
- Returns
- The requested file information.
Definition at line 173 of file fios.h.
The documentation for this class was generated from the following files: