Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itk::Directory Class Reference
[OS System Objects]

Portable directory/filename traversal. More...

#include <itkDirectory.h>

Inheritance diagram for itk::Directory:

Inheritance graph
[legend]
Collaboration diagram for itk::Directory:

Collaboration graph
[legend]
List of all members.

Public Types

typedef Directory Self
typedef Object Superclass
typedef SmartPointer< SelfPointer
typedef SmartPointer< const
Self
ConstPointer

Public Member Functions

virtual const char * GetNameOfClass () const
bool Load (const char *dir)
std::vector< std::string
>::size_type 
GetNumberOfFiles ()
const char * GetFile (unsigned int index)

Static Public Member Functions

Pointer New ()

Protected Member Functions

 Directory ()
 ~Directory ()
virtual void PrintSelf (std::ostream &os, Indent indent) const

Detailed Description

Portable directory/filename traversal.

itkDirectory provides a portable way of finding the names of the files in a system directory.

itkDirectory works with windows and unix only.

Definition at line 39 of file itkDirectory.h.


Member Typedef Documentation

typedef SmartPointer<const Self> itk::Directory::ConstPointer
 

Reimplemented from itk::Object.

Definition at line 46 of file itkDirectory.h.

typedef SmartPointer<Self> itk::Directory::Pointer
 

Reimplemented from itk::Object.

Definition at line 45 of file itkDirectory.h.

Referenced by New().

typedef Directory itk::Directory::Self
 

Standard class typedefs.

Reimplemented from itk::Object.

Definition at line 43 of file itkDirectory.h.

Referenced by New().

typedef Object itk::Directory::Superclass
 

Reimplemented from itk::Object.

Definition at line 44 of file itkDirectory.h.


Constructor & Destructor Documentation

itk::Directory::Directory  )  [protected]
 

itk::Directory::~Directory  )  [protected]
 


Member Function Documentation

const char* itk::Directory::GetFile unsigned int  index  ) 
 

Return the file at the given index, the indexing is 0 based

virtual const char* itk::Directory::GetNameOfClass  )  const [virtual]
 

Return the class name as a string.

Reimplemented from itk::Object.

std::vector<std::string>::size_type itk::Directory::GetNumberOfFiles  )  [inline]
 

Return the number of files in the current directory.

Definition at line 61 of file itkDirectory.h.

bool itk::Directory::Load const char *  dir  ) 
 

Load the specified directory and load the names of the files in that directory. 0 is returned if the directory can not be opened, 1 if it is opened.

Pointer itk::Directory::New void   )  [inline, static]
 

Method for creation through the object factory.

Reimplemented from itk::Object.

Definition at line 49 of file itkDirectory.h.

References Pointer, Self, and itk::SmartPointer< Self >::UnRegister().

virtual void itk::Directory::PrintSelf std::ostream &  os,
Indent  indent
const [protected, virtual]
 

Methods invoked by Print() to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from itk::Object.


The documentation for this class was generated from the following file:
Generated at Thu May 25 00:49:01 2006 for ITK by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2000