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

Function readFileIntoString

pdal/util/FileUtils.cpp:331–343  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

329
330
331std::string readFileIntoString(const std::string& filename)
332{
333 std::string str;
334
335 std::istream* stream = openFile(filename, false);
336 if (stream)
337 {
338 str.assign((std::istreambuf_iterator<char>(*stream)),
339 std::istreambuf_iterator<char>());
340 closeFile(stream);
341 }
342 return str;
343}
344
345
346std::string getcwd()

Callers 13

getWKTFunction · 0.85
getJSONFunction · 0.85
TESTFunction · 0.85
TESTFunction · 0.85
TESTFunction · 0.85
TESTFunction · 0.85
TESTFunction · 0.85
makeJSONPipelineMethod · 0.85
writeInitMethod · 0.85
doneMethod · 0.85
readyMethod · 0.85

Calls 2

openFileFunction · 0.70
closeFileFunction · 0.70

Tested by 7

getWKTFunction · 0.68
getJSONFunction · 0.68
TESTFunction · 0.68
TESTFunction · 0.68
TESTFunction · 0.68
TESTFunction · 0.68
TESTFunction · 0.68