| 66 | { |
| 67 | public: |
| 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 | |
| 84 | std::map<std::string, std::string> initMap() |
no test coverage detected