37 #include <OpenMS/config.h>
87 std::vector<MRMFeaturePicker::ComponentParams>& cp_list,
88 std::vector<MRMFeaturePicker::ComponentGroupParams>& cgp_list
104 const std::map<String, Size>& headers,
This class handles csv files. Currently only loading is implemented.
Definition: CsvFile.h:51
_MRMFeaturePickerFile_ loads components and components groups parameters from a .csv file.
Definition: MRMFeaturePickerFile.h:63
bool extractParamsFromLine_(const StringList &line, const std::map< String, Size > &headers, MRMFeaturePicker::ComponentParams &cp, MRMFeaturePicker::ComponentGroupParams &cgp) const
Extracts the information from a `StringList` and saves it into the correct data structures.
~MRMFeaturePickerFile()=default
Destructor.
MRMFeaturePickerFile()=default
Constructor.
void setCastValue_(const String &key, const String &value, Param ¶ms) const
Helper method which takes care of converting the given value to the desired type, based on the header...
void load(const String &filename, std::vector< MRMFeaturePicker::ComponentParams > &cp_list, std::vector< MRMFeaturePicker::ComponentGroupParams > &cgp_list)
Loads the file's data and saves it into vectors of `ComponentParams` and `ComponentGroupParams`.
Structure to contain information about a component group with its parameters.
Definition: MRMFeaturePicker.h:74
Structure to contain information about a single component with its parameters.
Definition: MRMFeaturePicker.h:66
Management and storage of parameters / INI files.
Definition: Param.h:70
A more convenient string class.
Definition: String.h:61
std::vector< String > StringList
Vector of String.
Definition: ListUtils.h:70
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47