| 250 | |
| 251 | |
| 252 | void OMSFileLoad::handleQueryAppliedProcessingStep_( |
| 253 | SQLite::Statement& query, |
| 254 | IdentificationDataInternal::ScoredProcessingResult& result, |
| 255 | Key parent_id) |
| 256 | { |
| 257 | query.bind(":id", parent_id); |
| 258 | while (query.executeStep()) |
| 259 | { |
| 260 | ID::AppliedProcessingStep step; |
| 261 | auto step_id_opt = query.getColumn("processing_step_id"); |
| 262 | if (!step_id_opt.isNull()) |
| 263 | { |
| 264 | step.processing_step_opt = |
| 265 | processing_step_refs_[step_id_opt.getInt64()]; |
| 266 | } |
| 267 | auto score_type_opt = query.getColumn("score_type_id"); |
| 268 | if (!score_type_opt.isNull()) |
| 269 | { |
| 270 | step.scores[score_type_refs_[score_type_opt.getInt64()]] = |
| 271 | query.getColumn("score").getDouble(); |
| 272 | } |
| 273 | result.addProcessingStep(step); // this takes care of merging the steps |
| 274 | } |
| 275 | query.reset(); // get ready for new executeStep() |
| 276 | } |
| 277 | |
| 278 | |
| 279 | void OMSFileLoad::loadDBSearchParams_(IdentificationData& id_data) |
nothing calls this directly
no test coverage detected