MCPcopy Create free account
hub / github.com/Kitware/VTK / open

Method open

ThirdParty/libproj/vtklibproj/src/networkfilemanager.cpp:233–247  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

231// ---------------------------------------------------------------------------
232
233std::unique_ptr<DiskChunkCache> DiskChunkCache::open(PJ_CONTEXT *ctx) {
234 if (!pj_context_get_grid_cache_is_enabled(ctx)) {
235 return nullptr;
236 }
237 const auto cachePath = pj_context_get_grid_cache_filename(ctx);
238 if (cachePath.empty()) {
239 return nullptr;
240 }
241
242 auto diskCache =
243 std::unique_ptr<DiskChunkCache>(new DiskChunkCache(ctx, cachePath));
244 if (!diskCache->initialize())
245 diskCache.reset();
246 return diskCache;
247}
248
249// ---------------------------------------------------------------------------
250

Callers 3

readMethod · 0.45
proj_is_download_neededFunction · 0.45
proj_download_fileFunction · 0.45

Calls 15

pj_logFunction · 0.85
proj_context_errno_setFunction · 0.85
GetNewRetryDelayFunction · 0.85
sleep_msFunction · 0.85
maxFunction · 0.50
minFunction · 0.50
emptyMethod · 0.45
initializeMethod · 0.45
resetMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected