Nicely wrap access to directories. More...
#include <fs.h>
Classes | |
class | const_iterator |
Public Member Functions | |
Directory (const std::string &path) | |
const std::string & | path () const |
Pathname of the directory. | |
bool | valid () |
Check that the directory exists and is a directory. | |
const_iterator | begin () |
Begin iterator. | |
const_iterator | end () const |
End iterator. |
Nicely wrap access to directories.
wibble::sys::fs::Directory::Directory | ( | const std::string & | path | ) | [inline] |
Directory::const_iterator wibble::sys::fs::Directory::begin | ( | ) |
Begin iterator.
Referenced by TestFs::directoryIterate().
Directory::const_iterator wibble::sys::fs::Directory::end | ( | ) | const |
End iterator.
Referenced by TestFs::directoryIterate().
const std::string& wibble::sys::fs::Directory::path | ( | ) | const [inline] |
Pathname of the directory.
Referenced by valid().
bool wibble::sys::fs::Directory::valid | ( | ) |
Check that the directory exists and is a directory.
References path(), and wibble::sys::fs::stat().
Referenced by TestFs::invalidDirectories().