OpenMS
2.7.0
|
Meta information about digestion of a sample. More...
#include <OpenMS/METADATA/Digestion.h>
Public Member Functions | |
Digestion () | |
Default constructor. More... | |
Digestion (const Digestion &)=default | |
Copy constructor. More... | |
Digestion (Digestion &&)=default | |
Move constructor. More... | |
~Digestion () override | |
Destructor. More... | |
Digestion & | operator= (const Digestion &)=default |
Assignment operator. More... | |
Digestion & | operator= (Digestion &&) &=default |
Move assignment operator. More... | |
bool | operator== (const SampleTreatment &rhs) const override |
Equality operator. More... | |
SampleTreatment * | clone () const override |
clone method. See SampleTreatment More... | |
const String & | getEnzyme () const |
returns the enzyme name (default is "") More... | |
void | setEnzyme (const String &enzyme) |
sets the enzyme name More... | |
double | getDigestionTime () const |
returns the digestion time in minutes (default is 0.0) More... | |
void | setDigestionTime (double digestion_time) |
sets the digestion time in minutes More... | |
double | getTemperature () const |
return the temperature during digestion in degree C (default is 0.0) More... | |
void | setTemperature (double temperature) |
sets the temperature during digestion in degree C More... | |
double | getPh () const |
returns the pH value (default is 0.0) More... | |
void | setPh (double ph) |
sets the pH value More... | |
Public Member Functions inherited from SampleTreatment | |
SampleTreatment (const String &type) | |
Constructor. More... | |
SampleTreatment (const SampleTreatment &)=default | |
Copy constructor. More... | |
SampleTreatment (SampleTreatment &&)=default | |
Move constructor. More... | |
virtual | ~SampleTreatment () |
Destructor. More... | |
SampleTreatment & | operator= (const SampleTreatment &)=default |
Assignment operator. More... | |
SampleTreatment & | operator= (SampleTreatment &&) &=default |
Move assignment operator. More... | |
const String & | getType () const |
return the treatment type More... | |
const String & | getComment () const |
returns the description of the sample treatment More... | |
void | setComment (const String &comment) |
sets the description of the sample treatment More... | |
Public Member Functions inherited from MetaInfoInterface | |
MetaInfoInterface () | |
Constructor. More... | |
MetaInfoInterface (const MetaInfoInterface &rhs) | |
Copy constructor. More... | |
MetaInfoInterface (MetaInfoInterface &&) noexcept | |
Move constructor. More... | |
~MetaInfoInterface () | |
Destructor. More... | |
MetaInfoInterface & | operator= (const MetaInfoInterface &rhs) |
Assignment operator. More... | |
MetaInfoInterface & | operator= (MetaInfoInterface &&) noexcept |
Move assignment operator. More... | |
bool | operator== (const MetaInfoInterface &rhs) const |
Equality operator. More... | |
bool | operator!= (const MetaInfoInterface &rhs) const |
Equality operator. More... | |
const DataValue & | getMetaValue (const String &name, const DataValue &default_value=DataValue::EMPTY) const |
Returns the value corresponding to a string, or a default value (default: DataValue::EMPTY) if not found. More... | |
const DataValue & | getMetaValue (UInt index, const DataValue &default_value=DataValue::EMPTY) const |
Returns the value corresponding to an index, or a default value (default: DataValue::EMPTY) if not found. More... | |
bool | metaValueExists (const String &name) const |
Returns whether an entry with the given name exists. More... | |
bool | metaValueExists (UInt index) const |
Returns whether an entry with the given index exists. More... | |
void | setMetaValue (const String &name, const DataValue &value) |
Sets the DataValue corresponding to a name. More... | |
void | setMetaValue (UInt index, const DataValue &value) |
Sets the DataValue corresponding to an index. More... | |
void | removeMetaValue (const String &name) |
Removes the DataValue corresponding to name if it exists. More... | |
void | removeMetaValue (UInt index) |
Removes the DataValue corresponding to index if it exists. More... | |
void | addMetaValues (const MetaInfoInterface &from) |
function to copy all meta values from one object to this one More... | |
void | getKeys (std::vector< String > &keys) const |
Fills the given vector with a list of all keys for which a value is set. More... | |
void | getKeys (std::vector< UInt > &keys) const |
Fills the given vector with a list of all keys for which a value is set. More... | |
bool | isMetaEmpty () const |
Returns if the MetaInfo is empty. More... | |
void | clearMetaInfo () |
Removes all meta values. More... | |
Protected Attributes | |
String | enzyme_ |
double | digestion_time_ |
double | temperature_ |
double | ph_ |
Protected Attributes inherited from SampleTreatment | |
String | type_ |
String | comment_ |
Protected Attributes inherited from MetaInfoInterface | |
MetaInfo * | meta_ |
Pointer to the MetaInfo object (0 by default) More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from MetaInfoInterface | |
static MetaInfoRegistry & | metaRegistry () |
Returns a reference to the MetaInfoRegistry. More... | |
Protected Member Functions inherited from MetaInfoInterface | |
void | createIfNotExists_ () |
Creates the MetaInfo object if it does not exist. More... | |
Meta information about digestion of a sample.
Representation of a digestion.
Digestion | ( | ) |
Default constructor.
|
override |
Destructor.
|
overridevirtual |
clone method. See SampleTreatment
Implements SampleTreatment.
double getDigestionTime | ( | ) | const |
returns the digestion time in minutes (default is 0.0)
const String& getEnzyme | ( | ) | const |
returns the enzyme name (default is "")
double getPh | ( | ) | const |
returns the pH value (default is 0.0)
double getTemperature | ( | ) | const |
return the temperature during digestion in degree C (default is 0.0)
|
overridevirtual |
Equality operator.
Although this operator takes a reference to a SampleTreatment as argument it tests for the equality of Tagging instances!
Reimplemented from SampleTreatment.
void setDigestionTime | ( | double | digestion_time | ) |
sets the digestion time in minutes
void setEnzyme | ( | const String & | enzyme | ) |
sets the enzyme name
void setPh | ( | double | ph | ) |
sets the pH value
void setTemperature | ( | double | temperature | ) |
sets the temperature during digestion in degree C
|
protected |
|
protected |
|
protected |
|
protected |