OpenMS
Loading...
Searching...
No Matches
AbsoluteQuantitationMethodFile.h
Go to the documentation of this file.
1// Copyright (c) 2002-present, OpenMS Inc. -- EKU Tuebingen, ETH Zurich, and FU Berlin
2// SPDX-License-Identifier: BSD-3-Clause
3//
4// --------------------------------------------------------------------------
5// $Maintainer: Douglas McCloskey, Pasquale Domenico Colaianni $
6// $Authors: Douglas McCloskey, Pasquale Domenico Colaianni $
7// --------------------------------------------------------------------------
8
9#pragma once
10
13#include <map>
14
15namespace OpenMS
16{
24 class OPENMS_DLLAPI AbsoluteQuantitationMethodFile :
25 private CsvFile
26 {
27public:
31 ~AbsoluteQuantitationMethodFile() override = default;
32
42 void load(const String & filename, std::vector<AbsoluteQuantitationMethod> & aqm_list);
43
52 void store(const String & filename, const std::vector<AbsoluteQuantitationMethod> & aqm_list);
53
54protected:
63 const StringList & line,
64 const std::map<String, Size> & headers,
66 ) const;
67
76 void setCastValue_(const String& key, const String& value, Param& params) const;
77
78 };
79
80} // namespace OpenMS
81
File adapter for AbsoluteQuantitationMethod files.
Definition AbsoluteQuantitationMethodFile.h:26
void load(const String &filename, std::vector< AbsoluteQuantitationMethod > &aqm_list)
Loads an AbsoluteQuantitationMethod file.
void parseLine_(const StringList &line, const std::map< String, Size > &headers, AbsoluteQuantitationMethod &aqm) const
Parses a line into the members of AbsoluteQuantitationMethod.
~AbsoluteQuantitationMethodFile() override=default
Destructor.
AbsoluteQuantitationMethodFile()=default
Default constructor.
void setCastValue_(const String &key, const String &value, Param &params) const
Helper method which takes care of converting the given value to the desired type, based on the header...
void store(const String &filename, const std::vector< AbsoluteQuantitationMethod > &aqm_list)
Stores an AbsoluteQuantitationMethod file.
AbsoluteQuantitationMethod is a class to hold information about the quantitation method and for apply...
Definition AbsoluteQuantitationMethod.h:44
This class handles csv files. Currently only loading is implemented. Does NOT support comment lines!
Definition CsvFile.h:25
Management and storage of parameters / INI files.
Definition Param.h:46
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