33 enum SampleState {SAMPLENULL, SOLID, LIQUID, GAS, SOLUTION,
EMULSION, SUSPENSION, SIZE_OF_SAMPLESTATE};
35 static const std::string NamesOfSampleState[SIZE_OF_SAMPLESTATE];
Meta information about the sample.
Definition Sample.h:30
String comment_
Definition Sample.h:115
void setOrganism(const String &organism)
sets the sample name
bool operator==(const Sample &rhs) const
Equality operator.
double mass_
Definition Sample.h:118
void setComment(const String &comment)
sets the comment (may contain newline characters)
double getConcentration() const
returns the concentration (in g/l) (default: 0.0)
const String & getNumber() const
returns the sample number (default: "")
void setConcentration(double concentration)
sets the concentration (in g/l)
static SampleState toSampleState(const std::string &name)
String number_
Definition Sample.h:114
SampleState
state of aggregation of the sample
Definition Sample.h:33
@ EMULSION
Definition Sample.h:33
Sample & operator=(Sample &&) &=default
Move assignment operator.
String name_
Definition Sample.h:113
std::vector< Sample > & getSubsamples()
returns a mutable reference to the vector of subsamples that were combined to create this sample
Sample(const Sample &source)
Copy constructor.
double concentration_
Definition Sample.h:120
const std::vector< Sample > & getSubsamples() const
returns a const reference to the vector of subsamples that were combined to create this sample
Sample(Sample &&)=default
Move constructor.
void setName(const String &name)
sets the sample name
String organism_
Definition Sample.h:116
const String & getComment() const
returns the comment (default: "")
void setState(SampleState state)
sets the state of aggregation
double getVolume() const
returns the volume (in ml) (default: 0.0)
const String & getOrganism() const
returns the sample name (default: "")
const String & getName() const
returns the sample name (default: "")
void setNumber(const String &number)
sets the sample number (e.g. sample ID)
void setMass(double mass)
sets the mass (in gram)
Sample & operator=(const Sample &source)
Assignment operator.
void setVolume(double volume)
sets the volume (in ml)
static StringList getAllNamesOfSampleState()
returns all sample state names known to OpenMS
static const std::string & sampleStateToString(SampleState state)
SampleState getState() const
returns the state of aggregation (default: SAMPLENULL)
SampleState state_
Definition Sample.h:117
Sample()
Default constructor.
double volume_
Definition Sample.h:119
double getMass() const
returns the mass (in gram) (default: 0.0)
std::vector< Sample > subsamples_
Definition Sample.h:121
void setSubsamples(const std::vector< Sample > &subsamples)
sets the vector of subsamples that were combined to create this sample
A more convenient string class.
Definition String.h:34
std::vector< String > StringList
Vector of String.
Definition ListUtils.h:44
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19