Public Member Functions | Static Public Member Functions | Protected Attributes | Private Member Functions | Private Attributes

file_fstat Class Reference

#include "file-stat.h"

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

List of all members.

Public Member Functions

 file_fstat (int n)
 file_fstat (const file_fstat &fs)
 ~file_fstat (void)
octave_time atime (void) const
long blksize (void) const
long blocks (void) const
octave_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_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_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_time time_resolution (void) const
uid_t uid (void) const

Static Public Member Functions

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_time &)
static bool is_reg (mode_t mode)
static bool is_sock (mode_t mode)

Protected Attributes

std::string errmsg
bool fail
octave_time fs_atime
long fs_blksize
long fs_blocks
octave_time fs_ctime
dev_t fs_dev
gid_t fs_gid
ino_t fs_ino
mode_t fs_mode
octave_time fs_mtime
nlink_t fs_nlink
dev_t fs_rdev
off_t fs_size
uid_t fs_uid
bool initialized

Private Member Functions

void update_internal (bool force=false)

Private Attributes

int fid

Detailed Description

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


Constructor & Destructor Documentation

file_fstat::file_fstat ( int  n  )  [inline]

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

file_fstat::file_fstat ( const file_fstat fs  )  [inline]

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

file_fstat::~file_fstat ( void   )  [inline]

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


Member Function Documentation

octave_time base_file_stat::atime ( void   )  const [inline, inherited]

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

Referenced by mk_stat_map().

long base_file_stat::blksize ( void   )  const [inline, inherited]

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

Referenced by mk_stat_map().

long base_file_stat::blocks ( void   )  const [inline, inherited]

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

Referenced by mk_stat_map().

octave_time base_file_stat::ctime ( void   )  const [inline, inherited]

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

Referenced by mk_stat_map().

dev_t base_file_stat::dev ( void   )  const [inline, inherited]

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

Referenced by mk_stat_map(), and same_file_internal().

std::string base_file_stat::error ( void   )  const [inline, inherited]
bool base_file_stat::exists ( void   )  const [inline, inherited]
void file_fstat::get_stats ( bool  force = false  )  [inline]

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

void file_fstat::get_stats ( int  n,
bool  force = false 
) [inline]

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

gid_t base_file_stat::gid ( void   )  const [inline, inherited]

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

Referenced by mk_stat_map().

ino_t base_file_stat::ino ( void   )  const [inline, inherited]

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

Referenced by mk_stat_map(), and same_file_internal().

bool base_file_stat::is_blk ( void   )  const [inherited]

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

References base_file_stat::exists(), and base_file_stat::fs_mode.

Referenced by DEFUNX().

bool base_file_stat::is_blk ( mode_t  mode  )  [static, inherited]

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

bool base_file_stat::is_chr ( mode_t  mode  )  [static, inherited]

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

bool base_file_stat::is_chr ( void   )  const [inherited]

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

References base_file_stat::exists(), and base_file_stat::fs_mode.

Referenced by DEFUNX().

bool base_file_stat::is_dir ( void   )  const [inherited]
bool base_file_stat::is_dir ( mode_t  mode  )  [static, inherited]

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

bool base_file_stat::is_fifo ( void   )  const [inherited]

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

References base_file_stat::exists(), and base_file_stat::fs_mode.

Referenced by DEFUNX().

bool base_file_stat::is_fifo ( mode_t  mode  )  [static, inherited]

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

bool base_file_stat::is_lnk ( void   )  const [inherited]

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

References base_file_stat::exists(), and base_file_stat::fs_mode.

Referenced by DEFUNX().

bool base_file_stat::is_lnk ( mode_t  mode  )  [static, inherited]

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

bool base_file_stat::is_newer ( const octave_time time  )  const [inline, inherited]
int base_file_stat::is_newer ( const std::string &  file,
const octave_time time 
) [static, inherited]

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

References base_file_stat::is_newer().

bool base_file_stat::is_reg ( void   )  const [inherited]

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

References base_file_stat::exists(), and base_file_stat::fs_mode.

Referenced by DEFUNX(), and find_file_to_load().

bool base_file_stat::is_reg ( mode_t  mode  )  [static, inherited]

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

bool base_file_stat::is_sock ( mode_t  mode  )  [static, inherited]

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

bool base_file_stat::is_sock ( void   )  const [inherited]

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

References base_file_stat::exists(), and base_file_stat::fs_mode.

Referenced by DEFUNX().

mode_t base_file_stat::mode ( void   )  const [inline, inherited]

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

Referenced by mk_stat_map().

std::string base_file_stat::mode_as_string ( void   )  const [inherited]

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

References base_file_stat::fs_mode.

Referenced by mk_stat_map().

octave_time base_file_stat::mtime ( void   )  const [inline, inherited]
nlink_t base_file_stat::nlink ( void   )  const [inline, inherited]

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

Referenced by mk_stat_map().

bool base_file_stat::ok ( void   )  const [inline, inherited]

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

base_file_stat::operator bool ( void   )  const [inline, inherited]

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

file_fstat& file_fstat::operator= ( const file_fstat fs  )  [inline]

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

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

dev_t base_file_stat::rdev ( void   )  const [inline, inherited]

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

Referenced by mk_stat_map().

off_t base_file_stat::size ( void   )  const [inline, inherited]

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

Referenced by mk_stat_map(), and snarf_file().

octave_time base_file_stat::time_resolution ( void   )  const [inline, inherited]

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

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

uid_t base_file_stat::uid ( void   )  const [inline, inherited]

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

Referenced by mk_stat_map().

void file_fstat::update_internal ( bool  force = false  )  [private]

Member Data Documentation

std::string base_file_stat::errmsg [protected, inherited]
bool base_file_stat::fail [protected, inherited]
int file_fstat::fid [private]

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

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

octave_time base_file_stat::fs_atime [protected, inherited]
long base_file_stat::fs_blksize [protected, inherited]
long base_file_stat::fs_blocks [protected, inherited]
octave_time base_file_stat::fs_ctime [protected, inherited]
dev_t base_file_stat::fs_dev [protected, inherited]
gid_t base_file_stat::fs_gid [protected, inherited]
ino_t base_file_stat::fs_ino [protected, inherited]
mode_t base_file_stat::fs_mode [protected, inherited]
octave_time base_file_stat::fs_mtime [protected, inherited]
nlink_t base_file_stat::fs_nlink [protected, inherited]
dev_t base_file_stat::fs_rdev [protected, inherited]
off_t base_file_stat::fs_size [protected, inherited]
uid_t base_file_stat::fs_uid [protected, inherited]
bool base_file_stat::initialized [protected, inherited]

The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines