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

#include "file-stat.h"

Inheritance diagram for file_stat:
base_file_stat

Public Member Functions

 file_stat (const file_stat &fs)
 
 file_stat (const std::string &n="", bool fl=true)
 
 ~file_stat ()
 
void get_stats (bool force=false)
 
void get_stats (const std::string &n, bool force=false)
 
file_statoperator= (const file_stat &fs)
 
- Public Member Functions inherited from base_file_stat
 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
 

Additional Inherited Members

- Static Public Member Functions inherited from base_file_stat
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 inherited from base_file_stat
virtual ~base_file_stat ()=default
 
- Protected Attributes inherited from base_file_stat
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 211 of file file-stat.h.

Constructor & Destructor Documentation

◆ file_stat() [1/2]

file_stat::file_stat ( const std::string &  n = "",
bool  fl = true 
)

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

◆ file_stat() [2/2]

file_stat::file_stat ( const file_stat fs)
inline

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

◆ ~file_stat()

file_stat::~file_stat ( )

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

Member Function Documentation

◆ get_stats() [1/2]

void file_stat::get_stats ( bool  force = false)
inline

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

◆ get_stats() [2/2]

void file_stat::get_stats ( const std::string &  n,
bool  force = false 
)
inline

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

References n.

◆ operator=()

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

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

References base_file_stat::operator=().


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