#include <cascade/util/CascadeFSObject.h>
Inheritance diagram for CascadeFSObject::Selector:
Public Types | |
enum | SelectorTypeFilter { eInvalid = 0, eFiles = 1, eDirectories = 2, eBoth = 3 } |
Public Member Functions | |
Selector () | |
virtual | ~Selector () |
destructor | |
virtual bool | Match (CascadeFSObject &inObject)=0 |
void | SetSelectorTypeFilter (SelectorTypeFilter inFilter) |
Protected Attributes | |
SelectorTypeFilter | mFilter |
|
|
|
default constructor The default constructor assumes that you wish to find both files and directories. Use SetSelectorTypeFilter() to change this value. |
|
destructor
|
|
pure virtual definition of the Match function Subclasses must override the Match function, which takes a CascadeFSObject as an argument (by reference) and returns true if the object is a match, or false if not.
Implemented in CascadeFSObject::RegexpSelector, CascadeFSObject::PermissionsSelector, and CascadeFSObject::TypeSelector. |
|
accessor to set selector type Use this accessor to set the selector type. eFiles indicates that only files should be passed to the filter, while directories never match. eDirectories is the opposite. eBoth indicates that both files and directories should be tested. |
|
|