Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

FX::FXStat Class Reference

Statistics about a file or directory. More...

#include <FXStat.h>

List of all members.

Public Member Functions

FXuint mode () const
FXlong size () const
FXuint user () const
FXuint group () const
FXuint links () const
FXlong volume () const
FXlong index () const
FXTime modified () const
FXTime accessed () const
FXTime created () const
FXbool isHidden () const
FXbool isFile () const
FXbool isLink () const
FXbool isCharacter () const
FXbool isBlock () const
FXbool isSocket () const
FXbool isFifo () const
FXbool isDirectory () const
FXbool isReadable () const
FXbool isWritable () const
FXbool isExecutable () const
FXbool isOwnerReadWriteExecute () const
FXbool isOwnerReadable () const
FXbool isOwnerWritable () const
FXbool isOwnerExecutable () const
FXbool isGroupReadWriteExecute () const
FXbool isGroupReadable () const
FXbool isGroupWritable () const
FXbool isGroupExecutable () const
FXbool isOtherReadWriteExecute () const
FXbool isOtherReadable () const
FXbool isOtherWritable () const
FXbool isOtherExecutable () const
FXbool isSetUid () const
FXbool isSetGid () const
FXbool isSetSticky () const

Static Public Member Functions

static FXbool statFile (const FXString &file, FXStat &info)
static FXbool statLink (const FXString &file, FXStat &info)
static FXbool stat (const FXFile &file, FXStat &info)
static FXuint mode (const FXString &file)
static FXbool mode (const FXString &file, FXuint perm)
static FXbool exists (const FXString &file)
static FXlong size (const FXString &file)
static FXlong volume (const FXString &file)
static FXlong index (const FXString &file)
static FXuint links (const FXString &file)
static FXTime modified (const FXString &file)
static FXTime accessed (const FXString &file)
static FXTime created (const FXString &file)
static FXbool isHidden (const FXString &file)
static FXbool isFile (const FXString &file)
static FXbool isLink (const FXString &file)
static FXbool isDirectory (const FXString &file)
static FXbool isReadable (const FXString &file)
static FXbool isWritable (const FXString &file)
static FXbool isExecutable (const FXString &file)
static FXbool isOwnerReadWriteExecute (const FXString &file)
static FXbool isOwnerReadable (const FXString &file)
static FXbool isOwnerWritable (const FXString &file)
static FXbool isOwnerExecutable (const FXString &file)
static FXbool isGroupReadWriteExecute (const FXString &file)
static FXbool isGroupReadable (const FXString &file)
static FXbool isGroupWritable (const FXString &file)
static FXbool isGroupExecutable (const FXString &file)
static FXbool isOtherReadWriteExecute (const FXString &file)
static FXbool isOtherReadable (const FXString &file)
static FXbool isOtherWritable (const FXString &file)
static FXbool isOtherExecutable (const FXString &file)
static FXbool isSetUid (const FXString &file)
static FXbool isSetGid (const FXString &file)
static FXbool isSetSticky (const FXString &file)

Friends

class FXFile


Detailed Description

Statistics about a file or directory.

Member Function Documentation

static FXbool FX::FXStat::statFile ( const FXString file,
FXStat info 
) [static]

Get statistics of the file into the stat buffer info.

static FXbool FX::FXStat::statLink ( const FXString file,
FXStat info 
) [static]

Get statistice of the link into the stat buffer info.

static FXbool FX::FXStat::stat ( const FXFile file,
FXStat info 
) [static]

Get statistics of already open file into stat buffer info.

FXuint FX::FXStat::mode (  )  const [inline]

Return the mode flags for this file.

FXlong FX::FXStat::size (  )  const [inline]

Return file size in bytes.

FXuint FX::FXStat::user (  )  const [inline]

Return user number.

FXuint FX::FXStat::group (  )  const [inline]

Return group number.

FXuint FX::FXStat::links (  )  const [inline]

Return number of links to file.

FXlong FX::FXStat::volume (  )  const [inline]

Return file volume number.

FXlong FX::FXStat::index (  )  const [inline]

Return file index number.

FXTime FX::FXStat::modified (  )  const [inline]

Return time when last modified, in nanoseconds.

FXTime FX::FXStat::accessed (  )  const [inline]

Return time when last accessed, in nanoseconds.

FXTime FX::FXStat::created (  )  const [inline]

Return time when file was created, in nanoseconds.

FXbool FX::FXStat::isHidden (  )  const

Return true if it is a hidden file (Windows-only).

FXbool FX::FXStat::isFile (  )  const

Return true if it is a regular file.

FXbool FX::FXStat::isLink (  )  const

Return true if it is a link.

FXbool FX::FXStat::isCharacter (  )  const

Return true if character device.

FXbool FX::FXStat::isBlock (  )  const

Return true if block device.

FXbool FX::FXStat::isSocket (  )  const

Return true if socket device.

FXbool FX::FXStat::isFifo (  )  const

Return true if fifo (pipe) device.

FXbool FX::FXStat::isDirectory (  )  const

Return true if input path is a directory.

FXbool FX::FXStat::isReadable (  )  const

Return true if file is readable.

FXbool FX::FXStat::isWritable (  )  const

Return true if file is writable.

FXbool FX::FXStat::isExecutable (  )  const

Return true if file is executable.

FXbool FX::FXStat::isOwnerReadWriteExecute (  )  const

Return true if owner has read-write-execute permissions.

