GNU Octave  4.2.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Member Functions | Static Public Member Functions | Protected Attributes | Private Member Functions | Private Attributes | List of all members
octave::sys::file_fstat Class Reference

#include "file-stat.h"

Inheritance diagram for octave::sys::file_fstat:
Inheritance graph
[legend]
Collaboration diagram for octave::sys::file_fstat:
Collaboration graph
[legend]

Public Member Functions

 file_fstat (int n)
 
 file_fstat (const file_fstat &fs)
 
 ~file_fstat (void)
 
octave::sys::time atime (void) const
 
long blksize (void) const
 
long blocks (void) const
 
octave::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 (int 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::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
 
octave::sys::time mtime (void) const
 
nlink_t nlink (void) const
 
bool ok (void) const
 
 operator bool () const
 
file_fstatoperator= (const file_fstat &fs)
 
dev_t rdev (void) const
 
off_t size (void) const
 
octave::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 octave::sys::time &)
 
static bool is_reg (mode_t mode)
 
static bool is_sock (mode_t mode)
 

Protected Attributes

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

int fid
 

Detailed Description

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

Constructor & Destructor Documentation

octave::sys::file_fstat::file_fstat ( int  n)
inline

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

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

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

octave::sys::file_fstat::~file_fstat ( void  )
inline

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

Member Function Documentation

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

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

Referenced by mk_stat_map().

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

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

Referenced by mk_stat_map().

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

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

Referenced by mk_stat_map().

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

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

Referenced by mk_stat_map().

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

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

Referenced by mk_stat_map(), and same_file_internal().

std::string octave::sys::base_file_stat::error ( void  ) const
inlineinherited
bool octave::sys::base_file_stat::exists ( void  ) const
inlineinherited
void octave::sys::file_fstat::get_stats ( bool  force = false)
inline

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

void octave::sys::file_fstat::get_stats ( int  n,
bool  force = false 
)
inline

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

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

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

Referenced by mk_stat_map().

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

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

References octave_have_struct_stat_st_blksize().

Referenced by mk_stat_map().

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

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

References octave_have_struct_stat_st_blocks().

Referenced by mk_stat_map().

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

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

References octave_have_struct_stat_st_rdev().

Referenced by mk_stat_map().

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

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

Referenced by mk_stat_map(), and same_file_internal().

bool octave::sys::base_file_stat::is_blk ( void  ) const
inherited
bool octave::sys::base_file_stat::is_blk ( mode_t  mode)
staticinherited

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

References octave_is_blk_wrapper().

bool octave::sys::base_file_stat::is_chr ( void  ) const
inherited
bool octave::sys::base_file_stat::is_chr ( mode_t  mode)
staticinherited

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

References octave_is_chr_wrapper().

bool octave::sys::base_file_stat::is_dir ( void  ) const
inherited
bool octave::sys::base_file_stat::is_dir ( mode_t  mode)
staticinherited

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

References octave_is_dir_wrapper().

bool octave::sys::base_file_stat::is_fifo ( void  ) const
inherited
bool octave::sys::base_file_stat::is_fifo ( mode_t  mode)
staticinherited

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

References octave_is_fifo_wrapper().

bool octave::sys::base_file_stat::is_lnk ( void  ) const
inherited
bool octave::sys::base_file_stat::is_lnk ( mode_t  mode)
staticinherited

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

References octave_is_lnk_wrapper().

bool octave::sys::base_file_stat::is_newer ( const octave::sys::time time) const
inlineinherited
int octave::sys::base_file_stat::is_newer ( const std::string file,
const octave::sys::time time 
)
staticinherited

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

References fs, and octave::sys::base_file_stat::is_newer().

bool octave::sys::base_file_stat::is_reg ( void  ) const
inherited
bool octave::sys::base_file_stat::is_reg ( mode_t  mode)
staticinherited

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

References octave_is_reg_wrapper().

bool octave::sys::base_file_stat::is_sock ( void  ) const
inherited
bool octave::sys::base_file_stat::is_sock ( mode_t  mode)
staticinherited

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

References octave_is_sock_wrapper().

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

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

Referenced by mk_stat_map().

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

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

References octave::sys::base_file_stat::m_mode, octave_strmode_wrapper(), and string.

Referenced by mk_stat_map().

octave::sys::time octave::sys::base_file_stat::mtime ( void  ) const
inlineinherited
nlink_t octave::sys::base_file_stat::nlink ( void  ) const
inlineinherited

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

Referenced by mk_stat_map().

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

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

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

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

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

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

References fid, and octave::sys::base_file_stat::operator=().

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

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

Referenced by mk_stat_map().

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

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

Referenced by mk_stat_map(), and snarf_file().

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

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

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

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

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

Referenced by mk_stat_map().

void octave::sys::file_fstat::update_internal ( bool  force = false)
private

Member Data Documentation

std::string octave::sys::base_file_stat::errmsg
protectedinherited
bool octave::sys::base_file_stat::fail
protectedinherited
int octave::sys::file_fstat::fid
private

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

Referenced by operator=(), and update_internal().

bool octave::sys::base_file_stat::initialized
protectedinherited
octave::sys::time octave::sys::base_file_stat::m_atime
protectedinherited
long octave::sys::base_file_stat::m_blksize
protectedinherited
long octave::sys::base_file_stat::m_blocks
protectedinherited
octave::sys::time octave::sys::base_file_stat::m_ctime
protectedinherited
dev_t octave::sys::base_file_stat::m_dev
protectedinherited
gid_t octave::sys::base_file_stat::m_gid
protectedinherited
ino_t octave::sys::base_file_stat::m_ino
protectedinherited
mode_t octave::sys::base_file_stat::m_mode
protectedinherited
octave::sys::time octave::sys::base_file_stat::m_mtime
protectedinherited
nlink_t octave::sys::base_file_stat::m_nlink
protectedinherited
dev_t octave::sys::base_file_stat::m_rdev
protectedinherited
off_t octave::sys::base_file_stat::m_size
protectedinherited
uid_t octave::sys::base_file_stat::m_uid
protectedinherited

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