Base class for sample treatments (Digestion, Modification, Tagging, ...). More...
#include <OpenMS/METADATA/SampleTreatment.h>
Public Member Functions | |
| SampleTreatment (const String &type) | |
| Constructor. | |
| SampleTreatment (const SampleTreatment &) | |
| Copy constructor. | |
| virtual | ~SampleTreatment () |
| destructor | |
| SampleTreatment & | operator= (const SampleTreatment &) |
| Assignment operator. | |
| virtual bool | operator== (const SampleTreatment &rhs) const |
| Equality operator. | |
| const String & | getType () const |
| return the treatment type | |
| const String & | getComment () const |
| returns the description of the sample treatment | |
| void | setComment (const String &comment) |
| sets the description of the sample treatment | |
| virtual SampleTreatment * | clone () const =0 |
| A clone methode. | |
Protected Attributes | |
| String | type_ |
| String | comment_ |
Private Member Functions | |
| SampleTreatment () | |
| Default constructor hidden to force setting of a type. | |
Base class for sample treatments (Digestion, Modification, Tagging, ...).
Virtual base class for all sample treatments.
The type of the treatment can be determined through the getType() method.
| SampleTreatment | ( | const String & | type | ) |
Constructor.
Use a unique type string for each treatment type
| SampleTreatment | ( | const SampleTreatment & | ) |
Copy constructor.
| virtual ~SampleTreatment | ( | ) | [virtual] |
destructor
| SampleTreatment | ( | ) | [private] |
Default constructor hidden to force setting of a type.
| virtual SampleTreatment* clone | ( | ) | const [pure virtual] |
A clone methode.
clone method that creates a copy and retuns a pointer (base class pointer). Used to copy sample treatments when only a pointer to this base class is available.
Implemented in Digestion, Modification, and Tagging.
| const String& getComment | ( | ) | const |
returns the description of the sample treatment
| const String& getType | ( | ) | const |
return the treatment type
The type_ has to be set in the default constructor. It is used to determine the kind of sample treatment, when only a pointer to this base class is available.
| SampleTreatment& operator= | ( | const SampleTreatment & | ) |
Assignment operator.
| virtual bool operator== | ( | const SampleTreatment & | rhs | ) | const [virtual] |
Equality operator.
The equality operators of derived classes also take a SampleTreatment reference as argument. They check the type and cast the reference to the right type if the type matches.
Reimplemented in Digestion, Modification, and Tagging.
| void setComment | ( | const String & | comment | ) |
sets the description of the sample treatment
| OpenMS / TOPP release 1.10.0 | Documentation generated on Thu Mar 7 2013 09:42:56 using doxygen 1.7.1 |