![]() | InDesign SDK 20.5 |
#include <IDirectoryUtility.h>
Classes | |
| class | OnSysFileFunction |
Public Types | |
| typedef ::boost::function1 < bool16, IDirectoryUtility * > | FileMatch |
Public Member Functions | |
| IDirectoryUtility (FileMatch matchFunc) | |
| virtual | ~IDirectoryUtility () |
| virtual void | AddPath (const IDFile &fileSpec)=0 |
| bool16 | IsMatch () |
| virtual bool16 | First (IDFile *resultFile)=0 |
| virtual bool16 | Next (IDFile *resultFile)=0 |
| virtual bool16 | CurrentMatchFile (IDFile *resultFile) const =0 |
| virtual void | ForEachFileInFolder (OnSysFileFunction &onSysFile)=0 |
Static Public Member Functions | |
| static bool16 | DefaultFileMatchFun (IDirectoryUtility *) |
Protected Attributes | |
| FileMatch | fMatchFunction |
Utility interface that iterates over a set of paths and returns the files contained by the paths. The returned files may be filtered by a given filtering/match function.
Note: aliases are resolved on the Mac, but shortcuts are NOT resolved on Windows.
| typedef ::boost::function1<bool16, IDirectoryUtility*> IDirectoryUtility::FileMatch |
The caller may supply a filter function that filters files before they are returned from Next. Only files that match will be returned.
| inline |
Constructor. Constructs an IDirectoryUtility object.
| matchFunc | IN Function used to filters file. |
| inlinevirtual |
Destructor. Destroys the IDirectoryUtility object.
| pure virtual |
Add a new path to the list of items that will be iterated.
| fileSpec | IN Path to add; may be a path to a directory or file. |
| pure virtual |
Gets the current matching file.
| resultFile | OUT Pointer to an existing IDFile object that is set to the current matching file. |
| pure virtual |
Gets the first matching file.
| resultFile | OUT Pointer to an existing IDFile object that is set to the first matching file. |
| pure virtual |
Iterates all the files in the files and folders added to this object and calls onSysFile on them.
| onSysFile | IN Class containing OnSysFile function to call. |
| inline |
Test if the current file is a match.
| pure virtual |
Gets next file matching file.
| resultFile | OUT Pointer to an existing IDFile object that is set to the next matching file. |
| protected |
Function used to test for matching files.