Inheritance diagram for CP_FileFilter:
Public Member Functions | |
virtual bool | IsAcceptable (const CP_FileSystemSpec &inSpec) |
Constructor / Destructor | |
CP_FileFilter () | |
Constructor. | |
CP_FileFilter (CP_FileFilterSignal *inFilterSignal) | |
CP_FileFilter (UInt32 inNumberTypes, UInt32 inFileTypes[]) | |
virtual | ~CP_FileFilter () throw () |
Destructor. | |
Filter Signal | |
CP_FileFilterSignal * | GetFilterSignal () |
void | SetFilterSignal (CP_FileFilterSignal *inSignal) |
Protected Attributes | |
CP_FileFilterSignal * | fFilterSignal |
CP_FileTypes_Array | fFileTypes |
|
Constructor.
|
|
Constructor. This version supplies a signal to be called that allows the user full control over how to determine if a file is filtered by this object. The signal takes 2 parameters:
|
|
Constructor. This version supplies an array of file types to be checked for. If a file with a file type listed in he passed in array is encountered, then it is accepted by this filter. Otherwise any file type not matching one of the passed in types is rejected.
|
|
Destructor.
|
|
|
|
|
|
Test routine to check if the passed in CP_FileSystemSpec object is to be filtered out. If the user has supplied a filter signal that will be called to determine if the file is filtered, otherwise the file types set by the user is used.
|
|
Add a reference to our object, returning the new reference count.
|
|
Remove a reference to our object, returning the new reference count. If the count is 0, then this object is also deleted, and 0 is returned.
|
|
Add the object to the topmost auto-release pool. This will ensure that the object is eventually released.
|
|
Returns the current ref count.
|
|
|
|
|