35 #ifndef OPENMS_METADATA_SAMPLE_H 36 #define OPENMS_METADATA_SAMPLE_H 46 class SampleTreatment;
67 static const std::string NamesOfSampleState[SIZE_OF_SAMPLESTATE];
83 const String & getName()
const;
85 void setName(
const String & name);
88 const String & getOrganism()
const;
90 void setOrganism(
const String & organism);
93 const String & getNumber()
const;
95 void setNumber(
const String & number);
98 const String & getComment()
const;
100 void setComment(
const String & comment);
108 double getMass()
const;
110 void setMass(
double mass);
113 double getVolume()
const;
115 void setVolume(
double volume);
118 double getConcentration()
const;
120 void setConcentration(
double concentration);
123 std::vector<Sample> & getSubsamples();
125 const std::vector<Sample> & getSubsamples()
const;
127 void setSubsamples(
const std::vector<Sample> & subsamples);
152 void removeTreatment(
UInt position);
154 Int countTreatments()
const;
171 #endif // OPENMS_METADATA_SAMPLE_H A more convenient string class.
Definition: String.h:57
String organism_
Definition: Sample.h:160
Base class for sample treatments (Digestion, Modification, Tagging, ...)
Definition: SampleTreatment.h:52
unsigned int UInt
Unsigned integer type.
Definition: Types.h:95
bool operator==(_Iterator< _Val, _Ref, _Ptr > const &, _Iterator< _Val, _Ref, _Ptr > const &)
Definition: KDTree.h:806
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
SampleState state_
Definition: Sample.h:161
double mass_
Definition: Sample.h:162
std::list< SampleTreatment * > treatments_
Definition: Sample.h:166
Meta information about the sample.
Definition: Sample.h:60
String comment_
Definition: Sample.h:159
String number_
Definition: Sample.h:158
String name_
Definition: Sample.h:157
SampleState
state of aggregation of the sample
Definition: Sample.h:65
double volume_
Definition: Sample.h:163
double concentration_
Definition: Sample.h:164
std::vector< Sample > subsamples_
Definition: Sample.h:165
int Int
Signed integer type.
Definition: Types.h:103