| 477 | |
| 478 | |
| 479 | void PipelineManager::setOptions(Stage& stage, const Options& addOps) |
| 480 | { |
| 481 | // First apply common options. |
| 482 | stage.setOptions(m_commonOptions); |
| 483 | |
| 484 | // Apply additional reader/writer options, making sure they replace any |
| 485 | // common options. |
| 486 | stage.removeOptions(addOps); |
| 487 | stage.addOptions(addOps); |
| 488 | |
| 489 | // Apply options provided on the command line, overriding others. |
| 490 | Options ops = stageOptions(stage); |
| 491 | stage.removeOptions(ops); |
| 492 | stage.addOptions(ops); |
| 493 | } |
| 494 | |
| 495 | |
| 496 | Options PipelineManager::stageOptions(Stage& stage) |