| 686 | |
| 687 | |
| 688 | void OMSFileLoad::loadAdducts_(IdentificationData& id_data) |
| 689 | { |
| 690 | if (!db_->tableExists("AdductInfo")) return; |
| 691 | |
| 692 | SQLite::Statement query(*db_, "SELECT * FROM AdductInfo"); |
| 693 | while (query.executeStep()) |
| 694 | { |
| 695 | EmpiricalFormula formula(query.getColumn("formula").getString()); |
| 696 | AdductInfo adduct(query.getColumn("name").getString(), formula, |
| 697 | query.getColumn("charge").getInt(), |
| 698 | query.getColumn("mol_multiplier").getInt()); |
| 699 | ID::AdductRef ref = id_data.registerAdduct(adduct); |
| 700 | adduct_refs_[query.getColumn("id").getInt64()] = ref; |
| 701 | } |
| 702 | } |
| 703 | |
| 704 | |
| 705 | void OMSFileLoad::loadObservationMatches_(IdentificationData& id_data) |
nothing calls this directly
no test coverage detected