Class MetaDataHandler¶
Defined in File MetaDataHandler.h
Class Documentation¶
-
class MetaDataHandler¶
Public Functions
-
void setSampleName(const std::string &sample_name_I)¶
-
std::string &getSampleName()¶
-
const std::string &getSampleName() const¶
-
void setSampleGroupName(const std::string &sample_group_name_I)¶
-
std::string &getSampleGroupName()¶
-
const std::string &getSampleGroupName() const¶
-
void setSequenceSegmentName(const std::string &sequence_segment_name_I)¶
-
std::string &getSequenceSegmentName()¶
-
const std::string &getSequenceSegmentName() const¶
-
void setReplicateGroupName(const std::string &replicate_group_name_I)¶
-
std::string &getReplicateGroupName()¶
-
const std::string &getReplicateGroupName() const¶
-
void setFilename(const std::string &filename_I)¶
-
std::string &getFilename()¶
-
const std::string &getFilename() const¶
-
void setSampleType(SampleType sample_type_I)¶
-
SampleType &getSampleType()¶
-
const SampleType &getSampleType() const¶
-
const std::string getSampleTypeAsString() const¶
-
void clear()¶
-
std::string getInjectionName() const¶
-
void setAcquisitionDateAndTimeFromString(const std::string &acquisition_date_and_time, const std::string &format = "%Y-%m-%d_%H%M%S")¶
-
std::string getAcquisitionDateAndTimeAsString(const std::string &format = "%Y-%m-%d_%H%M%S") const¶
-
std::string getRackNumberAsString(std::optional<std::string> undefined_str = std::nullopt) const¶
return string form of rack number
- Parameters
undefined_str – [in] string to return if the value is not defined
-
std::string getPlateNumberAsString(std::optional<std::string> undefined_str = std::nullopt) const¶
return string form of plate number
- Parameters
undefined_str – [in] string to return if the value is not defined
-
std::string getPosNumberAsString(std::optional<std::string> undefined_str = std::nullopt) const¶
return string form of pos number
- Parameters
undefined_str – [in] string to return if the value is not defined
-
std::string getInjectionNumberAsString(std::optional<std::string> undefined_str = std::nullopt) const¶
return string form of injection number
- Parameters
undefined_str – [in] string to return if the value is not defined
-
std::string getScanMassLowAsString(std::optional<std::string> undefined_str = std::nullopt) const¶
return string form of mass low value
- Parameters
undefined_str – [in] string to return if the value is not defined
-
std::string getScanMassHighAsString(std::optional<std::string> undefined_str = std::nullopt) const¶
return string form of mass high
- Parameters
undefined_str – [in] string to return if the value is not defined
Public Members
-
std::string acq_method_name¶
-
float inj_volume = -1.0¶
-
std::string inj_volume_units¶
-
std::string batch_name¶
-
int rack_number = -1¶
-
int plate_number = -1¶
-
int pos_number = -1¶
-
int inj_number = -1¶
-
float dilution_factor = 1.0¶
-
std::string instrument¶
-
std::string operator_name¶
-
std::string proc_method_name¶
-
std::tm acquisition_date_and_time = {0, 0, 0, 1, 0, 0, 0, 0, 0}¶
-
std::string scan_polarity = "Unknown"¶
-
float scan_mass_low = 0.0f¶
-
float scan_mass_high = 1e12f¶
Public Static Functions
-
static bool validateMetaData(const MetaDataHandler &meta_data)¶
Protected Attributes
-
std::string sample_name¶
-
std::string sample_group_name¶
-
std::string sequence_segment_name¶
-
std::string replicate_group_name¶
-
std::string original_filename¶
-
SampleType sample_type = SampleType::Unknown¶
-
void setSampleName(const std::string &sample_name_I)¶