| 165 | } |
| 166 | |
| 167 | Task::UniquePtr TaskFactory::create(TaskType type) { |
| 168 | auto i = registry_.find(type); |
| 169 | if (i != registry_.end() && i->second) { |
| 170 | return i->second->clone(); |
| 171 | } |
| 172 | return nullptr; |
| 173 | } |
| 174 | |
| 175 | static int setModeAndPrintStructure(Exiv2::PrintStructureOption option, const std::string& path, bool binary) { |
| 176 | int result = 0; |