Home | Namespaces | Hierarchy | Alphabetical List | Class list | Files | Namespace Members | Class members | File members | Tutorials
IFileList.h
Go to the documentation of this file.
1 // Copyright (C) 2002-2010 Nikolaus Gebhardt
2 // This file is part of the "Irrlicht Engine".
3 // For conditions of distribution and use, see copyright notice in irrlicht.h
4 
5 #ifndef __I_FILE_LIST_H_INCLUDED__
6 #define __I_FILE_LIST_H_INCLUDED__
7 
8 #include "IReferenceCounted.h"
9 #include "path.h"
10 
11 namespace irr
12 {
13 namespace io
14 {
15 
17 
19 class IFileList : public virtual IReferenceCounted
20 {
21 public:
23 
24  virtual u32 getFileCount() const = 0;
25 
27 
31  virtual const io::path& getFileName(u32 index) const = 0;
32 
34 
37  virtual const io::path& getFullFileName(u32 index) const = 0;
38 
40 
43  virtual u32 getFileSize(u32 index) const = 0;
44 
46 
52  virtual u32 getID(u32 index) const = 0;
53 
55 
58  virtual bool isDirectory(u32 index) const = 0;
59 
61 
66  virtual s32 findFile(const io::path& filename, bool isFolder=false) const = 0;
67 
69  virtual const io::path& getPath() const = 0;
70 
72 
76  virtual u32 addItem(const io::path& fullPath, u32 size, bool isDirectory, u32 id=0) = 0;
77 
79  virtual void sort() = 0;
80 };
81 
82 } // end namespace irr
83 } // end namespace io
84 
85 
86 #endif
87 

The Irrlicht Engine
The Irrlicht Engine Documentation © 2003-2010 by Nikolaus Gebhardt. Generated on Tue Jun 5 2012 17:57:11 by Doxygen (1.8.1)