#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). | |
dirent const & | dirent () |
Get the dirent. | |
Private Attributes | |
dirent | data |
The underlying dirent the class is wrapping. |
It is a wrapper around the dirent structure declared in dirent.h
The direntry is only valid during the lifetime of an open dirstream. Once the directory is closed, when the dirstream is destroyed, or its close() method called, the direntry can no longer be safely used. On many systems, including Linux, this does not matter, but the Single UNIX Specification makes no garuantees about this.
sbuild::direntry::direntry | ( | ) | [inline] |
The constructor.
Here is the call graph for this function:
sbuild::direntry::direntry | ( | const struct dirent * | entry | ) | [inline] |
The constructor.
entry | the dirent to initialise the class with. |
Here is the call graph for this function:
sbuild::direntry::direntry | ( | direntry const & | orig | ) | [inline] |
The copy constructor.
orig | the class to copy. |
Here is the call graph for this function:
virtual sbuild::direntry::~direntry | ( | ) | [inline, virtual] |
The destructor.
struct dirent const& sbuild::direntry::dirent | ( | ) | [inline] |
Get the dirent.
long sbuild::direntry::inode | ( | ) | const [inline] |
Get the dirent inode number (d_ino).
std::string sbuild::direntry::name | ( | ) | const [inline] |
Get the file name (d_name).
unsigned char sbuild::direntry::type | ( | ) | const [inline] |
Get the file type (d_type).
struct dirent sbuild::direntry::data [private] |
The underlying dirent the class is wrapping.