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

CppDir::File Class Reference

< A simple file. More...

#include <cppdir.h>

List of all members.

Public Types

typedef unsigned long size_type
enum  Type {
  UNKNOWN = 0, FIFO = 1, CHAR = 2, DIR = 4,
  BLOCK = 6, REGULAR = 8
}
 < possible file types. More...


Public Methods

 File (struct dirent d, std::string path)
 File (std::string path, std::string name)
 File (std::string path)
bool is_valid () const
bool operator! () const
std::string get_name () const
Type get_type () const
long get_inode () const
std::string get_path () const
size_type get_size () const
size_type get_ksize () const
size_type get_msize () const
size_type get_gsize () const
size_type get_date () const
 last change date. More...

size_type get_access_date () const
 last access date. More...


Private Methods

Type get_type (const std::string &name)

Private Attributes

std::string name
 name of the file. More...

Type type
 file type. More...

long inode_number
 inode number. More...

bool valid
 is a valid file? More...

std::string path
size_type file_size
size_type date
size_type access_date
bool err


Detailed Description

< A simple file.


Member Typedef Documentation

typedef unsigned long CppDir::File::size_type
 


Member Enumeration Documentation

enum CppDir::File::Type
 

< possible file types.

Enumeration values:
UNKNOWN  unknown file type.
FIFO  fifo.
CHAR  character device.
DIR  directory.
BLOCK  blockdevice.
REGULAR  regular file.


Constructor & Destructor Documentation

CppDir::File::File struct dirent    d,
std::string    path
 

extract file informations from the dirent structure

CppDir::File::File std::string    path,
std::string    name
 

CppDir::File::File std::string    f
 


Member Function Documentation

size_type CppDir::File::get_access_date   const [inline]
 

last access date.

size_type CppDir::File::get_date   const [inline]
 

last change date.

size_type CppDir::File::get_gsize   const [inline]
 

long CppDir::File::get_inode   const [inline]
 

size_type CppDir::File::get_ksize   const [inline]
 

size_type CppDir::File::get_msize   const [inline]
 

std::string CppDir::File::get_name   const [inline]
 

std::string CppDir::File::get_path   const [inline]
 

size_type CppDir::File::get_size   const [inline]
 

CppDir::File::Type CppDir::File::get_type const std::string &    name [private]
 

Type CppDir::File::get_type   const [inline]
 

bool CppDir::File::is_valid   const [inline]
 

bool CppDir::File::operator!   const [inline]
 


Member Data Documentation

size_type CppDir::File::access_date [private]
 

size_type CppDir::File::date [private]
 

bool CppDir::File::err [private]
 

size_type CppDir::File::file_size [private]
 

long CppDir::File::inode_number [private]
 

inode number.

std::string CppDir::File::name [private]
 

name of the file.

std::string CppDir::File::path [private]
 

Type CppDir::File::type [private]
 

file type.

bool CppDir::File::valid [private]
 

is a valid file?


The documentation for this class was generated from the following files:
Generated on Tue Nov 20 02:19:58 2001 for Leo<HTML> by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001