MCPcopy Create free account
hub / github.com/OSGeo/gdal / CPLFindFile

Function CPLFindFile

port/cpl_findfile.cpp:164–180  ·  view source on GitHub ↗

CPLFindFile */

Source from the content-addressed store, hash-verified

162
163/** CPLFindFile */
164const char *CPLFindFile(const char *pszClass, const char *pszBasename)
165
166{
167 FindFileTLS *pTLSData = CPLFinderInit();
168 if (pTLSData == nullptr)
169 return nullptr;
170
171 for (int i = pTLSData->nFileFinders - 1; i >= 0; i--)
172 {
173 const char *pszResult =
174 (pTLSData->papfnFinders[i])(pszClass, pszBasename);
175 if (pszResult != nullptr)
176 return pszResult;
177 }
178
179 return nullptr;
180}
181
182/************************************************************************/
183/* CPLPushFileFinder() */

Callers 15

lookupInDictMethod · 0.85
FindCodeFromDictFunction · 0.85
OpenMethod · 0.85
ParseConfMethod · 0.85
ICreateLayerMethod · 0.85
ParseMethod · 0.85
GetDefaultConfFileMethod · 0.85
LoadMethod · 0.85
FindFileMethod · 0.85
OpenMethod · 0.85
OGRVDVLoadVDV452TablesFunction · 0.85

Calls 1

CPLFinderInitFunction · 0.85

Tested by

no test coverage detected