Used to define a set of files to search or index
File
File: dtsearch.h
Syntax
C++
struct dtsFileSpec {
const char * includeFilters;
const char * excludeFilters;
char dir[FileNameLen];
char dirListName[FileNameLen];
char fileListName[FileNameLen];
const char * dirList;
};
Data Members
Data Member |
Description |
---|---|
Directory to scan using the filters. Deprecated: Use dirList. | |
Null-delimited string set containing list of directories to scan using the filters | |
Name of file containing list of directories to scan using the filters | |
Filename filters used to exclude files in selected directories. Must point to a null-delimited string set, terminated by a double-null. If not used, initialize to 0. Filename filters containing a slash (/ or \) are matched against the full path and filename. Filename filters without a slash (/ or \) are matched against only the filename. | |
Name of file containing list of files. | |
Filename filters to apply to files in the directories selected. Must point to a null-delimited string set, terminated by a double-null. If not used, initialize to 0. Filename filters containing a slash (/ or \) are matched against the full path and filename. Filename filters without a slash (/ or \) are matched against only the filename. |
Group
Members
Data Members
Data Member |
Description |
---|---|
Directory to scan using the filters. Deprecated: Use dirList. | |
Null-delimited string set containing list of directories to scan using the filters | |
Name of file containing list of directories to scan using the filters | |
Filename filters used to exclude files in selected directories. Must point to a null-delimited string set, terminated by a double-null. If not used, initialize to 0. Filename filters containing a slash (/ or \) are matched against the full path and filename. Filename filters without a slash (/ or \) are matched against only the filename. | |
Name of file containing list of files. | |
Filename filters to apply to files in the directories selected. Must point to a null-delimited string set, terminated by a double-null. If not used, initialize to 0. Filename filters containing a slash (/ or \) are matched against the full path and filename. Filename filters without a slash (/ or \) are matched against only the filename. |
Methods
Method |
Description |
---|---|
Clear all data | |
Copy data from another dtsFileSpec (shallow copy) | |
Constructor |
Methods
Method |
Description |
---|---|
Clear all data | |
Copy data from another dtsFileSpec (shallow copy) | |
Constructor |
Remarks
fileListName provides a way to simply pass a list of files to search or index.
Alternatively, the calling program can ask dtSearch to list the files in one directory (the dir member) or in a list of directories (the dirListName member), using the supplied include and exclude filters.
To specify a directory and all subdirectories, add a <+> symbol at the end, like this: C:DOCS<+>