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

#include "file-stat.h"

Inheritance diagram for base_file_stat:
file_fstat file_stat

Public Member Functions

 base_file_stat ()
 
 base_file_stat (const base_file_stat &fs)
 
sys::time atime () const
 
long blksize () const
 
long blocks () const
 
sys::time ctime () const
 
dev_t dev () const
 
std::string error () const
 
bool exists () const
 
gid_t gid () const
 
ino_t ino () const
 
bool is_blk () const
 
bool is_chr () const
 
bool is_dir () const
 
bool is_fifo () const
 
bool is_lnk () const
 
bool is_newer (const sys::time &time) const
 
bool is_reg () const
 
bool is_sock () const
 
mode_t mode () const
 
std::string mode_as_string () const
 
sys::time mtime () const
 
nlink_t nlink () const
 
bool ok () const
 
 operator bool () const
 
base_file_statoperator= (const base_file_stat &fs)
 
dev_t rdev () const
 
off_t size () const
 
sys::time time_resolution () const
 
uid_t uid () const
 

Static Public Member Functions

static bool have_struct_stat_st_blksize ()
 
static bool have_struct_stat_st_blocks ()
 
static bool have_struct_stat_st_rdev ()
 
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 ()=default
 

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
 

Detailed Description

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

Constructor & Destructor Documentation

◆ base_file_stat() [1/2]

base_file_stat::base_file_stat ( )
inline

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

◆ base_file_stat() [2/2]

base_file_stat::base_file_stat ( const base_file_stat fs)
inline

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

◆ ~base_file_stat()

virtual base_file_stat::~base_file_stat ( )
protectedvirtualdefault

Member Function Documentation

◆ atime()

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

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

◆ blksize()

long base_file_stat::blksize ( ) const
inline

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

◆ blocks()

long base_file_stat::blocks ( ) const
inline

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

◆ ctime()

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

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

◆ dev()

dev_t base_file_stat::dev ( ) const
inline

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

◆ error()

std::string base_file_stat::error ( ) const
inline

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

Referenced by dir_exists(), file_exists(), and octave::sys::recursive_rmdir().

◆ exists()

bool base_file_stat::exists ( ) const
inline

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

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

◆ gid()

gid_t base_file_stat::gid ( ) const
inline

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

◆ have_struct_stat_st_blksize()

bool base_file_stat::have_struct_stat_st_blksize ( )
static

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

References octave_have_struct_stat_st_blksize().

◆ have_struct_stat_st_blocks()

bool base_file_stat::have_struct_stat_st_blocks ( )
static

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

References octave_have_struct_stat_st_blocks().

◆ have_struct_stat_st_rdev()

bool base_file_stat::have_struct_stat_st_rdev ( )
static

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

References octave_have_struct_stat_st_rdev().

◆ ino()

ino_t base_file_stat::ino ( ) const
inline

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

◆ is_blk() [1/2]

bool base_file_stat::is_blk ( ) const

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

References exists(), and m_mode.

◆ is_blk() [2/2]

bool base_file_stat::is_blk ( mode_t  mode)
static

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

References mode(), and octave_is_blk_wrapper().

◆ is_chr() [1/2]

bool base_file_stat::is_chr ( ) const

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

References exists(), and m_mode.

◆ is_chr() [2/2]

bool base_file_stat::is_chr ( mode_t  mode)
static

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

References mode(), and octave_is_chr_wrapper().

◆ is_dir() [1/2]

bool base_file_stat::is_dir ( ) const

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

References exists(), and m_mode.

Referenced by dir_exists(), file_exists(), and octave::sys::recursive_rmdir().

◆ is_dir() [2/2]

bool base_file_stat::is_dir ( mode_t  mode)
static

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

References mode(), and octave_is_dir_wrapper().

◆ is_fifo() [1/2]

bool base_file_stat::is_fifo ( ) const

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

References exists(), and m_mode.

◆ is_fifo() [2/2]

bool base_file_stat::is_fifo ( mode_t  mode)
static

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

References mode(), and octave_is_fifo_wrapper().

◆ is_lnk() [1/2]

bool base_file_stat::is_lnk ( ) const

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

References exists(), and m_mode.

◆ is_lnk() [2/2]

bool base_file_stat::is_lnk ( mode_t  mode)
static

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

References mode(), and octave_is_lnk_wrapper().

◆ is_newer() [1/2]

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

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

References is_newer().

◆ is_newer() [2/2]

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

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

Referenced by is_newer().

◆ is_reg() [1/2]

bool base_file_stat::is_reg ( ) const

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

References exists(), and m_mode.

Referenced by file_exists().

◆ is_reg() [2/2]

bool base_file_stat::is_reg ( mode_t  mode)
static

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

References mode(), and octave_is_reg_wrapper().

◆ is_sock() [1/2]

bool base_file_stat::is_sock ( ) const

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

References exists(), and m_mode.

◆ is_sock() [2/2]

bool base_file_stat::is_sock ( mode_t  mode)
static

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

References mode(), and octave_is_sock_wrapper().

◆ mode()

mode_t base_file_stat::mode ( ) const
inline

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

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

◆ mode_as_string()

std::string base_file_stat::mode_as_string ( ) const

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

References m_mode, and octave_strmode_wrapper().

◆ mtime()

sys::time base_file_stat::mtime ( ) const
inline

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

Referenced by file_time::file_time().

◆ nlink()

nlink_t base_file_stat::nlink ( ) const
inline

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

◆ ok()

bool base_file_stat::ok ( ) const
inline

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

◆ operator bool()

base_file_stat::operator bool ( ) const
inline

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

◆ operator=()

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

◆ rdev()

dev_t base_file_stat::rdev ( ) const
inline

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

◆ size()

off_t base_file_stat::size ( ) const
inline

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

◆ time_resolution()

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

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

◆ uid()

uid_t base_file_stat::uid ( ) const
inline

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

Member Data Documentation

◆ m_atime

sys::time base_file_stat::m_atime
protected

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

Referenced by operator=().

◆ m_blksize

long base_file_stat::m_blksize
protected

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

Referenced by operator=().

◆ m_blocks

long base_file_stat::m_blocks
protected

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

Referenced by operator=().

◆ m_ctime

sys::time base_file_stat::m_ctime
protected

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

Referenced by operator=().

◆ m_dev

dev_t base_file_stat::m_dev
protected

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

Referenced by operator=().

◆ m_errmsg

std::string base_file_stat::m_errmsg
protected

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

Referenced by operator=().

◆ m_fail

bool base_file_stat::m_fail
protected

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

Referenced by operator=().

◆ m_gid

gid_t base_file_stat::m_gid
protected

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

Referenced by operator=().

◆ m_initialized

bool base_file_stat::m_initialized
protected

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

Referenced by operator=().

◆ m_ino

ino_t base_file_stat::m_ino
protected

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

Referenced by operator=().

◆ m_mode

mode_t base_file_stat::m_mode
protected

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

Referenced by is_blk(), is_chr(), is_dir(), is_fifo(), is_lnk(), is_reg(), is_sock(), mode_as_string(), and operator=().

◆ m_mtime

sys::time base_file_stat::m_mtime
protected

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

Referenced by operator=().

◆ m_nlink

nlink_t base_file_stat::m_nlink
protected

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

Referenced by operator=().

◆ m_rdev

dev_t base_file_stat::m_rdev
protected

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

Referenced by operator=().

◆ m_size

off_t base_file_stat::m_size
protected

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

Referenced by operator=().

◆ m_uid

uid_t base_file_stat::m_uid
protected

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

Referenced by operator=().


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