ubit::UDir Class Reference

directory. More...

#include <udir.hpp>

List of all members.

Public Member Functions

 UDir (const UStr &dirpath)
void readDir (const UStr &path, int path_type, const UStr &prefix, const UStr &filter, bool hidden_files)
 opens this directory and gets file entries.
UStrgetPath () const
 returns the full pathname of the directory note: UDir normalizes the pathname: getPath() may return a value that differs from the argument given to the constructor
std::vector< UFileInfo * > getFileInfos () const
UFileInfogetFileInfo (int k) const
 returns the (filtered) file entries of the directory.
unsigned int getFileCount () const
 returns the entry count.

Static Public Member Functions

static void expandDirPath (UStr &dirpath)

Protected Member Functions

void readLocalDir (const UStr &path, const UStr &prefix, const UStr &filter, bool hidden_files)
void readSshDir (const UStr &path, const UStr &prefix, const UStr &filter, bool hidden_files)

Static Protected Member Functions

static bool compareEntries (const UFileInfo *, const UFileInfo *)
static void parseFilter (std::vector< UStr * > &filter_list, const UStr &filter_str)

Protected Attributes

UFileInfo dir_info
std::vector< UFileInfo * > files
std::vector< UStr * > filters

Friends

class UIconbox


Detailed Description

directory.


Member Function Documentation

UFileInfo* ubit::UDir::getFileInfo ( int  k  )  const

returns the (filtered) file entries of the directory.

Notes:

void ubit::UDir::readDir ( const UStr path,
int  path_type,
const UStr prefix,
const UStr filter,
bool  hidden_files 
)

opens this directory and gets file entries.

Args:


The documentation for this class was generated from the following files:
Generated on Mon Jan 29 00:20:48 2007 for Ubit by  doxygen 1.4.7