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

lrt::IFilenameFilter Class Reference

The interface IFilenameFilter can be implemented by applications which wish to filter folder listings. More...

#include <rtfile.h>

Inheritance diagram for lrt::IFilenameFilter:

Inheritance graph
[legend]
List of all members.

Public Methods

virtual ~IFilenameFilter ()
 Destroys the filename filter.

virtual bool accept (const File &parent, const String &child) const=0
 Defines if a given file should be included in the folder listing. More...


Detailed Description

The interface IFilenameFilter can be implemented by applications which wish to filter folder listings.

The only method which needs to be overridden is accept().


Member Function Documentation

virtual bool lrt::IFilenameFilter::accept (  const File &    parent,
const String &    child
)  const [pure virtual]
 

Defines if a given file should be included in the folder listing.

This method must be implemented by all filename filters.

Parameters:
parent  The parent folder's file descriptor for the folder which is being listed.
child  The current child file name.
Returns:
true if and only if the file described by child should be included in the folder listing.

Implemented in lrt::StarFilenameFilter.


The documentation for this class was generated from the following file:
This is the RoboTour API documentation version 0.1 • Copyright (C) by Florian Fischer