Scanner to scan for a particular type of FIOS file.  
 More...
| 
Public Member Functions | 
|  | FiosFileScanner (SaveLoadOperation fop, fios_getlist_callback_proc *callback_proc, FileList &file_list) | 
|  | Create the scanner. 
 | 
| bool | AddFile (const char *filename, size_t basepath_length, const char *tar_filename) | 
|  | Try to add a fios item set with the given filename. 
 | 
| virtual | ~FileScanner () | 
|  | Destruct the proper one... 
 | 
| uint | Scan (const char *extension, Subdirectory sd, bool tars=true, bool recursive=true) | 
|  | Scan for files with the given extension in the given search path. 
 | 
| uint | Scan (const char *extension, const char *directory, bool recursive=true) | 
|  | Scan for files with the given extension in the given search path. 
 | 
| 
Additional Inherited Members | 
| Subdirectory | subdir | 
|  | The current sub directory we are searching through. 
 | 
Detailed Description
Scanner to scan for a particular type of FIOS file. 
Definition at line 282 of file fios.cpp.
Constructor & Destructor Documentation
Create the scanner. 
- Parameters
- 
  
    | fop | Purpose of collecting the list. |  | callback_proc | The function that is called where you need to do the filtering. |  | file_list | Destination of the found files. |  
 
Definition at line 293 of file fios.cpp.
 
 
Member Function Documentation
  
  | 
        
          | bool FiosFileScanner::AddFile | ( | const char * | filename, |  
          |  |  | size_t | basepath_length, |  
          |  |  | const char * | tar_filename |  
          |  | ) |  |  |  | virtual | 
 
Try to add a fios item set with the given filename. 
- Parameters
- 
  
    | filename | the full path to the file to read |  | basepath_length | amount of characters to chop of before to get a relative filename |  
 
- Returns
- true if the file is added. 
Implements FileScanner.
Definition at line 306 of file fios.cpp.
References FileList::Append(), FileList::Begin(), callback_proc, FileList::End(), file_list, fop, lastof, OTTD2FS(), str_validate(), strecpy(), and StrEmpty().
 
 
The documentation for this class was generated from the following file: