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

« back to all changes in this revision

Viewing changes to pyOpenMS/pxds/Param.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 libcpp.string cimport string as libcpp_string
 
2
from libcpp.vector cimport vector as libcpp_vector
 
3
from libcpp.set cimport set as libcpp_set
 
4
from libcpp cimport bool
 
5
from DataValue cimport *
 
6
from String cimport *
 
7
from StringList cimport *
 
8
from ParamNode cimport *
 
9
from ParamEntry cimport *
 
10
 
 
11
# this class has addons, see the ./addons folder
 
12
 
 
13
cdef extern from "<OpenMS/DATASTRUCTURES/Param.h>" namespace "OpenMS":
 
14
 
 
15
    # pythonic helper functions in ../addons/Param.pyx !!!!
 
16
 
 
17
    cdef cppclass Param:
 
18
         Param() nogil except +
 
19
         Param(Param) nogil except +
 
20
         bool operator==(Param) nogil except +
 
21
 
 
22
         void setValue(String key, DataValue val, String desc, StringList tags) nogil except +
 
23
         void setValue(String key, DataValue val, String desc) nogil except +
 
24
         DataValue getValue(String key) nogil except +
 
25
         ParamEntry getEntry(String) nogil except +
 
26
         int exists(String key) nogil except +
 
27
 
 
28
         void addTag(String key, String tag) nogil except +
 
29
         void addTags(String key, StringList tags) nogil except +
 
30
         int hasTag(String key, String tag) nogil except +
 
31
         StringList getTags(String key) nogil except +
 
32
         void clearTags(String key) nogil except +
 
33
 
 
34
         libcpp_string getDescription(String key) nogil except +
 
35
         void setSectionDescription(String key, String desc) nogil except +
 
36
         libcpp_string getSectionDescription(String key) nogil except +
 
37
 
 
38
         Size size() nogil except +
 
39
         bool empty() nogil except +
 
40
 
 
41
         void clear() nogil except +
 
42
         void insert(String prefix, Param param) nogil except +
 
43
 
 
44
         void remove(String key) nogil except +
 
45
         void removeAll(String prefix) nogil except +
 
46
 
 
47
         Param copy(String prefix, bool) nogil except +
 
48
         Param copy(String prefix) nogil except +
 
49
 
 
50
         # wrapped manually for overloading with dict parameter:
 
51
         void update(Param p_old, bool add_unknow) nogil except + # wrap-ignore
 
52
         void update(Param p_old) nogil except + # wrap-ignore
 
53
 
 
54
         void merge(Param toMerge) nogil except +
 
55
 
 
56
         void setDefaults(Param defaults, String previx, bool showMessage) nogil except +
 
57
         void setDefaults(Param defaults, String previx) nogil except +
 
58
         void setDefaults(Param defaults) nogil except +
 
59
 
 
60
         void checkDefaults(String name, Param defaults, String prefix) nogil except +
 
61
         void checkDefaults(String name, Param defaults) nogil except +
 
62
 
 
63
         void setValidStrings(String key, libcpp_vector[String] strings) nogil except +
 
64
         void setMinInt(String key, int min) nogil except +
 
65
         void setMaxInt(String key, int max) nogil except +
 
66
         void setMinFloat(String key, double min) nogil except +
 
67
         void setMaxFloat(String key, double max) nogil except +
 
68
 
 
69
         #void parseCommandLine(int argc, char ** argv, String prefix) # wrap-ignore
 
70
         #void parseCommandLine(int argc, char ** argv) # wrap-ignore
 
71
 
 
72
 
 
73
         ParamIterator begin() nogil except + # wrap-ignore
 
74
         ParamIterator end()   nogil except + # wrap-ignore
 
75
 
 
76
cdef extern from "<OpenMS/DATASTRUCTURES/Param.h>" namespace "OpenMS::Param":
 
77
 
 
78
    cdef cppclass ParamIterator:
 
79
        # wrap-ignore
 
80
        ParamIterator operator++() nogil except +
 
81
        ParamIterator operator--() nogil except +
 
82
        String getName() nogil except +
 
83
        int operator==(ParamIterator) nogil except +
 
84
        int operator!=(ParamIterator) nogil except +
 
85
        int operator<(ParamIterator) nogil except +
 
86
        int operator>(ParamIterator) nogil except +
 
87
        int operator<=(ParamIterator) nogil except +
 
88
        int operator>=(ParamIterator) nogil except +
 
89
        # Returns the traceback of the opened and closed sections
 
90
        libcpp_vector[TraceInfo] getTrace() nogil except +
 
91
 
 
92
cdef extern from "<OpenMS/DATASTRUCTURES/Param.h>" namespace "OpenMS::Param::ParamIterator":
 
93
 
 
94
    cdef cppclass TraceInfo:
 
95
 
 
96
        TraceInfo(String n, String d, bool o)
 
97
        TraceInfo(TraceInfo)
 
98
 
 
99
        # name of the node
 
100
        String name
 
101
        # description of the node
 
102
        String description
 
103
        # If it was opened (true) or closed (false)
 
104
        bool opened