#include "file-stat.h"
Public Member Functions | |
file_stat (const file_stat &fs) | |
file_stat (const std::string &n="", bool fl=true) | |
~file_stat (void) | |
sys::time | atime (void) const |
long | blksize (void) const |
long | blocks (void) const |
sys::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 sys::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 |
sys::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 |
sys::time | time_resolution (void) const |
uid_t | uid (void) const |
Static Public Member Functions | |
static bool | have_struct_stat_st_blksize (void) |
static bool | have_struct_stat_st_blocks (void) |
static bool | have_struct_stat_st_rdev (void) |
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 sys::time &) |
static bool | is_reg (mode_t mode) |
static bool | is_sock (mode_t mode) |
Protected Attributes | |
sys::time | m_atime |
long | m_blksize |
long | m_blocks |
sys::time | m_ctime |
dev_t | m_dev |
std::string | m_errmsg |
bool | m_fail |
gid_t | m_gid |
bool | m_initialized |
ino_t | m_ino |
mode_t | m_mode |
sys::time | m_mtime |
nlink_t | m_nlink |
dev_t | m_rdev |
off_t | m_size |
uid_t | m_uid |
Private Member Functions | |
void | update_internal (bool force=false) |
Private Attributes | |
std::string | m_file_name |
bool | m_follow_links |
Definition at line 211 of file file-stat.h.
file_stat::file_stat | ( | const std::string & | n = "" , |
bool | fl = true |
||
) |
Definition at line 178 of file file-stat.cc.
References m_file_name, and update_internal().
|
inline |
Definition at line 221 of file file-stat.h.
file_stat::~file_stat | ( | void | ) |
Definition at line 185 of file file-stat.cc.
|
inlineinherited |
Definition at line 130 of file file-stat.h.
|
inlineinherited |
Definition at line 136 of file file-stat.h.
|
inlineinherited |
Definition at line 137 of file file-stat.h.
|
inlineinherited |
Definition at line 132 of file file-stat.h.
|
inlineinherited |
Definition at line 121 of file file-stat.h.
|
inlineinherited |
Definition at line 149 of file file-stat.h.
Referenced by recursive_rmdir().
|
inlineinherited |
Definition at line 147 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(), and base_file_stat::is_sock().
|
inline |
Definition at line 242 of file file-stat.h.
|
inline |
Definition at line 248 of file file-stat.h.
References n.
|
inlineinherited |
Definition at line 126 of file file-stat.h.
|
staticinherited |
Definition at line 143 of file file-stat.cc.
References octave_have_struct_stat_st_blksize().
|
staticinherited |
Definition at line 149 of file file-stat.cc.
References octave_have_struct_stat_st_blocks().
|
staticinherited |
Definition at line 137 of file file-stat.cc.
References octave_have_struct_stat_st_rdev().
|
inlineinherited |
Definition at line 120 of file file-stat.h.
|
staticinherited |
Definition at line 95 of file file-stat.cc.
References base_file_stat::mode(), and octave_is_blk_wrapper().
|
inherited |
Definition at line 53 of file file-stat.cc.
References base_file_stat::exists(), and base_file_stat::m_mode.
|
staticinherited |
Definition at line 101 of file file-stat.cc.
References base_file_stat::mode(), and octave_is_chr_wrapper().
|
inherited |
Definition at line 59 of file file-stat.cc.
References base_file_stat::exists(), and base_file_stat::m_mode.
|
staticinherited |
Definition at line 107 of file file-stat.cc.
References base_file_stat::mode(), and octave_is_dir_wrapper().
|
inherited |
Definition at line 65 of file file-stat.cc.
References base_file_stat::exists(), and base_file_stat::m_mode.
Referenced by recursive_rmdir().
|
staticinherited |
Definition at line 113 of file file-stat.cc.
References base_file_stat::mode(), and octave_is_fifo_wrapper().
|
inherited |
Definition at line 71 of file file-stat.cc.
References base_file_stat::exists(), and base_file_stat::m_mode.
|
staticinherited |
Definition at line 119 of file file-stat.cc.
References base_file_stat::mode(), and octave_is_lnk_wrapper().
|
inherited |
Definition at line 77 of file file-stat.cc.
References base_file_stat::exists(), and base_file_stat::m_mode.
|
staticinherited |
Definition at line 168 of file file-stat.cc.
References base_file_stat::is_newer().
|
inlineinherited |
Definition at line 152 of file file-stat.h.
Referenced by base_file_stat::is_newer().
|
staticinherited |
Definition at line 125 of file file-stat.cc.
References base_file_stat::mode(), and octave_is_reg_wrapper().
|
inherited |
Definition at line 83 of file file-stat.cc.
References base_file_stat::exists(), and base_file_stat::m_mode.
|
staticinherited |
Definition at line 131 of file file-stat.cc.
References base_file_stat::mode(), and octave_is_sock_wrapper().
|
inherited |
Definition at line 89 of file file-stat.cc.
References base_file_stat::exists(), and base_file_stat::m_mode.
|
inlineinherited |
Definition at line 139 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(), and base_file_stat::is_sock().
|
inherited |
Definition at line 155 of file file-stat.cc.
References base_file_stat::m_mode, and octave_strmode_wrapper().
|
inlineinherited |
Definition at line 131 of file file-stat.h.
|
inlineinherited |
Definition at line 123 of file file-stat.h.
|
inlineinherited |
Definition at line 143 of file file-stat.h.
|
inlineinherited |
Definition at line 145 of file file-stat.h.
Definition at line 225 of file file-stat.h.
References m_file_name, m_follow_links, and base_file_stat::operator=().
|
inlineinherited |
Definition at line 134 of file file-stat.h.
|
inlineinherited |
Definition at line 128 of file file-stat.h.
|
inlineinherited |
Definition at line 89 of file file-stat.h.
|
inlineinherited |
Definition at line 125 of file file-stat.h.
|
private |
Definition at line 188 of file file-stat.cc.
References is_dir_sep(), regexp::is_match(), base_file_stat::m_atime, base_file_stat::m_blksize, base_file_stat::m_blocks, base_file_stat::m_ctime, base_file_stat::m_dev, base_file_stat::m_errmsg, base_file_stat::m_fail, m_file_name, m_follow_links, base_file_stat::m_gid, base_file_stat::m_initialized, base_file_stat::m_ino, base_file_stat::m_mode, base_file_stat::m_mtime, base_file_stat::m_nlink, base_file_stat::m_rdev, base_file_stat::m_size, base_file_stat::m_uid, make_absolute(), octave_lstat_wrapper(), octave_stat_wrapper(), and tilde_expand().
Referenced by file_stat().
|
protectedinherited |
Definition at line 193 of file file-stat.h.
Referenced by base_file_stat::operator=(), update_internal(), and file_fstat::update_internal().
|
protectedinherited |
Definition at line 205 of file file-stat.h.
Referenced by base_file_stat::operator=(), update_internal(), and file_fstat::update_internal().
|
protectedinherited |
Definition at line 208 of file file-stat.h.
Referenced by base_file_stat::operator=(), update_internal(), and file_fstat::update_internal().
|
protectedinherited |
Definition at line 199 of file file-stat.h.
Referenced by base_file_stat::operator=(), update_internal(), and file_fstat::update_internal().
|
protectedinherited |
Definition at line 178 of file file-stat.h.
Referenced by base_file_stat::operator=(), update_internal(), and file_fstat::update_internal().
|
protectedinherited |
Definition at line 169 of file file-stat.h.
Referenced by base_file_stat::operator=(), update_internal(), and file_fstat::update_internal().
|
protectedinherited |
Definition at line 166 of file file-stat.h.
Referenced by base_file_stat::operator=(), update_internal(), and file_fstat::update_internal().
|
private |
Definition at line 263 of file file-stat.h.
Referenced by file_stat(), operator=(), and update_internal().
|
private |
Definition at line 267 of file file-stat.h.
Referenced by operator=(), and update_internal().
|
protectedinherited |
Definition at line 187 of file file-stat.h.
Referenced by base_file_stat::operator=(), update_internal(), and file_fstat::update_internal().
|
protectedinherited |
Definition at line 163 of file file-stat.h.
Referenced by base_file_stat::operator=(), update_internal(), and file_fstat::update_internal().
|
protectedinherited |
Definition at line 175 of file file-stat.h.
Referenced by base_file_stat::operator=(), update_internal(), and file_fstat::update_internal().
|
protectedinherited |
Definition at line 172 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 196 of file file-stat.h.
Referenced by base_file_stat::operator=(), update_internal(), and file_fstat::update_internal().
|
protectedinherited |
Definition at line 181 of file file-stat.h.
Referenced by base_file_stat::operator=(), update_internal(), and file_fstat::update_internal().
|
protectedinherited |
Definition at line 202 of file file-stat.h.
Referenced by base_file_stat::operator=(), update_internal(), and file_fstat::update_internal().
|
protectedinherited |
Definition at line 190 of file file-stat.h.
Referenced by base_file_stat::operator=(), update_internal(), and file_fstat::update_internal().
|
protectedinherited |
Definition at line 184 of file file-stat.h.
Referenced by base_file_stat::operator=(), update_internal(), and file_fstat::update_internal().