FXbool FX::FXStat::isOwnerReadable (  )  const

Return true if owner has read permissions.

FXbool FX::FXStat::isOwnerWritable (  )  const

Return true if owner has write permissions.

FXbool FX::FXStat::isOwnerExecutable (  )  const

Return true if owner has execute permissions.

FXbool FX::FXStat::isGroupReadWriteExecute (  )  const

Return true if group has read-write-execute permissions.

FXbool FX::FXStat::isGroupReadable (  )  const

Return true if group has read permissions.

FXbool FX::FXStat::isGroupWritable (  )  const

Return true if group has write permissions.

FXbool FX::FXStat::isGroupExecutable (  )  const

Return true if group has execute permissions.

FXbool FX::FXStat::isOtherReadWriteExecute (  )  const

Return true if others have read-write-execute permissions.

FXbool FX::FXStat::isOtherReadable (  )  const

Return true if others have read permissions.

FXbool FX::FXStat::isOtherWritable (  )  const

Return true if others have write permissions.

FXbool FX::FXStat::isOtherExecutable (  )  const

Return true if others have execute permissions.

FXbool FX::FXStat::isSetUid (  )  const

Return true if the file sets the user id on execution.

FXbool FX::FXStat::isSetGid (  )  const

Return true if the file sets the group id on execution.

FXbool FX::FXStat::isSetSticky (  )  const

Return true if the file has the sticky bit set.

static FXuint FX::FXStat::mode ( const FXString file  )  [static]

Return the mode flags for this file.

static FXbool FX::FXStat::mode ( const FXString file,
FXuint  perm 
) [static]

Change the mode flags for this file.

static FXbool FX::FXStat::exists ( const FXString file  )  [static]

Return true if file exists.

static FXlong FX::FXStat::size ( const FXString file  )  [static]

Return file size in bytes.

static FXlong FX::FXStat::volume ( const FXString file  )  [static]

Return file volume number.

static FXlong FX::FXStat::index ( const FXString file  )  [static]

Return file index number.

static FXuint FX::FXStat::links ( const FXString file  )  [static]

Return number of links to file.

static FXTime FX::FXStat::modified ( const FXString file  )  [static]

Return last modified time for this file, on filesystems where this is supported.

This is the time when any data in the file was last modified, in nanoseconds since Epoch.

static FXTime FX::FXStat::accessed ( const FXString file  )  [static]

Return last accessed time for this file, on filesystems where this is supported, in nanoseconds since Epoch.

static FXTime FX::FXStat::created ( const FXString file  )  [static]

Return created time for this file, on filesystems where this is supported.

This is also the time when ownership, permissions, links, and other meta-data may have changed, in nanoseconds since Epoch.

static FXbool FX::FXStat::isHidden ( const FXString file  )  [static]

Return true if file is hidden.

static FXbool FX::FXStat::isFile ( const FXString file  )  [static]

Return true if input path is a file name.

static FXbool FX::FXStat::isLink ( const FXString file  )  [static]

Return true if input path is a link.

static FXbool FX::FXStat::isDirectory ( const FXString file  )  [static]

Return true if input path is a directory.

static FXbool FX::FXStat::isReadable ( const FXString file  )  [static]

Return true if file is readable.

static FXbool FX::FXStat::isWritable ( const FXString file  )  [static]

Return true if file is writable.

static FXbool FX::FXStat::isExecutable ( const FXString file  )  [static]

Return true if file is executable.

static FXbool FX::FXStat::isOwnerReadWriteExecute ( const FXString file  )  [static]

Return true if owner has read-write-execute permissions.

static FXbool FX::FXStat::isOwnerReadable ( const FXString file  )  [static]

Return true if owner has read permissions.

static FXbool FX::FXStat::isOwnerWritable ( const FXString file  )  [static]

Return true if owner has write permissions.

static FXbool FX::FXStat::isOwnerExecutable ( const FXString file  )  [static]

Return true if owner has execute permissions.

static FXbool FX::FXStat::isGroupReadWriteExecute ( const FXString file  )  [static]

Return true if group has read-write-execute permissions.

static FXbool FX::FXStat::isGroupReadable ( const FXString file  )  [static]

Return true if group has read permissions.

static FXbool FX::FXStat::isGroupWritable ( const FXString file  )  [static]

Return true if group has write permissions.

static FXbool FX::FXStat::isGroupExecutable ( const FXString file  )  [static]

Return true if group has execute permissions.

static FXbool FX::FXStat::isOtherReadWriteExecute ( const FXString file  )  [static]

Return true if others have read-write-execute permissions.

static FXbool FX::FXStat::isOtherReadable ( const FXString file  )  [static]

Return true if others have read permissions.

static FXbool FX::FXStat::isOtherWritable ( const FXString file  )  [static]

Return true if others have write permissions.

static FXbool FX::FXStat::isOtherExecutable ( const FXString file  )  [static]

Return true if others have execute permissions.

static FXbool FX::FXStat::isSetUid ( const FXString file  )  [static]

Return true if the file sets the user id on execution.

static FXbool FX::FXStat::isSetGid ( const FXString file  )  [static]

Return true if the file sets the group id on execution.

static FXbool FX::FXStat::isSetSticky ( const FXString file  )  [static]

Return true if the file has the sticky bit set.


Friends And Related Function Documentation

friend class FXFile [friend]

Copyright © 1997-2009 Jeroen van der Zijp