2005/5/9

     
 

class GlobFilenameFilter

artefaktur
Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   Namespace Members   Compound Members   Related Pages  

acdk::io::GlobFilenameFilter Class Reference

#include <GlobFilenameFilter.h>

Inheritance diagram for acdk::io::GlobFilenameFilter:

acdk::lang::Object acdk::io::FilenameFilter acdk::io::FileFilter acdk::lang::ObjectBase acdk::lang::dmi::StdDispatch List of all members.

Detailed Description

Provides simply Globbing with pattern like '*.h' API: Java Extended
Using fnmatch on unix system, and a similar (propably less powerfull) matching function on NT.

Author:
Roger Rene Kommer (mailto:kommer@artefaktur.com)
Version:
Revision
1.11
Date:
Date
2005/02/05 10:44:54


Public Member Functions

 GlobFilenameFilter (IN(RString) pattern)
virtual bool accept (IN(RFile) dir, IN(RString) name)
virtual bool accept (IN(RFile) path)

Static Protected Member Functions

bool match (const char *pattern, const char *fname)
bool mm_fnmatch (const char *pattern, const char *string)
 a simple fnmatch clone

const char * mm_rangematch (const char *pattern, char test)
 helper for mm_fnmatch


Private Attributes

RString _pattern


Constructor & Destructor Documentation

acdk::io::GlobFilenameFilter::GlobFilenameFilter IN(RString pattern  )  [inline]
 


Member Function Documentation

virtual bool acdk::io::GlobFilenameFilter::accept IN(RFile path  )  [virtual]
 

Implements acdk::io::FileFilter.

virtual bool acdk::io::GlobFilenameFilter::accept IN(RFile dir,
IN(RString name
[virtual]
 

Implements acdk::io::FilenameFilter.

bool acdk::io::GlobFilenameFilter::match const char *  pattern,
const char *  fname
[static, protected]
 

bool acdk::io::GlobFilenameFilter::mm_fnmatch const char *  pattern,
const char *  string
[static, protected]
 

a simple fnmatch clone

Parameters:
pattern The Pattern like *.h
string A String to test, like HeaderFile.h return Returns true if matching

const char* acdk::io::GlobFilenameFilter::mm_rangematch const char *  pattern,
char  test
[static, protected]
 

helper for mm_fnmatch


Member Data Documentation

RString acdk::io::GlobFilenameFilter::_pattern [private]