#include <Directory.hh>
Inheritance diagram for FbTk::Directory:
Definition at line 36 of file Directory.hh.
open directory
Definition at line 69 of file Directory.cc.
References close(), read(), and rewind().
00069 { 00070 if (dir == 0) 00071 return false; 00072 00073 if (m_dir != 0) 00074 close(); 00075 00076 m_dir = opendir(dir); 00077 if (m_dir == 0) // successfull loading? 00078 return false; 00079 00080 // get number of entries 00081 while (read()) 00082 m_num_entries++; 00083 00084 rewind(); // go back to start 00085 00086 return true; 00087 }
gets next dirent info struct in directory and jumps to next directory entry
Definition at line 46 of file Directory.cc.
Referenced by open(), and readFilename().
00046 { 00047 if (m_dir == 0) 00048 return 0; 00049 00050 return readdir(m_dir); 00051 }