#include "dir-ops.h"
Public Member Functions | |
dir_entry (const std::string &n=std::string()) | |
dir_entry (const dir_entry &d) | |
~dir_entry (void) | |
void | close (void) |
std::string | error (void) const |
bool | ok (void) const |
bool | open (const std::string &=std::string()) |
operator bool () const | |
dir_entry & | operator= (const dir_entry &d) |
string_vector | read (void) |
Private Attributes | |
void * | dir |
std::string | errmsg |
bool | fail |
std::string | name |
Definition at line 30 of file dir-ops.h.
dir_entry::dir_entry | ( | const std::string & | n = std::string () |
) | [inline] |
void dir_entry::close | ( | void | ) |
Definition at line 95 of file dir-ops.cc.
References dir.
Referenced by octave_recursive_rmdir(), and open().
std::string dir_entry::error | ( | void | ) | const [inline] |
Definition at line 71 of file dir-ops.h.
Referenced by DEFUN(), get_fcn_files(), load_path::dir_info::get_file_list(), and octave_recursive_rmdir().
bool dir_entry::ok | ( | void | ) | const [inline] |
bool dir_entry::open | ( | const std::string & | n = std::string () |
) |
Definition at line 43 of file dir-ops.cc.
References close(), dir, errmsg, fail, name, and file_ops::tilde_expand().
string_vector dir_entry::read | ( | void | ) |
Definition at line 70 of file dir-ops.cc.
References dir, dirent, and ok().
Referenced by DEFUN(), genpath(), get_fcn_files(), load_path::dir_info::get_file_list(), and octave_recursive_rmdir().
void* dir_entry::dir [private] |
std::string dir_entry::errmsg [private] |
Definition at line 87 of file dir-ops.h.
Referenced by open(), and operator=().
bool dir_entry::fail [private] |
Definition at line 84 of file dir-ops.h.
Referenced by open(), and operator=().
std::string dir_entry::name [private] |
Definition at line 76 of file dir-ops.h.
Referenced by open(), and operator=().