OpenMS
Loading...
Searching...
No Matches
CrossLinksDB.h
Go to the documentation of this file.
1// Copyright (c) 2002-present, OpenMS Inc. -- EKU Tuebingen, ETH Zurich, and FU Berlin
2// SPDX-License-Identifier: BSD-3-Clause
3//
4// --------------------------------------------------------------------------
5// $Maintainer: Timo Sachsenberg $
6// $Authors: Andreas Bertsch $
7// --------------------------------------------------------------------------
8
9#pragma once
10
13
14namespace OpenMS
15{
57 class OPENMS_DLLAPI CrossLinksDB :
58 public ModificationsDB
59 {
60 public:
61
70 inline static const CrossLinksDB* getInstance()
71 {
72 static CrossLinksDB* db_ = new CrossLinksDB;
73 return db_;
74 }
75
88 void getAllSearchModifications(std::vector<std::string>& modifications) const;
89
90 private:
91
99
102 CrossLinksDB(const CrossLinksDB& residue_db);
103
106 ~CrossLinksDB() override;
108
116
120 static std::vector<std::unique_ptr<ModificationDataProvider>> makeCrossLinkProviders_();
121
122 };
123}
124
Process-wide singleton database of cross-linking modifications.
Definition CrossLinksDB.h:59
~CrossLinksDB() override
Destructor. Never invoked in practice because the singleton is allocated with new and outlives the pr...
CrossLinksDB(const CrossLinksDB &residue_db)
Private copy constructor (singleton — copying is not permitted).
static const CrossLinksDB * getInstance()
Returns the process-wide singleton instance.
Definition CrossLinksDB.h:70
CrossLinksDB & operator=(const CrossLinksDB &aa)
Private assignment operator (singleton — assignment is not permitted).
CrossLinksDB()
Private default constructor: parses the XLMOD ontology and forwards the resulting providers to Modifi...
static std::vector< std::unique_ptr< ModificationDataProvider > > makeCrossLinkProviders_()
Builds the OBO data provider list used by the base-class constructor. Loads CHEMISTRY/XLMOD....
void getAllSearchModifications(std::vector< std::string > &modifications) const
Returns the IDs of all cross-linker modifications that are usable for identification searches (i....
database which holds all residue modifications from UniMod
Definition ModificationsDB.h:51
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19