Home | Namespaces | Hierarchy | Alphabetical List | Class list | Files | Namespace Members | Class members | File members | Tutorials

# IFileList.h

Go to the documentation of this file.

    00001 // Copyright (C) 2002-2009 Nikolaus Gebhardt
    00002 // This file is part of the "Irrlicht Engine".
    00003 // For conditions of distribution and use, see copyright notice in irrlicht.h
    00004
    00005 #ifndef __I_FILE_LIST_H_INCLUDED__
    00006 #define __I_FILE_LIST_H_INCLUDED__
    00007
    00008 #include "IReferenceCounted.h"
    00009 #include "path.h"
    00010
    00011 namespace irr
    00012 {
    00013 namespace io
    00014 {
    00015
    00017
    00019 class IFileList : public virtual IReferenceCounted
    00020 {
    00021 public:
    00023
    00024         virtual u32 getFileCount() const = 0;
    00025
    00027
    00031         virtual const io::path& getFileName(u32 index) const = 0;
    00032
    00034
    00037         virtual const io::path& getFullFileName(u32 index) const = 0;
    00038
    00040
    00043         virtual u32 getFileSize(u32 index) const = 0;
    00044
    00046
    00052         virtual u32 getID(u32 index) const = 0;
    00053
    00055
    00058         virtual bool isDirectory(u32 index) const = 0;
    00059
    00061
    00066         virtual s32 findFile(const io::path& filename, bool isFolder=false) const = 0;
    00067
    00069         virtual const io::path& getPath() const = 0;
    00070
    00072
    00076         virtual u32 addItem(const io::path& fullPath, u32 size, bool isDirectory, u32 id=0) = 0;
    00077
    00079         virtual void sort() = 0;
    00080 };
    00081
    00082 } // end namespace irr
    00083 } // end namespace io
    00084
    00085
    00086 #endif
    00087

| The Irrlicht Engine Documentation © 2003-2010 by Nikolaus Gebhardt. Generated on Sun Feb 14 13:06:56 2010 by Doxygen (1.6.2)