| 72 | } |
| 73 | |
| 74 | ModificationsDB::ModificationsDB(const OpenMS::String& unimod_file, const OpenMS::String& psimod_file, const OpenMS::String& xlmod_file) |
| 75 | { |
| 76 | if (!unimod_file.empty()) |
| 77 | { |
| 78 | readFromUnimodXMLFile(unimod_file); |
| 79 | } |
| 80 | |
| 81 | if (!psimod_file.empty()) |
| 82 | { |
| 83 | readFromOBOFile(psimod_file); |
| 84 | } |
| 85 | |
| 86 | if (!xlmod_file.empty()) |
| 87 | { |
| 88 | readFromOBOFile(xlmod_file); |
| 89 | } |
| 90 | is_instantiated_ = true; |
| 91 | } |
| 92 | |
| 93 | ModificationsDB::~ModificationsDB() |
| 94 | { |