Loading...
Searching...
No Matches
IFileList.h
Go to the documentation of this file.
// Copyright (C) 2002-2012 Nikolaus Gebhardt
// This file is part of the "Irrlicht Engine".
// For conditions of distribution and use, see copyright notice in irrlicht.h
#ifndef __I_FILE_LIST_H_INCLUDED__
#define __I_FILE_LIST_H_INCLUDED__
#include "IReferenceCounted.h"
#include "path.h"
namespace irr
{
namespace io
{
class IFileList : public virtual IReferenceCounted
{
public:
virtual u32 getFileCount() const = 0;
virtual const io::path& getFileName(u32 index) const = 0;
virtual const io::path& getFullFileName(u32 index) const = 0;
virtual u32 getFileSize(u32 index) const = 0;
virtual u32 getFileOffset(u32 index) const = 0;
virtual u32 getID(u32 index) const = 0;
virtual bool isDirectory(u32 index) const = 0;
virtual s32 findFile(const io::path& filename, bool isFolder=false) const = 0;
virtual const io::path& getPath() const = 0;
virtual u32 addItem(const io::path& fullPath, u32 offset, u32 size, bool isDirectory, u32 id=0) = 0;
virtual void sort() = 0;
};
} // end namespace irr
} // end namespace io
#endif
IReferenceCounted.h
irr::IReferenceCounted::IReferenceCounted
IReferenceCounted()
Constructor.
Definition IReferenceCounted.h:46
irr::io::IFileList
Provides a list of files and folders.
Definition IFileList.h:20
irr::io::IFileList::getFileName
virtual const io::path & getFileName(u32 index) const =0
Gets the name of a file in the list, based on an index.
irr::io::IFileList::isDirectory
virtual bool isDirectory(u32 index) const =0
Check if the file is a directory.
irr::io::IFileList::findFile
virtual s32 findFile(const io::path &filename, bool isFolder=false) const =0
Searches for a file or folder in the list.
irr::io::IFileList::sort
virtual void sort()=0
Sorts the file list. You should call this after adding any items to the file list.
irr::io::IFileList::getFileSize
virtual u32 getFileSize(u32 index) const =0
Returns the size of a file in the file list, based on an index.
irr::io::IFileList::getPath
virtual const io::path & getPath() const =0
Returns the base path of the file list.
irr::io::IFileList::getFileCount
virtual u32 getFileCount() const =0
Get the number of files in the filelist.
irr::io::IFileList::getFileOffset
virtual u32 getFileOffset(u32 index) const =0
Returns the file offset of a file in the file list, based on an index.
irr::io::IFileList::getID
virtual u32 getID(u32 index) const =0
Returns the ID of a file in the file list, based on an index.
irr::io::IFileList::addItem
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.
irr::io::IFileList::getFullFileName
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.
irr::io
This namespace provides interfaces for input/output: Reading and writing files, accessing zip archive...
Definition EAttributes.h:11
irr::io::path
core::string< fschar_t > path
Type used for all file system related strings.
Definition path.h:17
irr
Everything in the Irrlicht Engine can be found in this namespace.
Definition aabbox3d.h:13
irr::u32
unsigned int u32
32 bit unsigned variable.
Definition irrTypes.h:58
irr::s32
signed int s32
32 bit signed variable.
Definition irrTypes.h:66
path.h
- Irrlicht Engine Documentation © 2003-2012 by Nikolaus Gebhardt. Generated on for Irrlicht 3D Engine by Doxygen 1.15.0