QGIS API Documentation  3.0.2-Girona (307d082)
qgis_sip.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgis_sip - QGIS SIP Macros
3 
4  ---------------------
5  begin : 4.5.2017
6  copyright : (C) 2017 by Denis Rouzaud
7  email : denis.rouzaud@gmail.com
8  ***************************************************************************
9  * *
10  * This program is free software; you can redistribute it and/or modify *
11  * it under the terms of the GNU General Public License as published by *
12  * the Free Software Foundation; either version 2 of the License, or *
13  * (at your option) any later version. *
14  * *
15  ***************************************************************************/
16 #ifndef QGIS_SIP_H
17 #define QGIS_SIP_H
18 
19 /*
20  * if written, the SIP file will not be generated automatically
21  * or can be also defined directly in the file (to avoid including this)
22  */
23 #define SIP_NO_FILE
24 
25 /*
26  * the module will be included if the condition is met
27  */
28 #define SIP_IF_MODULE(condition)
29 
30 
31 /*
32  * http://pyqt.sourceforge.net/Docs/sip4/annotations.html?highlight=keepreference#function-annotation-Transfer
33  *
34  * Example QgsVectorLayer::setDiagramRenderer
35  */
36 #define SIP_TRANSFER
37 
38 /*
39  * http://pyqt.sourceforge.net/Docs/sip4/annotations.html?highlight=keepreference#function-annotation-TransferBack
40  */
41 #define SIP_TRANSFERBACK
42 
43 /*
44  * http://pyqt.sourceforge.net/Docs/sip4/annotations.html?highlight=keepreference#function-annotation-TransferThis
45  */
46 #define SIP_TRANSFERTHIS
47 
48 /*
49  * http://pyqt.sourceforge.net/Docs/sip4/annotations.html#argument-annotation-Out
50  */
51 #define SIP_OUT
52 
53 /*
54  * http://pyqt.sourceforge.net/Docs/sip4/annotations.html#argument-annotation-In
55  */
56 #define SIP_IN
57 
58 /*
59  * Combination of
60  * http://pyqt.sourceforge.net/Docs/sip4/annotations.html#argument-annotation-In
61  * and
62  * http://pyqt.sourceforge.net/Docs/sip4/annotations.html#argument-annotation-Out
63  */
64 #define SIP_INOUT
65 
66 /*
67  * http://pyqt.sourceforge.net/Docs/sip4/annotations.html#function-annotation-Factory
68  */
69 #define SIP_FACTORY
70 
71 /*
72  * http://pyqt.sourceforge.net/Docs/sip4/annotations.html#class-annotation-PyName
73  */
74 #define SIP_PYNAME(name)
75 
76 /*
77  * http://pyqt.sourceforge.net/Docs/sip4/annotations.html#argument-annotation-KeepReference
78  */
79 #define SIP_KEEPREFERENCE
80 
81 /*
82  * http://pyqt.sourceforge.net/Docs/sip4/annotations.html#argument-annotation-Array
83  */
84 #define SIP_ARRAY
85 
86 /*
87  * http://pyqt.sourceforge.net/Docs/sip4/annotations.html#argument-annotation-ArraySize
88  */
89 #define SIP_ARRAYSIZE
90 
91 /*
92  * http://pyqt.sourceforge.net/Docs/sip4/annotations.html#class-annotation-NoDefaultCtors
93  */
94 #define SIP_NODEFAULTCTORS
95 
96 /*
97  * http://pyqt.sourceforge.net/Docs/sip4/annotations.html?highlight=deprecated#function-annotation-Deprecated
98  */
99 #define SIP_DEPRECATED
100 
101 /*
102  * http://pyqt.sourceforge.net/Docs/sip4/annotations.html?highlight=constrained#argument-annotation-Constrained
103  */
104 #define SIP_CONSTRAINED
105 
106 /*
107  * http://pyqt.sourceforge.net/Docs/sip4/annotations.html?highlight=external#class-annotation-External
108  */
109 #define SIP_EXTERNAL
110 
111 /*
112  * http://pyqt.sourceforge.net/Docs/sip4/annotations.html?highlight=allownone
113  */
114 #define SIP_ALLOWNONE
115 
116 /*
117  * discard line
118  */
119 #define SIP_SKIP
120 
121 /*
122  * force a private line to be written
123  */
124 #define SIP_FORCE
125 
126 /*
127  * specify an alternative type for SIP argument or return value
128  */
129 #define SIP_PYALTERNATIVETYPE(type)
130 
131 /*
132  * specify an alternative default value for SIP argument
133  */
134 #define SIP_PYARGDEFAULT(value)
135 
136 /*
137  * remove argument in SIP method
138  */
139 #define SIP_PYARGREMOVE
140 
141 
142 /*
143  * http://pyqt.sourceforge.net/Docs/sip4/annotations.html?highlight=keepreference#function-annotation-ReleaseGIL
144  */
145 #define SIP_RELEASEGIL
146 
147 /*
148  * Will insert a `%Feature feature` directive in sip files
149  */
150 #define SIP_FEATURE(feature)
151 
152 /*
153  * Will insert a `%If feature` directive in sip files
154  */
155 #define SIP_IF_FEATURE(feature)
156 
157 /*
158  * Will place the current line with an `%If feature` directive in sip file
159  */
160 #define SIP_WHEN_FEATURE(feature)
161 
162 /*
163  * Convert to subclass code
164  */
165 #define SIP_CONVERT_TO_SUBCLASS_CODE(code)
166 
167 /*
168  * Virtual error handler (/VirtualErrorHandler/)
169  */
170 #define SIP_VIRTUALERRORHANDLER(name)
171 
172 /*
173  * Will insert a `%End` directive in sip files
174  */
175 #define SIP_END
176 
177 /*
178  * Class level annotation for abstract classes
179  */
180 #define SIP_ABSTRACT
181 
182 /*
183  * Virtual catcher code
184  */
185 #define SIP_VIRTUAL_CATCHER_CODE(code)
186 
187 /*
188  * Force documentation of templates
189  * Available for SIP 4.19.7+
190  */
191 #define SIP_DOC_TEMPLATE
192 
193 #endif // QGIS_SIP_H