OpenMS
Digestion.h
Go to the documentation of this file.
1 // Copyright (c) 2002-present, 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: Marc Sturm $
7 // --------------------------------------------------------------------------
8 
9 #pragma once
10 
13 
14 namespace OpenMS
15 {
23  class OPENMS_DLLAPI Digestion :
24  public SampleTreatment
25  {
26 public:
30  Digestion(const Digestion &) = default;
32  Digestion(Digestion&&) = default;
34  ~Digestion() override;
35 
37  Digestion & operator=(const Digestion &) = default;
39  Digestion& operator=(Digestion&&) & = default;
40 
47  bool operator==(const SampleTreatment & rhs) const override;
48 
50  SampleTreatment * clone() const override;
51 
53  const String & getEnzyme() const;
55  void setEnzyme(const String & enzyme);
56 
58  double getDigestionTime() const;
60  void setDigestionTime(double digestion_time);
61 
63  double getTemperature() const;
65  void setTemperature(double temperature);
66 
68  double getPh() const;
70  void setPh(double ph);
71 
72 protected:
75  double temperature_;
76  double ph_;
77  };
78 } // namespace OpenMS
79 
Meta information about digestion of a sample.
Definition: Digestion.h:25
~Digestion() override
Destructor.
Digestion()
Default constructor.
Digestion & operator=(Digestion &&) &=default
Move assignment operator.
void setPh(double ph)
sets the pH value
String enzyme_
Definition: Digestion.h:73
double getPh() const
returns the pH value (default is 0.0)
Digestion & operator=(const Digestion &)=default
Assignment operator.
void setEnzyme(const String &enzyme)
sets the enzyme name
double getDigestionTime() const
returns the digestion time in minutes (default is 0.0)
Digestion(const Digestion &)=default
Copy constructor.
void setTemperature(double temperature)
sets the temperature during digestion in degree C
const String & getEnzyme() const
returns the enzyme name (default is "")
double digestion_time_
Definition: Digestion.h:74
double getTemperature() const
return the temperature during digestion in degree C (default is 0.0)
bool operator==(const SampleTreatment &rhs) const override
Equality operator.
SampleTreatment * clone() const override
clone method. See SampleTreatment
Digestion(Digestion &&)=default
Move constructor.
void setDigestionTime(double digestion_time)
sets the digestion time in minutes
double temperature_
Definition: Digestion.h:75
double ph_
Definition: Digestion.h:76
Base class for sample treatments (Digestion, Modification, Tagging, ...)
Definition: SampleTreatment.h:27
A more convenient string class.
Definition: String.h:34
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19