2
from MetaInfoInterface cimport *
4
cdef extern from "<OpenMS/METADATA/Gradient.h>" namespace "OpenMS":
6
cdef cppclass Gradient:
8
Gradient() nogil except +
9
Gradient(Gradient) nogil except + # wrap-ignore
11
# @brief Adds an eluent at the end of the eluent array
13
# @exception Exception::InvalidValue is thrown if the same eluent name is used twice.
14
void addEluent(String eluent) nogil except +
16
void clearEluents() nogil except +
17
# returns a reference to the list of eluents
18
libcpp_vector[String] getEluents() nogil except +
20
# @brief Adds a timepoint at the end of the timepoint array
22
# @exception Exception::OutOfRange is thrown if the new timpoint is before the last timepoint.
23
void addTimepoint(Int timepoint) nogil except +
24
# removes all timepoints
25
void clearTimepoints() nogil except +
26
# returns a reference to the list of timepoints
27
libcpp_vector[Int] getTimepoints() nogil except +
29
# @brief sets the percentage of eluent @p eluent at timepoint @p timepoint
31
# @exception Exception::InvalidValue is thrown if the eluent, timepoint or percentage is invalid.
32
void setPercentage(String eluent, Int timepoint, UInt percentage) nogil except +
33
UInt getPercentage(String eluent, Int timepoint) nogil except +
34
# sets all precentage values to 0
35
void clearPercentages() nogil except +
36
# checks if the percentages of all timepoints add up to 100%
37
bool isValid() nogil except +