MCPcopy Create free account
hub / github.com/FreeCAD/FreeCAD / readInputFileDirect

Method readInputFileDirect

src/App/ProjectFile.cpp:722–729  ·  view source on GitHub ↗

Read the given input file from the zip directly into the given stream (not using a temporary file)

Source from the content-addressed store, hash-verified

720// Read the given input file from the zip directly into the given stream (not using a temporary
721// file)
722void ProjectFile::readInputFileDirect(const std::string& name, std::ostream& str) const
723{
724 zipios::ZipFile project(stdFile);
725 std::unique_ptr<std::istream> istr(project.getInputStream(name));
726 if (istr) {
727 *istr >> str.rdbuf();
728 }
729}
730
731std::string ProjectFile::replaceInputFile(const std::string& name, std::istream& inp)
732{

Callers 2

loadFCStdThumbnailFunction · 0.80
TEST_FFunction · 0.80

Calls 1

getInputStreamMethod · 0.45

Tested by

no test coverage detected