| 13 | namespace generator |
| 14 | { |
| 15 | void UnpackMwm(std::string const & filePath) |
| 16 | { |
| 17 | LOG(LINFO, ("Unpacking mwm sections...")); |
| 18 | |
| 19 | FilesContainerR container(filePath); |
| 20 | std::vector<std::string> tags; |
| 21 | container.ForEachTag(base::MakeBackInsertFunctor<std::vector<std::string>>(tags)); |
| 22 | |
| 23 | for (size_t i = 0; i < tags.size(); ++i) |
| 24 | { |
| 25 | LOG(LINFO, ("Unpacking", tags[i])); |
| 26 | |
| 27 | ReaderSource<FilesContainerR::TReader> reader(container.GetReader(tags[i])); |
| 28 | FileWriter writer(filePath + "." + tags[i]); |
| 29 | |
| 30 | rw::ReadAndWrite(reader, writer, 1024 * 1024); |
| 31 | } |
| 32 | |
| 33 | LOG(LINFO, ("Unpacking done.")); |
| 34 | } |
| 35 | |
| 36 | void DeleteSection(std::string const & filePath, std::string const & tag) |
| 37 | { |
no test coverage detected