GNU Octave
4.0.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#include "file-stat.h"
Public Member Functions | |
file_stat (const std::string &n=std::string(), bool fl=true) | |
file_stat (const file_stat &fs) | |
~file_stat (void) | |
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 |
void | get_stats (bool force=false) |
void | get_stats (const std::string &n, bool force=false) |
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 | |
file_stat & | operator= (const 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 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 |
Private Member Functions | |
void | update_internal (bool force=false) |
Private Attributes | |
std::string | file_name |
bool | follow_links |
Definition at line 198 of file file-stat.h.
|
inline |
Definition at line 204 of file file-stat.h.
|
inline |
Definition at line 211 of file file-stat.h.
|
inline |
Definition at line 228 of file file-stat.h.
|
inlineinherited |
Definition at line 117 of file file-stat.h.
Referenced by mk_stat_map().
|
inlineinherited |
Definition at line 123 of file file-stat.h.
Referenced by mk_stat_map().
|
inlineinherited |
Definition at line 124 of file file-stat.h.
Referenced by mk_stat_map().
|
inlineinherited |
Definition at line 119 of file file-stat.h.
Referenced by mk_stat_map().
|
inlineinherited |
Definition at line 108 of file file-stat.h.
Referenced by mk_stat_map(), and same_file_internal().
|
inlineinherited |
Definition at line 136 of file file-stat.h.
Referenced by load_path::do_add(), G__magick_finfo__(), load_path::dir_info::initialize(), mk_stat_result(), octave_recursive_rmdir(), and load_path::dir_info::update().
|
inlineinherited |
Definition at line 134 of file file-stat.h.
Referenced by contents_file_in_path(), 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(), execute_pkg_add_or_del(), F__ftp_mput__(), Fautoload(), fcn_file_in_path(), find_data_file_in_load_path(), find_file_to_load(), find_private_file(), have_gnuplot_binary(), base_file_stat::is_blk(), base_file_stat::is_chr(), base_file_stat::is_dir(), base_file_stat::is_fifo(), base_file_stat::is_lnk(), base_file_stat::is_reg(), base_file_stat::is_sock(), mex_file_in_path(), base_url_transfer::mput_directory(), oct_file_in_path(), read_mat5_binary_element(), octave_fcn_handle::set_fcn(), and single_match_exists().
|
inline |
Definition at line 230 of file file-stat.h.
|
inline |
Definition at line 236 of file file-stat.h.
|
inlineinherited |
Definition at line 113 of file file-stat.h.
Referenced by mk_stat_map().
|
inlineinherited |
Definition at line 107 of file file-stat.h.
Referenced by mk_stat_map(), and same_file_internal().
|
inherited |
Definition at line 44 of file file-stat.cc.
References base_file_stat::exists(), and base_file_stat::fs_mode.
Referenced by FS_ISBLK().
Definition at line 86 of file file-stat.cc.
|
inherited |
Definition at line 50 of file file-stat.cc.
References base_file_stat::exists(), and base_file_stat::fs_mode.
Referenced by FS_ISCHR().
Definition at line 96 of file file-stat.cc.
|
inherited |
Definition at line 56 of file file-stat.cc.
References base_file_stat::exists(), and base_file_stat::fs_mode.
Referenced by load_path::do_add(), load_path::do_find_dir(), load_path::do_find_matching_dirs(), do_stream_open(), F__ftp_mput__(), fcn_file_in_path(), Fdrawnow(), Fmkdir(), FS_ISDIR(), genpath(), load_path::dir_info::get_file_list(), load_path::dir_info::get_method_file_map(), base_url_transfer::mget_directory(), base_url_transfer::mput_directory(), octave_recursive_rmdir(), octave_tempnam(), and symbol_exist().
Definition at line 106 of file file-stat.cc.
|
inherited |
Definition at line 62 of file file-stat.cc.
References base_file_stat::exists(), and base_file_stat::fs_mode.
Referenced by FS_ISFIFO().
Definition at line 116 of file file-stat.cc.
|
inherited |
Definition at line 68 of file file-stat.cc.
References base_file_stat::exists(), and base_file_stat::fs_mode.
Referenced by FS_ISLNK().
Definition at line 126 of file file-stat.cc.
|
inlineinherited |
Definition at line 139 of file file-stat.h.
Referenced by octave_shlib::shlib_rep::fake_reload(), octave_base_parser::frob_function(), base_file_stat::is_newer(), octave_shlib::shlib_rep::is_out_of_date(), and out_of_date_check().
|
staticinherited |
Definition at line 169 of file file-stat.cc.
References base_file_stat::is_newer().
|
inherited |
Definition at line 74 of file file-stat.cc.
References base_file_stat::exists(), and base_file_stat::fs_mode.
Referenced by find_data_file_in_load_path(), find_file_to_load(), find_private_file(), and FS_ISREG().
Definition at line 136 of file file-stat.cc.
|
inherited |
Definition at line 80 of file file-stat.cc.
References base_file_stat::exists(), and base_file_stat::fs_mode.
Referenced by FS_ISSOCK().
Definition at line 146 of file file-stat.cc.
|
inlineinherited |
Definition at line 126 of file file-stat.h.
Referenced by mk_stat_map().
|
inherited |
Definition at line 156 of file file-stat.cc.
References base_file_stat::fs_mode.
Referenced by mk_stat_map().
|
inlineinherited |
Definition at line 118 of file file-stat.h.
Referenced by octave_shlib::shlib_rep::fake_reload(), G__magick_finfo__(), load_path::dir_info::initialize(), mk_stat_map(), and load_path::dir_info::update().
|
inlineinherited |
Definition at line 110 of file file-stat.h.
Referenced by mk_stat_map().
|
inlineinherited |
Definition at line 130 of file file-stat.h.
|
inlineinherited |
Definition at line 132 of file file-stat.h.
Definition at line 215 of file file-stat.h.
References file_name, follow_links, and base_file_stat::operator=().
|
inlineinherited |
Definition at line 121 of file file-stat.h.
Referenced by mk_stat_map().
|
inlineinherited |
Definition at line 115 of file file-stat.h.
Referenced by G__magick_finfo__(), mk_stat_map(), and snarf_file().
|
inlineinherited |
Definition at line 80 of file file-stat.h.
Referenced by load_path::dir_info::update().
|
inlineinherited |
Definition at line 112 of file file-stat.h.
Referenced by mk_stat_map().
|
private |
Definition at line 179 of file file-stat.cc.
References base_file_stat::errmsg, base_file_stat::fail, file_name, follow_links, base_file_stat::fs_atime, base_file_stat::fs_blksize, base_file_stat::fs_blocks, base_file_stat::fs_ctime, base_file_stat::fs_dev, base_file_stat::fs_gid, base_file_stat::fs_ino, base_file_stat::fs_mode, base_file_stat::fs_mtime, base_file_stat::fs_nlink, base_file_stat::fs_rdev, base_file_stat::fs_size, base_file_stat::fs_uid, base_file_stat::initialized, file_ops::is_dir_sep(), stat(), and file_ops::tilde_expand().
|
protectedinherited |
Definition at line 156 of file file-stat.h.
Referenced by base_file_stat::operator=(), update_internal(), and file_fstat::update_internal().
|
protectedinherited |
Definition at line 153 of file file-stat.h.
Referenced by base_file_stat::operator=(), update_internal(), and file_fstat::update_internal().
|
private |
Definition at line 251 of file file-stat.h.
Referenced by operator=(), and update_internal().
|
private |
Definition at line 255 of file file-stat.h.
Referenced by operator=(), and update_internal().
|
protectedinherited |
Definition at line 180 of file file-stat.h.
Referenced by base_file_stat::operator=(), update_internal(), and file_fstat::update_internal().
|
protectedinherited |
Definition at line 192 of file file-stat.h.
Referenced by base_file_stat::operator=(), update_internal(), and file_fstat::update_internal().
|
protectedinherited |
Definition at line 195 of file file-stat.h.
Referenced by base_file_stat::operator=(), update_internal(), and file_fstat::update_internal().
|
protectedinherited |
Definition at line 186 of file file-stat.h.
Referenced by base_file_stat::operator=(), update_internal(), and file_fstat::update_internal().
|
protectedinherited |
Definition at line 165 of file file-stat.h.
Referenced by base_file_stat::operator=(), update_internal(), and file_fstat::update_internal().
|
protectedinherited |
Definition at line 174 of file file-stat.h.
Referenced by base_file_stat::operator=(), update_internal(), and file_fstat::update_internal().
|
protectedinherited |
Definition at line 162 of file file-stat.h.
Referenced by base_file_stat::operator=(), update_internal(), and file_fstat::update_internal().
|
protectedinherited |
Definition at line 159 of file file-stat.h.
Referenced by base_file_stat::is_blk(), base_file_stat::is_chr(), base_file_stat::is_dir(), base_file_stat::is_fifo(), base_file_stat::is_lnk(), base_file_stat::is_reg(), base_file_stat::is_sock(), base_file_stat::mode_as_string(), base_file_stat::operator=(), update_internal(), and file_fstat::update_internal().
|
protectedinherited |
Definition at line 183 of file file-stat.h.
Referenced by base_file_stat::operator=(), update_internal(), and file_fstat::update_internal().
|
protectedinherited |
Definition at line 168 of file file-stat.h.
Referenced by base_file_stat::operator=(), update_internal(), and file_fstat::update_internal().
|
protectedinherited |
Definition at line 189 of file file-stat.h.
Referenced by base_file_stat::operator=(), update_internal(), and file_fstat::update_internal().
|
protectedinherited |
Definition at line 177 of file file-stat.h.
Referenced by base_file_stat::operator=(), update_internal(), and file_fstat::update_internal().
|
protectedinherited |
Definition at line 171 of file file-stat.h.
Referenced by base_file_stat::operator=(), update_internal(), and file_fstat::update_internal().
|
protectedinherited |
Definition at line 150 of file file-stat.h.
Referenced by base_file_stat::operator=(), update_internal(), and file_fstat::update_internal().