| 153 | } |
| 154 | |
| 155 | TaskFactory::TaskFactory() { |
| 156 | registry_.emplace(adjust, std::make_unique<Adjust>()); |
| 157 | registry_.emplace(print, std::make_unique<Print>()); |
| 158 | registry_.emplace(rename, std::make_unique<Rename>()); |
| 159 | registry_.emplace(erase, std::make_unique<Erase>()); |
| 160 | registry_.emplace(extract, std::make_unique<Extract>()); |
| 161 | registry_.emplace(insert, std::make_unique<Insert>()); |
| 162 | registry_.emplace(modify, std::make_unique<Modify>()); |
| 163 | registry_.emplace(fixiso, std::make_unique<FixIso>()); |
| 164 | registry_.emplace(fixcom, std::make_unique<FixCom>()); |
| 165 | } |
| 166 | |
| 167 | Task::UniquePtr TaskFactory::create(TaskType type) { |
| 168 | auto i = registry_.find(type); |
nothing calls this directly
no outgoing calls
no test coverage detected