MCPcopy Create free account
hub / github.com/PDAL/PDAL / openFile

Function openFile

pdal/PDALUtils.cpp:339–357  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

337}
338
339std::istream *openFile(const std::string& path, bool asBinary)
340{
341 if (isRemote(path))
342 {
343 arbiter::Arbiter a;
344 if (!a.hasDriver(path))
345 return nullptr;
346 try
347 {
348 return new ArbiterInStream(tempFilename(path), path,
349 asBinary ? ios::in | ios::binary : ios::in);
350 }
351 catch (arbiter::ArbiterError& e)
352 {
353 throw e;
354 }
355 }
356 return FileUtils::openFile(path, asBinary);
357}
358
359/**
360 Close an output stream.

Callers 15

readPipelineMethod · 0.70
readPipelineMethod · 0.70
unwrapMethod · 0.50
verifyMethod · 0.50
LasStreamIfMethod · 0.50
initializeMethod · 0.50
readyMethod · 0.50
readyMethod · 0.50
initializeMethod · 0.50
readyMethod · 0.50
readyMethod · 0.50
initializeMethod · 0.50

Calls 2

isRemoteFunction · 0.85
tempFilenameFunction · 0.85

Tested by 5

TESTFunction · 0.40
TESTFunction · 0.40
diff_geojsonFunction · 0.40
TESTFunction · 0.40
TESTFunction · 0.40