5#ifndef JPP_I_FILE_LIST_HPP_INCLUDED
6#define JPP_I_FILE_LIST_HPP_INCLUDED
8#include <jimcpp/core/engine/IReferenceCounted.hpp>
9#include <jimcpp/core/engine/path.hpp>
Base class of most objects of the Jimcpp Engine.
Definition IReferenceCounted.hpp:46
Provides a list of files and folders.
Definition IFileList.hpp:20
virtual u32 getFileOffset(u32 index) const =0
Returns the file offset of a file in the file list, based on an index.
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.
virtual s32 findFile(const io::path &filename, bool isFolder=false) const =0
Searches for a file or folder in the list.
virtual u32 getFileCount() const =0
Get the number of files in the filelist.
virtual void sort()=0
Sorts the file list. You should call this after adding any items to the file list.
virtual u32 getID(u32 index) const =0
Returns the ID of a file in the file list, based on an index.
virtual const io::path & getFileName(u32 index) const =0
Gets the name of a file in the list, based on an index.
virtual bool isDirectory(u32 index) const =0
Check if the file is a directory.
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.
virtual u32 getFileSize(u32 index) const =0
Returns the size of a file in the file list, based on an index.
virtual const io::path & getPath() const =0
Returns the base path of the file list.
As of Jimcpp 1.6, position2d is a synonym for vector2d.
Definition vector3d.hpp:11
signed int s32
32 bit signed variable.
Definition irrTypes.hpp:72
unsigned int u32
32 bit unsigned variable.
Definition irrTypes.hpp:64