#include <sbuild-dirstream.h>
Public Member Functions | |
direntry () | |
The constructor. | |
direntry (const struct dirent *entry) | |
The constructor. | |
direntry (direntry const &orig) | |
The copy constructor. | |
virtual | ~direntry () |
The destructor. | |
long | inode () const |
Get the dirent inode number (d_ino). | |
unsigned char | type () const |
Get the file type (d_type). | |
std::string | name () const |
Get the file name (d_name). | |
struct dirent const & | dirent () |
Get the dirent. | |
Private Attributes | |
struct dirent | data |
The underlying dirent the class is wrapping. |
It is a wrapper around the dirent structure declared in dirent.h. Unlike a dirent pointer returned by readdir(3), a direntry does not become invalid when the dirstream it was extracted from is destroyed.
sbuild::direntry::direntry | ( | const struct dirent * | entry | ) | [inline] |
sbuild::direntry::direntry | ( | direntry const & | orig | ) | [inline] |
virtual sbuild::direntry::~direntry | ( | ) | [inline, virtual] |
The destructor.
long sbuild::direntry::inode | ( | ) | const [inline] |
unsigned char sbuild::direntry::type | ( | ) | const [inline] |
std::string sbuild::direntry::name | ( | ) | const [inline] |
Get the file name (d_name).
References data.
Referenced by sbuild::chroot_config::add_config_directory(), and sbuild::run_parts::run_parts().
struct dirent const& sbuild::direntry::dirent | ( | ) | [inline, read] |
Get the dirent.
References data.
Referenced by direntry().
struct dirent sbuild::direntry::data [read, private] |
The underlying dirent the class is wrapping.
Referenced by dirent(), direntry(), inode(), name(), and type().