Logo Search packages:      
Sourcecode: gdcm version File versions  Download package

gdcm::Directory Class Reference

#include <gdcmDirectory.h>

List of all members.

Detailed Description

Class for manipulation directories.

This implementation provide a cross platform implementation for manipulating directores: basically traversing directories and harvesting files

will not take into account unix type hidden file recursive option will not look into UNIX type hidden directory (those starting with a '.')

Since python or C# provide there own equivalent implementation, in which case gdcm::Directory does not make much sense.

Definition at line 43 of file gdcmDirectory.h.

Public Types

typedef std::vector< FilenameType > FilenamesType
typedef std::string FilenameType

Public Member Functions

FilenamesType const & GetDirectories () const
 Return the Directories traversed.
FilenamesType const & GetFilenames () const
 Set/Get the file names within the directory.
FilenameType const & GetToplevel () const
 Get the name of the toplevel directory.
unsigned int Load (FilenameType const &name, bool recursive=false)
void Print (std::ostream &os=std::cout) const

Protected Member Functions

unsigned int Explore (FilenameType const &name, bool recursive)
 Return number of file found when 'recursive'ly exploring directory `name`.

Private Attributes

FilenamesType Directories
FilenamesType Filenames
 List of file names.
FilenameType Toplevel
 name of the toplevel directory to explore


std::ostream & operator<< (std::ostream &_os, const Directory &d)

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index