| 454 | } |
| 455 | |
| 456 | void |
| 457 | ZipArchive::CheckAndAddToArchivedNames(std::string const& archiveEntry) |
| 458 | { |
| 459 | std::clog << "Adding file " << archiveEntry << " ..." << std::endl; |
| 460 | // add the current file to the new archive |
| 461 | if (!archivedNames.insert(archiveEntry).second) |
| 462 | { |
| 463 | throw std::runtime_error("A file already exists with the name " + archiveEntry); |
| 464 | } |
| 465 | } |
| 466 | |
| 467 | void |
| 468 | ZipArchive::AddManifestFile(rapidjson::Document const& manifest) |