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

Method open

src/App/ProjectFile.cpp:68–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66{
67public:
68 static std::unique_ptr<zipios::ZipFile> open(const std::string& file)
69 {
70 std::unique_ptr<zipios::ZipFile> project;
71 try {
72 project = std::make_unique<zipios::ZipFile>(file);
73 if (!project->isValid()) {
74 project.reset();
75 }
76 }
77 catch (const std::exception&) {
78 }
79
80 return project;
81 }
82};
83
84std::map<std::string, std::string> initMap()

Callers 2

readFileMethod · 0.45

Calls 2

isValidMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected