coan
6.0.1
A C/C++ Configuration Analyzer
|
Class nix::directory
encapsulates linux/unix-specific directory functionality.
More...
#include <directory_nix.h>
Public Member Functions | |
directory (std::string const &path) | |
Explicitly construct a directory given a path. More... | |
~directory () | |
Destructor. | |
std::string const | cur_memb () const |
Get the leafname of the current member of the directory. | |
bool | open () |
Open the directory. More... | |
bool | close () |
Close the directory. More... | |
std::string | next () |
Move to the next entry in the directory. More... | |
![]() | |
std::string const & | path () const |
Get the absolute path of the directory | |
unsigned | last_error () const |
Get the last system error code resulting from an operation on this directory. | |
void | clear_error () |
Clear any system error code resulting from an operation on this directory. | |
bool | good () const |
Say whether the directory is in a valid state. | |
operator bool () const | |
Explicitly Cast the directory to bool. | |
Private Attributes | |
DIR * | _dir |
The directory handle of this directory handle. | |
struct dirent | _entry |
The current entry in this directory . | |
Additional Inherited Members | |
![]() | |
directory (std::string const &path) | |
Explicitly construct a directory given a path. More... | |
![]() | |
static bool | is_dot_name (char const *leafname) |
Say whether a file leafname consists of 1 or 2 dots. More... | |
![]() | |
std::string | _abs_path |
The absolute pathname of the directory. | |
unsigned | _last_error = 0 |
The last error system code returned by a directory operation. | |
Class nix::directory
encapsulates linux/unix-specific directory functionality.
Definition at line 55 of file directory_nix.h.
|
inlineexplicit |
Explicitly construct a directory given a path.
path | The pathname of the directory. |
Definition at line 59 of file directory_nix.h.
|
inline |
Close the directory.
Definition at line 85 of file directory_nix.h.
|
inline |
Move to the next entry in the directory.
Definition at line 93 of file directory_nix.h.
|
inline |
Open the directory.
Definition at line 77 of file directory_nix.h.