|
virtual u32 | addItem (const io::path &fullPath, u32 offset, u32 size, bool isDirectory, u32 id=0)=0 |
| Add as a file or folder to the list. More...
|
|
virtual s32 | findFile (const io::path &filename, bool isFolder=false) const =0 |
| Searches for a file or folder in the list. More...
|
|
virtual u32 | getFileCount () const =0 |
| Get the number of files in the filelist. More...
|
|
virtual const io::path & | getFileName (u32 index) const =0 |
| Gets the name of a file in the list, based on an index. More...
|
|
virtual u32 | getFileOffset (u32 index) const =0 |
| Returns the file offset of a file in the file list, based on an index. More...
|
|
virtual u32 | getFileSize (u32 index) const =0 |
| Returns the size of a file in the file list, based on an index. More...
|
|
virtual const io::path & | getFullFileName (u32 index) const =0 |
| Gets the full name of a file in the list including the path, based on an index. More...
|
|
virtual u32 | getID (u32 index) const =0 |
| Returns the ID of a file in the file list, based on an index. More...
|
|
virtual const io::path & | getPath () const =0 |
| Returns the base path of the file list. More...
|
|
virtual bool | isDirectory (u32 index) const =0 |
| Check if the file is a directory. More...
|
|
virtual void | sort ()=0 |
| Sorts the file list. You should call this after adding any items to the file list. More...
|
|
bool | drop () const |
| Drops the object. Decrements the reference counter by one. More...
|
|
const c8 * | getDebugName () const |
| Returns the debug name of the object. More...
|
|
s32 | getReferenceCount () const |
| Get the reference count. More...
|
|
void | grab () const |
| Grabs the object. Increments the reference counter by one. More...
|
|
| IReferenceCounted () |
| Constructor. More...
|
|
virtual | ~IReferenceCounted () |
| Destructor. More...
|
|
Provides a list of files and folders.
File lists usually contain a list of all files in a given folder,
but can also contain a complete directory structure.
Definition at line 19 of file IFileList.h.
virtual u32 irr::io::IFileList::getID |
( |
u32 |
index | ) |
const |
|
pure virtual |
Returns the ID of a file in the file list, based on an index.
This optional ID can be used to link the file list entry to information held
elsewhere. For example this could be an index in an IFileArchive, linking the entry to its data offset, uncompressed size and CRC.
- Parameters
-
index | is the zero based index of the file which should be returned. The index must be less than the amount getFileCount() returns. |
- Returns
- The ID of the file.