OpenMS
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Identification.h
Go to the documentation of this file.
1 // Copyright (c) 2002-2023, The OpenMS Team -- EKU Tuebingen, ETH Zurich, and FU Berlin
2 // SPDX-License-Identifier: BSD-3-Clause
3 //
4 // --------------------------------------------------------------------------
5 // $Maintainer: Timo Sachsenberg $
6 // $Authors: $
7 // --------------------------------------------------------------------------
8 
9 #pragma once
10 
14 
15 #include <vector>
16 
17 namespace OpenMS
18 {
26  class OPENMS_DLLAPI Identification :
27  public MetaInfoInterface
28  {
29 public:
30 
32 
33 
35  Identification() = default;
37  Identification(const Identification & source) = default;
41  virtual ~Identification();
42 
44  Identification & operator=(const Identification & source) = default;
47 
49  bool operator==(const Identification & rhs) const;
51  bool operator!=(const Identification & rhs) const;
53 
55 
56  void setCreationDate(const DateTime & date);
58 
60  const DateTime & getCreationDate() const;
61 
63  void setSpectrumIdentifications(const std::vector<SpectrumIdentification> & ids);
64 
67 
69  const std::vector<SpectrumIdentification> & getSpectrumIdentifications() const;
71 protected:
72 
75  std::vector<SpectrumIdentification> spectrum_identifications_;
76 
77  };
78 
79 } //namespace OpenMS
80 
DateTime Class.
Definition: DateTime.h:33
Represents a object which can store the information of an analysisXML instance.
Definition: Identification.h:28
void addSpectrumIdentification(const SpectrumIdentification &id)
adds a spectrum identification
DateTime creation_date_
Date and time the search was performed.
Definition: Identification.h:74
Identification(const Identification &source)=default
Copy constructor.
bool operator==(const Identification &rhs) const
Equality operator.
Identification(Identification &&)=default
Move constructor.
virtual ~Identification()
Destructor.
void setSpectrumIdentifications(const std::vector< SpectrumIdentification > &ids)
sets the spectrum identifications
Identification()=default
Default constructor.
const DateTime & getCreationDate() const
returns the date and time the file was created
std::vector< SpectrumIdentification > spectrum_identifications_
Definition: Identification.h:75
Identification & operator=(Identification &&) &=default
Move assignment operator.
const std::vector< SpectrumIdentification > & getSpectrumIdentifications() const
returns the spectrum identifications stored
Identification & operator=(const Identification &source)=default
Assignment operator.
String id_
Identifier.
Definition: Identification.h:73
bool operator!=(const Identification &rhs) const
Inequality operator.
Interface for classes that can store arbitrary meta information (Type-Name-Value tuples).
Definition: MetaInfoInterface.h:35
Represents a object which can store the information of an analysisXML instance.
Definition: SpectrumIdentification.h:25
A more convenient string class.
Definition: String.h:34
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:22