1
// -*- mode: C++; tab-width: 2; -*-
4
// --------------------------------------------------------------------------
5
// OpenMS Mass Spectrometry Framework
6
// --------------------------------------------------------------------------
7
// Copyright (C) 2003-2011 -- Oliver Kohlbacher, Knut Reinert
9
// This library is free software; you can redistribute it and/or
10
// modify it under the terms of the GNU Lesser General Public
11
// License as published by the Free Software Foundation; either
12
// version 2.1 of the License, or (at your option) any later version.
14
// This library is distributed in the hope that it will be useful,
15
// but WITHOUT ANY WARRANTY; without even the implied warranty of
16
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17
// Lesser General Public License for more details.
19
// You should have received a copy of the GNU Lesser General Public
20
// License along with this library; if not, write to the Free Software
21
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23
// --------------------------------------------------------------------------
24
// $Maintainer: Andreas Bertsch $
25
// $Authors: Marc Sturm $
26
// --------------------------------------------------------------------------
28
#ifndef OPENMS_METADATA_DIGESTION_H
29
#define OPENMS_METADATA_DIGESTION_H
31
#include <OpenMS/DATASTRUCTURES/String.h>
32
#include <OpenMS/METADATA/SampleTreatment.h>
37
@brief Meta information about digestion of a sample
39
Representation of a digestion.
43
class OPENMS_DLLAPI Digestion: public SampleTreatment
46
/// default constructor
49
Digestion(const Digestion&);
53
/// assignment operator
54
Digestion& operator=(const Digestion&);
57
@brief Equality operator
59
Although this operator takes a reference to a SampleTreatment as argument
60
it tests for the equality of Tagging instances!
62
virtual bool operator== (const SampleTreatment& rhs) const;
64
/// clone method. See SampleTreatment
65
virtual SampleTreatment* clone() const;
67
/// returns the enzyme name (default is "")
68
const String& getEnzyme() const;
69
/// sets the enzyme name
70
void setEnzyme(const String& enzyme);
72
/// returns the digestion time in minutes (default is 0.0)
73
DoubleReal getDigestionTime() const;
74
/// sets the digestion time in minutes
75
void setDigestionTime(DoubleReal digestion_time);
77
/// return the temperature during digestion in degree C (default is 0.0)
78
DoubleReal getTemperature() const;
79
/// sets the temperature during digestion in degree C
80
void setTemperature(DoubleReal temperature);
82
/// returns the pH value (default is 0.0)
83
DoubleReal getPh() const;
85
void setPh(DoubleReal ph);
89
DoubleReal digestion_time_;
90
DoubleReal temperature_;
95
#endif // OPENMS_METADATA_DIGESTION_H