| 241 | } |
| 242 | |
| 243 | void project(File input, File output) |
| 244 | { |
| 245 | qDebug("Projecting %s%s", qPrintable(input.flat()), |
| 246 | output.isNull() ? "" : qPrintable(" to " + output.flat())); |
| 247 | |
| 248 | QScopedPointer<Gallery> inputGallery(Gallery::make(input)); |
| 249 | QScopedPointer<Gallery> outputGallery(Gallery::make(output)); |
| 250 | |
| 251 | bool done; |
| 252 | do { |
| 253 | TemplateList templates = inputGallery->readBlock(&done); |
| 254 | if (!templates.empty()) |
| 255 | templates >> *transform; |
| 256 | if (!templates.empty()) |
| 257 | outputGallery->writeBlock(templates); |
| 258 | } while (!done); |
| 259 | } |
| 260 | |
| 261 | void enroll(TemplateList &data) |
| 262 | { |
no test coverage detected