GNU Octave  4.4.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
octave::sys::base_file_stat Class Reference

#include "file-stat.h"

Inheritance diagram for octave::sys::base_file_stat:
Collaboration diagram for octave::sys::base_file_stat:

Public Member Functions

 base_file_stat (void)
 
 base_file_stat (const base_file_stat &fs)
 
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
 
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
 
base_file_statoperator= (const base_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 Member Functions

virtual ~base_file_stat (void)=default
 

Protected Attributes

std::string errmsg
 
bool fail
 
bool initialized
 
sys::time m_atime
 
long m_blksize
 
long m_blocks
 
sys::time m_ctime
 
dev_t m_dev
 
gid_t m_gid
 
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
 

Detailed Description

Definition at line 38 of file file-stat.h.

Constructor & Destructor Documentation

◆ base_file_stat() [1/2]

octave::sys::base_file_stat::base_file_stat ( void  )
inline

Definition at line 44 of file file-stat.h.

◆ base_file_stat() [2/2]

octave::sys::base_file_stat::base_file_stat ( const base_file_stat fs)
inline

Definition at line 50 of file file-stat.h.

◆ ~base_file_stat()

virtual octave::sys::base_file_stat::~base_file_stat ( void  )
protectedvirtualdefault

Member Function Documentation

◆ atime()

sys::time octave::sys::base_file_stat::atime ( void  ) const
inline

Definition at line 127 of file file-stat.h.

Referenced by mk_stat_map().

◆ blksize()

long octave::sys::base_file_stat::blksize ( void  ) const
inline

Definition at line 133 of file file-stat.h.

Referenced by mk_stat_map().

◆ blocks()

long octave::sys::base_file_stat::blocks ( void  ) const
inline

Definition at line 134 of file file-stat.h.

Referenced by mk_stat_map().

◆ ctime()

sys::time octave::sys::base_file_stat::ctime ( void  ) const
inline

Definition at line 129 of file file-stat.h.

Referenced by mk_stat_map().

◆ dev()

dev_t octave::sys::base_file_stat::dev ( void  ) const
inline

Definition at line 118 of file file-stat.h.

Referenced by mk_stat_map(), and same_file_internal().

◆ error()

std::string octave::sys::base_file_stat::error ( void  ) const
inline

◆ exists()

◆ gid()

gid_t octave::sys::base_file_stat::gid ( void  ) const
inline

Definition at line 123 of file file-stat.h.

Referenced by mk_stat_map().

◆ have_struct_stat_st_blksize()

bool octave::sys::base_file_stat::have_struct_stat_st_blksize ( void  )
static

Definition at line 135 of file file-stat.cc.

References octave_have_struct_stat_st_blksize().

Referenced by mk_stat_map().

◆ have_struct_stat_st_blocks()

bool octave::sys::base_file_stat::have_struct_stat_st_blocks ( void  )
static

Definition at line 141 of file file-stat.cc.

References octave_have_struct_stat_st_blocks().

Referenced by mk_stat_map().

◆ have_struct_stat_st_rdev()

bool octave::sys::base_file_stat::have_struct_stat_st_rdev ( void  )
static

Definition at line 129 of file file-stat.cc.

References octave_have_struct_stat_st_rdev().

Referenced by mk_stat_map().

◆ ino()

ino_t octave::sys::base_file_stat::ino ( void  ) const
inline

Definition at line 117 of file file-stat.h.

Referenced by mk_stat_map(), and same_file_internal().

◆ is_blk() [1/2]

bool octave::sys::base_file_stat::is_blk ( void  ) const

Definition at line 45 of file file-stat.cc.

References exists(), and m_mode.

◆ is_blk() [2/2]

bool octave::sys::base_file_stat::is_blk ( mode_t  mode)
static

Definition at line 87 of file file-stat.cc.

References mode(), and octave_is_blk_wrapper().

◆ is_chr() [1/2]

bool octave::sys::base_file_stat::is_chr ( void  ) const

Definition at line 51 of file file-stat.cc.

References exists(), and m_mode.

◆ is_chr() [2/2]

bool octave::sys::base_file_stat::is_chr ( mode_t  mode)
static

Definition at line 93 of file file-stat.cc.

References mode(), and octave_is_chr_wrapper().

◆ is_dir() [1/2]

◆ is_dir() [2/2]

bool octave::sys::base_file_stat::is_dir ( mode_t  mode)
static

Definition at line 99 of file file-stat.cc.

References mode(), and octave_is_dir_wrapper().

◆ is_fifo() [1/2]

bool octave::sys::base_file_stat::is_fifo ( void  ) const

Definition at line 63 of file file-stat.cc.

References exists(), and m_mode.

◆ is_fifo() [2/2]

bool octave::sys::base_file_stat::is_fifo ( mode_t  mode)
static

Definition at line 105 of file file-stat.cc.

References mode(), and octave_is_fifo_wrapper().

◆ is_lnk() [1/2]

bool octave::sys::base_file_stat::is_lnk ( void  ) const

Definition at line 69 of file file-stat.cc.

References exists(), and m_mode.

◆ is_lnk() [2/2]

bool octave::sys::base_file_stat::is_lnk ( mode_t  mode)
static

Definition at line 111 of file file-stat.cc.

References mode(), and octave_is_lnk_wrapper().

◆ is_newer() [1/2]

bool octave::sys::base_file_stat::is_newer ( const sys::time time) const
inline

◆ is_newer() [2/2]

int octave::sys::base_file_stat::is_newer ( const std::string file,
const sys::time time 
)
static

Definition at line 160 of file file-stat.cc.

References file, fs, and is_newer().

◆ is_reg() [1/2]

bool octave::sys::base_file_stat::is_reg ( void  ) const

Definition at line 75 of file file-stat.cc.

References exists(), and m_mode.

Referenced by find_file_to_load(), find_private_file(), and octave::xzip().

◆ is_reg() [2/2]

bool octave::sys::base_file_stat::is_reg ( mode_t  mode)
static

Definition at line 117 of file file-stat.cc.

References mode(), and octave_is_reg_wrapper().

◆ is_sock() [1/2]

bool octave::sys::base_file_stat::is_sock ( void  ) const

Definition at line 81 of file file-stat.cc.

References exists(), and m_mode.

◆ is_sock() [2/2]

bool octave::sys::base_file_stat::is_sock ( mode_t  mode)
static

Definition at line 123 of file file-stat.cc.

References mode(), and octave_is_sock_wrapper().

◆ mode()

mode_t octave::sys::base_file_stat::mode ( void  ) const
inline

Definition at line 136 of file file-stat.h.

Referenced by is_blk(), is_chr(), is_dir(), is_fifo(), is_lnk(), is_reg(), is_sock(), and mk_stat_map().

◆ mode_as_string()

std::string octave::sys::base_file_stat::mode_as_string ( void  ) const

Definition at line 147 of file file-stat.cc.

References m_mode, octave_strmode_wrapper(), and string.

Referenced by mk_stat_map().

◆ mtime()

◆ nlink()

nlink_t octave::sys::base_file_stat::nlink ( void  ) const
inline

Definition at line 120 of file file-stat.h.

Referenced by mk_stat_map().

◆ ok()

bool octave::sys::base_file_stat::ok ( void  ) const
inline

Definition at line 140 of file file-stat.h.

References initialized.

◆ operator bool()

octave::sys::base_file_stat::operator bool ( ) const
inline

Definition at line 142 of file file-stat.h.

◆ operator=()

base_file_stat& octave::sys::base_file_stat::operator= ( const base_file_stat fs)
inline

◆ rdev()

dev_t octave::sys::base_file_stat::rdev ( void  ) const
inline

Definition at line 131 of file file-stat.h.

Referenced by mk_stat_map().

◆ size()

off_t octave::sys::base_file_stat::size ( void  ) const
inline

Definition at line 125 of file file-stat.h.

Referenced by mk_stat_map(), and octave::file_info::snarf_file().

◆ time_resolution()

sys::time octave::sys::base_file_stat::time_resolution ( void  ) const
inline

Definition at line 86 of file file-stat.h.

Referenced by octave::load_path::dir_info::update().

◆ uid()

uid_t octave::sys::base_file_stat::uid ( void  ) const
inline

Definition at line 122 of file file-stat.h.

Referenced by mk_stat_map().

Member Data Documentation

◆ errmsg

std::string octave::sys::base_file_stat::errmsg
protected

◆ fail

bool octave::sys::base_file_stat::fail
protected

◆ initialized

bool octave::sys::base_file_stat::initialized
protected

◆ m_atime

sys::time octave::sys::base_file_stat::m_atime
protected

◆ m_blksize

long octave::sys::base_file_stat::m_blksize
protected

◆ m_blocks

long octave::sys::base_file_stat::m_blocks
protected

◆ m_ctime

sys::time octave::sys::base_file_stat::m_ctime
protected

◆ m_dev

dev_t octave::sys::base_file_stat::m_dev
protected

◆ m_gid

gid_t octave::sys::base_file_stat::m_gid
protected

◆ m_ino

ino_t octave::sys::base_file_stat::m_ino
protected

◆ m_mode

mode_t octave::sys::base_file_stat::m_mode
protected

◆ m_mtime

sys::time octave::sys::base_file_stat::m_mtime
protected

◆ m_nlink

nlink_t octave::sys::base_file_stat::m_nlink
protected

◆ m_rdev

dev_t octave::sys::base_file_stat::m_rdev
protected

◆ m_size

off_t octave::sys::base_file_stat::m_size
protected

◆ m_uid

uid_t octave::sys::base_file_stat::m_uid
protected

The documentation for this class was generated from the following files: