#include "file-stat.h"
Public Member Functions | |
base_file_stat (void) | |
base_file_stat (const base_file_stat &fs) | |
octave_time | atime (void) const |
long | blksize (void) const |
long | blocks (void) const |
octave_time | ctime (void) const |
dev_t | dev (void) const |
std::string | error (void) const |
bool | exists (void) const |
gid_t | gid (void) const |
ino_t | ino (void) const |
bool | is_blk (void) const |
bool | is_chr (void) const |
bool | is_dir (void) const |
bool | is_fifo (void) const |
bool | is_lnk (void) const |
bool | is_newer (const octave_time &time) const |
bool | is_reg (void) const |
bool | is_sock (void) const |
mode_t | mode (void) const |
std::string | mode_as_string (void) const |
octave_time | mtime (void) const |
nlink_t | nlink (void) const |
bool | ok (void) const |
operator bool () const | |
base_file_stat & | operator= (const base_file_stat &fs) |
dev_t | rdev (void) const |
off_t | size (void) const |
octave_time | time_resolution (void) const |
uid_t | uid (void) const |
Static Public Member Functions | |
static bool | is_blk (mode_t mode) |
static bool | is_chr (mode_t mode) |
static bool | is_dir (mode_t mode) |
static bool | is_fifo (mode_t mode) |
static bool | is_lnk (mode_t mode) |
static int | is_newer (const std::string &, const octave_time &) |
static bool | is_reg (mode_t mode) |
static bool | is_sock (mode_t mode) |
Protected Member Functions | |
virtual | ~base_file_stat (void) |
Protected Attributes | |
std::string | errmsg |
bool | fail |
octave_time | fs_atime |
long | fs_blksize |
long | fs_blocks |
octave_time | fs_ctime |
dev_t | fs_dev |
gid_t | fs_gid |
ino_t | fs_ino |
mode_t | fs_mode |
octave_time | fs_mtime |
nlink_t | fs_nlink |
dev_t | fs_rdev |
off_t | fs_size |
uid_t | fs_uid |
bool | initialized |
Definition at line 32 of file file-stat.h.
base_file_stat::base_file_stat | ( | void | ) | [inline] |
Definition at line 38 of file file-stat.h.
base_file_stat::base_file_stat | ( | const base_file_stat & | fs | ) | [inline] |
Definition at line 44 of file file-stat.h.
virtual base_file_stat::~base_file_stat | ( | void | ) | [inline, protected, virtual] |
Definition at line 147 of file file-stat.h.
octave_time base_file_stat::atime | ( | void | ) | const [inline] |
Definition at line 117 of file file-stat.h.
Referenced by mk_stat_map().
long base_file_stat::blksize | ( | void | ) | const [inline] |
Definition at line 123 of file file-stat.h.
Referenced by mk_stat_map().
long base_file_stat::blocks | ( | void | ) | const [inline] |
Definition at line 124 of file file-stat.h.
Referenced by mk_stat_map().
octave_time base_file_stat::ctime | ( | void | ) | const [inline] |
Definition at line 119 of file file-stat.h.
Referenced by mk_stat_map().
dev_t base_file_stat::dev | ( | void | ) | const [inline] |
Definition at line 108 of file file-stat.h.
Referenced by mk_stat_map(), and same_file_internal().
std::string base_file_stat::error | ( | void | ) | const [inline] |
Definition at line 136 of file file-stat.h.
Referenced by DEFUN_DLD(), load_path::do_add(), load_path::dir_info::initialize(), mk_stat_result(), octave_recursive_rmdir(), and load_path::dir_info::update().
bool base_file_stat::exists | ( | void | ) | const [inline] |
Definition at line 134 of file file-stat.h.
Referenced by contents_file_in_path(), DEFUN_DLD(), load_path::do_find_all_first_of(), load_path::do_find_dir(), load_path::do_find_file(), load_path::do_find_first_of(), load_path::do_find_matching_dirs(), do_stream_open(), execute_pkg_add_or_del(), fcn_file_in_path(), find_file_to_load(), is_blk(), is_chr(), is_dir(), is_fifo(), is_lnk(), is_reg(), is_sock(), mex_file_in_path(), oct_file_in_path(), read_mat5_binary_element(), octave_fcn_handle::set_fcn(), and single_match_exists().
gid_t base_file_stat::gid | ( | void | ) | const [inline] |
Definition at line 113 of file file-stat.h.
Referenced by mk_stat_map().
ino_t base_file_stat::ino | ( | void | ) | const [inline] |
Definition at line 107 of file file-stat.h.
Referenced by mk_stat_map(), and same_file_internal().
bool base_file_stat::is_blk | ( | void | ) | const |
Definition at line 44 of file file-stat.cc.
References exists(), and fs_mode.
Referenced by DEFUNX().
bool base_file_stat::is_blk | ( | mode_t | mode | ) | [static] |
Definition at line 86 of file file-stat.cc.
bool base_file_stat::is_chr | ( | void | ) | const |
Definition at line 50 of file file-stat.cc.
References exists(), and fs_mode.
Referenced by DEFUNX().
bool base_file_stat::is_chr | ( | mode_t | mode | ) | [static] |
Definition at line 96 of file file-stat.cc.
bool base_file_stat::is_dir | ( | void | ) | const |
Definition at line 56 of file file-stat.cc.
References exists(), and fs_mode.
Referenced by DEFUN(), DEFUN_DLD(), DEFUNX(), load_path::do_add(), load_path::do_find_dir(), load_path::do_find_matching_dirs(), do_stream_open(), genpath(), load_path::dir_info::get_file_list(), load_path::dir_info::get_method_file_map(), octave_recursive_rmdir(), and symbol_exist().
bool base_file_stat::is_dir | ( | mode_t | mode | ) | [static] |
Definition at line 106 of file file-stat.cc.
bool base_file_stat::is_fifo | ( | void | ) | const |
Definition at line 62 of file file-stat.cc.
References exists(), and fs_mode.
Referenced by DEFUNX().
bool base_file_stat::is_fifo | ( | mode_t | mode | ) | [static] |
Definition at line 116 of file file-stat.cc.
bool base_file_stat::is_lnk | ( | void | ) | const |
Definition at line 68 of file file-stat.cc.
References exists(), and fs_mode.
Referenced by DEFUNX().
bool base_file_stat::is_lnk | ( | mode_t | mode | ) | [static] |
Definition at line 126 of file file-stat.cc.
int base_file_stat::is_newer | ( | const std::string & | file, | |
const octave_time & | time | |||
) | [static] |
Definition at line 169 of file file-stat.cc.
References is_newer().
bool base_file_stat::is_newer | ( | const octave_time & | time | ) | const [inline] |
Definition at line 139 of file file-stat.h.
Referenced by octave_shlib::shlib_rep::fake_reload(), is_newer(), octave_shlib::shlib_rep::is_out_of_date(), and out_of_date_check().
bool base_file_stat::is_reg | ( | void | ) | const |
Definition at line 74 of file file-stat.cc.
References exists(), and fs_mode.
Referenced by DEFUNX(), and find_file_to_load().
bool base_file_stat::is_reg | ( | mode_t | mode | ) | [static] |
Definition at line 136 of file file-stat.cc.
bool base_file_stat::is_sock | ( | void | ) | const |
Definition at line 80 of file file-stat.cc.
References exists(), and fs_mode.
Referenced by DEFUNX().
bool base_file_stat::is_sock | ( | mode_t | mode | ) | [static] |
Definition at line 146 of file file-stat.cc.
mode_t base_file_stat::mode | ( | void | ) | const [inline] |
Definition at line 126 of file file-stat.h.
Referenced by mk_stat_map().
std::string base_file_stat::mode_as_string | ( | void | ) | const |
octave_time base_file_stat::mtime | ( | void | ) | const [inline] |
Definition at line 118 of file file-stat.h.
Referenced by DEFUN_DLD(), octave_shlib::shlib_rep::fake_reload(), load_path::dir_info::initialize(), mk_stat_map(), and load_path::dir_info::update().
nlink_t base_file_stat::nlink | ( | void | ) | const [inline] |
Definition at line 110 of file file-stat.h.
Referenced by mk_stat_map().
bool base_file_stat::ok | ( | void | ) | const [inline] |
Definition at line 130 of file file-stat.h.
base_file_stat::operator bool | ( | void | ) | const [inline] |
Definition at line 132 of file file-stat.h.
base_file_stat& base_file_stat::operator= | ( | const base_file_stat & | fs | ) | [inline] |
Definition at line 52 of file file-stat.h.
References errmsg, fail, fs_atime, fs_blksize, fs_blocks, fs_ctime, fs_dev, fs_gid, fs_ino, fs_mode, fs_mtime, fs_nlink, fs_rdev, fs_size, fs_uid, and initialized.
Referenced by file_fstat::operator=(), and file_stat::operator=().
dev_t base_file_stat::rdev | ( | void | ) | const [inline] |
Definition at line 121 of file file-stat.h.
Referenced by mk_stat_map().
off_t base_file_stat::size | ( | void | ) | const [inline] |
Definition at line 115 of file file-stat.h.
Referenced by mk_stat_map(), and snarf_file().
octave_time base_file_stat::time_resolution | ( | void | ) | const [inline] |
Definition at line 80 of file file-stat.h.
Referenced by load_path::dir_info::update().
uid_t base_file_stat::uid | ( | void | ) | const [inline] |
Definition at line 112 of file file-stat.h.
Referenced by mk_stat_map().
std::string base_file_stat::errmsg [protected] |
Definition at line 156 of file file-stat.h.
Referenced by operator=(), file_fstat::update_internal(), and file_stat::update_internal().
bool base_file_stat::fail [protected] |
Definition at line 153 of file file-stat.h.
Referenced by operator=(), file_fstat::update_internal(), and file_stat::update_internal().
octave_time base_file_stat::fs_atime [protected] |
Definition at line 180 of file file-stat.h.
Referenced by operator=(), file_fstat::update_internal(), and file_stat::update_internal().
long base_file_stat::fs_blksize [protected] |
Definition at line 192 of file file-stat.h.
Referenced by operator=(), file_fstat::update_internal(), and file_stat::update_internal().
long base_file_stat::fs_blocks [protected] |
Definition at line 195 of file file-stat.h.
Referenced by operator=(), file_fstat::update_internal(), and file_stat::update_internal().
octave_time base_file_stat::fs_ctime [protected] |
Definition at line 186 of file file-stat.h.
Referenced by operator=(), file_fstat::update_internal(), and file_stat::update_internal().
dev_t base_file_stat::fs_dev [protected] |
Definition at line 165 of file file-stat.h.
Referenced by operator=(), file_fstat::update_internal(), and file_stat::update_internal().
gid_t base_file_stat::fs_gid [protected] |
Definition at line 174 of file file-stat.h.
Referenced by operator=(), file_fstat::update_internal(), and file_stat::update_internal().
ino_t base_file_stat::fs_ino [protected] |
Definition at line 162 of file file-stat.h.
Referenced by operator=(), file_fstat::update_internal(), and file_stat::update_internal().
mode_t base_file_stat::fs_mode [protected] |
Definition at line 159 of file file-stat.h.
Referenced by is_blk(), is_chr(), is_dir(), is_fifo(), is_lnk(), is_reg(), is_sock(), mode_as_string(), operator=(), file_fstat::update_internal(), and file_stat::update_internal().
octave_time base_file_stat::fs_mtime [protected] |
Definition at line 183 of file file-stat.h.
Referenced by operator=(), file_fstat::update_internal(), and file_stat::update_internal().
nlink_t base_file_stat::fs_nlink [protected] |
Definition at line 168 of file file-stat.h.
Referenced by operator=(), file_fstat::update_internal(), and file_stat::update_internal().
dev_t base_file_stat::fs_rdev [protected] |
Definition at line 189 of file file-stat.h.
Referenced by operator=(), file_fstat::update_internal(), and file_stat::update_internal().
off_t base_file_stat::fs_size [protected] |
Definition at line 177 of file file-stat.h.
Referenced by operator=(), file_fstat::update_internal(), and file_stat::update_internal().
uid_t base_file_stat::fs_uid [protected] |
Definition at line 171 of file file-stat.h.
Referenced by operator=(), file_fstat::update_internal(), and file_stat::update_internal().
bool base_file_stat::initialized [protected] |
Definition at line 150 of file file-stat.h.
Referenced by operator=(), file_fstat::update_internal(), and file_stat::update_internal().