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

CppDir::Directory Class Reference

< class representing a directory. More...

#include <cppdir.h>

List of all members.

Public Types

typedef std::list< Filefile_list
typedef file_list::iterator file_list_it

Public Methods

 Directory (std::string pname)
 Directory (File file)
bool is_valid () const
bool operator! () const
file_list get_files ()

Private Methods

bool open (File file)
 opens the directory. More...

bool open (std::string fname)
 opens the directory. More...

void close ()
 closes the directory. More...


Private Attributes

std::string name
 directory name. More...

bool valid
 true if the directory is valid. More...

file_list files
 list of file withen the directory. More...

bool is_open
 true if the directory is open. More...

DIR * dir
 directory HANDLE. More...


Detailed Description

< class representing a directory.


Member Typedef Documentation

typedef std::list<File> CppDir::Directory::file_list
 

typedef file_list::iterator CppDir::Directory::file_list_it
 


Constructor & Destructor Documentation

CppDir::Directory::Directory std::string    pname
 

CppDir::Directory::Directory File    file
 


Member Function Documentation

void CppDir::Directory::close   [private]
 

closes the directory.

file_list CppDir::Directory::get_files   [inline]
 

returns the list of files that the directory contains

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

bool CppDir::Directory::open std::string    fname [private]
 

opens the directory.

bool CppDir::Directory::open File    file [private]
 

opens the directory.

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


Member Data Documentation

DIR* CppDir::Directory::dir [private]
 

directory HANDLE.

file_list CppDir::Directory::files [private]
 

list of file withen the directory.

bool CppDir::Directory::is_open [private]
 

true if the directory is open.

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

directory name.

bool CppDir::Directory::valid [private]
 

true if the directory is valid.


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