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

Function readFileList

kernels/TIndexKernel.cpp:302–317  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

300}
301
302StringList readFileList(const std::string& filename)
303{
304 std::istream* in = Utils::openFile(filename);
305 if (!in)
306 throw pdal_error("Unable to open filelist '" + filename + "'");
307 std::string line;
308 StringList output;
309 while (std::getline(*in, line))
310 {
311 Utils::trim(line);
312 if (!line.empty())
313 output.push_back(line);
314 }
315 FileUtils::closeFile(in);
316 return output;
317}
318
319
320bool TIndexKernel::isFileIndexed(const FieldIndexes& indexes,

Callers 1

createFileMethod · 0.85

Calls 4

trimFunction · 0.85
openFileFunction · 0.50
closeFileFunction · 0.50
emptyMethod · 0.45

Tested by

no test coverage detected