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
12
13namespace OpenMS
14{
15 class OPENMS_DLLAPI CrossLinksDB :
16 public ModificationsDB
17 {
18 public:
19
21 inline static CrossLinksDB* getInstance()
22 {
23 static CrossLinksDB* db_ = new CrossLinksDB;
24 return db_;
25 }
26
34 void readFromOBOFile(const String& filename);
35
37 void getAllSearchModifications(std::vector<String>& modifications) const;
38
39 private:
40
46
48 CrossLinksDB(const CrossLinksDB& residue_db);
49
51 ~CrossLinksDB() override;
53
60
61 };
62}
63
Definition CrossLinksDB.h:17
static CrossLinksDB * getInstance()
Returns a pointer to the modifications DB (singleton)
Definition CrossLinksDB.h:21
~CrossLinksDB() override
Destructor.
CrossLinksDB(const CrossLinksDB &residue_db)
Copy constructor.
CrossLinksDB & operator=(const CrossLinksDB &aa)
Assignment operator.
CrossLinksDB()
Default constructor.
void readFromOBOFile(const String &filename)
Adds modifications from a given file in OBO format.
void getAllSearchModifications(std::vector< String > &modifications) const
Collects all modifications that can be used for identification searches.
database which holds all residue modifications from UniMod
Definition ModificationsDB.h:50
A more convenient string class.
Definition String.h:34
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19