~ubuntu-branches/ubuntu/wily/openms/wily

« back to all changes in this revision

Viewing changes to pyOpenMS/pxds/Gradient.pxd

  • Committer: Package Import Robot
  • Author(s): Filippo Rusconi
  • Date: 2013-12-20 11:30:16 UTC
  • mfrom: (5.1.2 sid)
  • Revision ID: package-import@ubuntu.com-20131220113016-wre5g9bteeheq6he
Tags: 1.11.1-3
* remove version number from libbost development package names;
* ensure that AUTHORS is correctly shipped in all packages.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
from String cimport *
 
2
from MetaInfoInterface cimport *
 
3
 
 
4
cdef extern from "<OpenMS/METADATA/Gradient.h>" namespace "OpenMS":
 
5
 
 
6
    cdef cppclass Gradient:
 
7
 
 
8
        Gradient() nogil except +
 
9
        Gradient(Gradient) nogil except + # wrap-ignore
 
10
 
 
11
        #   @brief Adds an eluent at the end of the eluent array
 
12
        #
 
13
        #   @exception Exception::InvalidValue is thrown if the same eluent name is used twice.
 
14
        void addEluent(String eluent) nogil except +
 
15
        # removes all eluents
 
16
        void clearEluents() nogil except +
 
17
        # returns a reference to the list of eluents
 
18
        libcpp_vector[String] getEluents() nogil except +
 
19
 
 
20
        #   @brief Adds a timepoint at the end of the timepoint array
 
21
        #
 
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 +
 
28
 
 
29
        #   @brief sets the percentage of eluent @p eluent at timepoint @p timepoint
 
30
        #
 
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 +
 
38