#include <basestrm.h>
Public Types | |
| enum | SearchPosition { DefaultDir, CurrentDir, PrimaryDir, AllDirs } |
| enum | SearchTypes { InsideContainer, OutsideContainer, All } |
Public Member Functions | |
| tfindfile (ASCString name, SearchPosition searchPosition=DefaultDir, SearchTypes searchTypes=All) | |
| Searches for files matching the wildcard name in all search paths specified for ASC and inside the ASC archive files. | |
| ASCString | getnextname (int *loc=NULL, bool *inContainer=NULL, ASCString *location=NULL) |
| Returns the next entry of the internal file list. | |
| bool | getnextname (FileInfo &fi) |
| int | getFoundFileNum () |
Classes | |
| struct | FileInfo |
Definition at line 506 of file basestrm.h.
|
|
Definition at line 549 of file basestrm.h. |
|
|
Definition at line 550 of file basestrm.h. |
|
||||||||||||||||
|
Searches for files matching the wildcard name in all search paths specified for ASC and inside the ASC archive files. If name contains a relative directory entry ( like music / *.mp3 ), searchPosition specifies, which directories will be searched for the file. Note that "Current" may be problemativ in unix environments, because the program may be started from any directory. Definition at line 1809 of file basestrm.cpp. References All, AllDirs, ASC_direct, ascDirectory, closedir(), constructFileName(), convertPathDelimitters(), CurrentDir, tfindfile::FileInfo::date, DefaultDir, tfindfile::FileInfo::directoryLevel, ContainerCollector::getfirstname(), ContainerCollector::getnextname(), has_drive_letters, InsideContainer, tfindfile::FileInfo::isInContainer, tfindfile::FileInfo::location, maxSearchDirNum, tfindfile::FileInfo::name, opendir(), OutsideContainer, pathdelimitter, pathdelimitterstring, patimat(), readdir(), searchDirNum, tfindfile::FileInfo::size, strcmpi, and stricmp. |
|
|
Definition at line 568 of file basestrm.h. Referenced by StartMultiplayerGame::Apply(). |
|
|
Definition at line 2018 of file basestrm.cpp. |
|
||||||||||||||||
|
Returns the next entry of the internal file list. Optionally, some additional information about the file can be returned:
Definition at line 1990 of file basestrm.cpp. Referenced by StartMultiplayerGame::Apply(), continuenetworkgame(), exist(), FileCache::FileCache(), FileSelectionItemFactory::FileSelectionItemFactory(), findNextCampaignMap(), getnextfilenumname(), loadalltextfiles(), GraphicSetManager_Base::loadData(), loadGame(), loadmessages(), loadStartupMap(), loadUnitSets(), process_ASC_map(), process_BI_map(), readtextmessage(), MusicPlayList::reset(), SaveGameBaseDialog::SaveGameBaseDialog(), and FileTransfer::send(). |
1.4.2