Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members | Related Pages | Examples

P::FileInfo Class Reference
[Core library]

Filesystem object info class. More...

#include <pfileinfo.h>

List of all members.

Public Types

typedef off_t fsize_t
enum  ftype_t {
  Unknown, File, Directory, CharDevice,
  BlockDevice, Link, Pipe
}
 Filesystem object type. More...


Public Member Functions

 FileInfo (const char *path) throw (IOError)
 FileInfo (const FileInfo &fi)
 ~FileInfo ()
const std::string & dirName () const throw ()
 Returns the name of the directory (may be relative).

std::string absDirName () const throw (SystemError)
 Returns the absolute directory name.

const std::string & name () const throw ()
 Returns the name of the filesystem object.

std::string path () const throw ()
 Returns the full path to the filesystem object.

std::string absPath () const throw (SystemError)
 Returns the full absolute path to the filesystem object.

fsize_t size () const throw ()
 Returns the size of the filesystem object.

ftype_t type () const throw ()
 Returns the type of the filesystem object.

const DateTimectime () const throw ()
 Returns the creation time.

const DateTimemtime () const throw ()
 Returns the last-modified time.

const DateTimeatime () const throw ()
 Returns the last-accessed time.

FileInfooperator= (const FileInfo &fi) throw ()


Detailed Description

Filesystem object info class.

Author:
Christian Prochnow <cproch@seculogix.de>

Definition at line 36 of file pfileinfo.h.


Member Typedef Documentation

typedef off_t P::FileInfo::fsize_t
 

Definition at line 39 of file pfileinfo.h.


Member Enumeration Documentation

enum P::FileInfo::ftype_t
 

Filesystem object type.

Enumeration values:
Unknown  Unknown file type
File  Regular file
Directory  Directory
CharDevice  Character device
BlockDevice  Block device
Link  Filesystem link
Pipe  Anonymous-/Namedpipe

Definition at line 45 of file pfileinfo.h.


Constructor & Destructor Documentation

P::FileInfo::FileInfo const char *  path  )  throw (IOError)
 

P::FileInfo::FileInfo const FileInfo fi  ) 
 

P::FileInfo::~FileInfo  ) 
 


Member Function Documentation

std::string P::FileInfo::absDirName  )  const throw (SystemError)
 

Returns the absolute directory name.

std::string P::FileInfo::absPath  )  const throw (SystemError)
 

Returns the full absolute path to the filesystem object.

const DateTime& P::FileInfo::atime  )  const throw () [inline]
 

Returns the last-accessed time.

Definition at line 93 of file pfileinfo.h.

const DateTime& P::FileInfo::ctime  )  const throw () [inline]
 

Returns the creation time.

Definition at line 85 of file pfileinfo.h.

const std::string& P::FileInfo::dirName  )  const throw () [inline]
 

Returns the name of the directory (may be relative).

Definition at line 60 of file pfileinfo.h.

const DateTime& P::FileInfo::mtime  )  const throw () [inline]
 

Returns the last-modified time.

Definition at line 89 of file pfileinfo.h.

const std::string& P::FileInfo::name  )  const throw () [inline]
 

Returns the name of the filesystem object.

Definition at line 67 of file pfileinfo.h.

FileInfo& P::FileInfo::operator= const FileInfo fi  )  throw ()
 

std::string P::FileInfo::path  )  const throw ()
 

Returns the full path to the filesystem object.

fsize_t P::FileInfo::size  )  const throw () [inline]
 

Returns the size of the filesystem object.

Definition at line 77 of file pfileinfo.h.

ftype_t P::FileInfo::type  )  const throw () [inline]
 

Returns the type of the filesystem object.

Definition at line 81 of file pfileinfo.h.


The documentation for this class was generated from the following file:
Generated on Fri Mar 12 21:08:33 2004 for P::Classes by doxygen 1.3.3