comparison Sources/Autogenerated/sdk_OrthancPluginValueRepresentation.impl.h @ 128:5b59ebc267e1 fix-leak

fixed leaks in the initialization of the enums
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 30 Aug 2023 11:02:20 +0200
parents eb6ac5a801d1
children c55b0583084b
comparison
equal deleted inserted replaced
127:a862d554753f 128:5b59ebc267e1
62 * "Class attributes can be added by setting the tp_dict to a 62 * "Class attributes can be added by setting the tp_dict to a
63 * dictionary with these attributes before calling PyType_Ready() 63 * dictionary with these attributes before calling PyType_Ready()
64 * (in your module initialization function)." 64 * (in your module initialization function)."
65 **/ 65 **/
66 66
67 PyDict_SetItemString(sdk_OrthancPluginValueRepresentation_Type.tp_dict, "AE", PyLong_FromLong(1)); 67 {
68 PyDict_SetItemString(sdk_OrthancPluginValueRepresentation_Type.tp_dict, "AS", PyLong_FromLong(2)); 68 PyObject* tmp = PyLong_FromLong(1);
69 PyDict_SetItemString(sdk_OrthancPluginValueRepresentation_Type.tp_dict, "AT", PyLong_FromLong(3)); 69 PyDict_SetItemString(sdk_OrthancPluginValueRepresentation_Type.tp_dict, "AE", tmp);
70 PyDict_SetItemString(sdk_OrthancPluginValueRepresentation_Type.tp_dict, "CS", PyLong_FromLong(4)); 70 Py_DECREF(tmp);
71 PyDict_SetItemString(sdk_OrthancPluginValueRepresentation_Type.tp_dict, "DA", PyLong_FromLong(5)); 71 }
72 PyDict_SetItemString(sdk_OrthancPluginValueRepresentation_Type.tp_dict, "DS", PyLong_FromLong(6)); 72
73 PyDict_SetItemString(sdk_OrthancPluginValueRepresentation_Type.tp_dict, "DT", PyLong_FromLong(7)); 73 {
74 PyDict_SetItemString(sdk_OrthancPluginValueRepresentation_Type.tp_dict, "FD", PyLong_FromLong(8)); 74 PyObject* tmp = PyLong_FromLong(2);
75 PyDict_SetItemString(sdk_OrthancPluginValueRepresentation_Type.tp_dict, "FL", PyLong_FromLong(9)); 75 PyDict_SetItemString(sdk_OrthancPluginValueRepresentation_Type.tp_dict, "AS", tmp);
76 PyDict_SetItemString(sdk_OrthancPluginValueRepresentation_Type.tp_dict, "IS", PyLong_FromLong(10)); 76 Py_DECREF(tmp);
77 PyDict_SetItemString(sdk_OrthancPluginValueRepresentation_Type.tp_dict, "LO", PyLong_FromLong(11)); 77 }
78 PyDict_SetItemString(sdk_OrthancPluginValueRepresentation_Type.tp_dict, "LT", PyLong_FromLong(12)); 78
79 PyDict_SetItemString(sdk_OrthancPluginValueRepresentation_Type.tp_dict, "OB", PyLong_FromLong(13)); 79 {
80 PyDict_SetItemString(sdk_OrthancPluginValueRepresentation_Type.tp_dict, "OF", PyLong_FromLong(14)); 80 PyObject* tmp = PyLong_FromLong(3);
81 PyDict_SetItemString(sdk_OrthancPluginValueRepresentation_Type.tp_dict, "OW", PyLong_FromLong(15)); 81 PyDict_SetItemString(sdk_OrthancPluginValueRepresentation_Type.tp_dict, "AT", tmp);
82 PyDict_SetItemString(sdk_OrthancPluginValueRepresentation_Type.tp_dict, "PN", PyLong_FromLong(16)); 82 Py_DECREF(tmp);
83 PyDict_SetItemString(sdk_OrthancPluginValueRepresentation_Type.tp_dict, "SH", PyLong_FromLong(17)); 83 }
84 PyDict_SetItemString(sdk_OrthancPluginValueRepresentation_Type.tp_dict, "SL", PyLong_FromLong(18)); 84
85 PyDict_SetItemString(sdk_OrthancPluginValueRepresentation_Type.tp_dict, "SQ", PyLong_FromLong(19)); 85 {
86 PyDict_SetItemString(sdk_OrthancPluginValueRepresentation_Type.tp_dict, "SS", PyLong_FromLong(20)); 86 PyObject* tmp = PyLong_FromLong(4);
87 PyDict_SetItemString(sdk_OrthancPluginValueRepresentation_Type.tp_dict, "ST", PyLong_FromLong(21)); 87 PyDict_SetItemString(sdk_OrthancPluginValueRepresentation_Type.tp_dict, "CS", tmp);
88 PyDict_SetItemString(sdk_OrthancPluginValueRepresentation_Type.tp_dict, "TM", PyLong_FromLong(22)); 88 Py_DECREF(tmp);
89 PyDict_SetItemString(sdk_OrthancPluginValueRepresentation_Type.tp_dict, "UI", PyLong_FromLong(23)); 89 }
90 PyDict_SetItemString(sdk_OrthancPluginValueRepresentation_Type.tp_dict, "UL", PyLong_FromLong(24)); 90
91 PyDict_SetItemString(sdk_OrthancPluginValueRepresentation_Type.tp_dict, "UN", PyLong_FromLong(25)); 91 {
92 PyDict_SetItemString(sdk_OrthancPluginValueRepresentation_Type.tp_dict, "US", PyLong_FromLong(26)); 92 PyObject* tmp = PyLong_FromLong(5);
93 PyDict_SetItemString(sdk_OrthancPluginValueRepresentation_Type.tp_dict, "UT", PyLong_FromLong(27)); 93 PyDict_SetItemString(sdk_OrthancPluginValueRepresentation_Type.tp_dict, "DA", tmp);
94 Py_DECREF(tmp);
95 }
96
97 {
98 PyObject* tmp = PyLong_FromLong(6);
99 PyDict_SetItemString(sdk_OrthancPluginValueRepresentation_Type.tp_dict, "DS", tmp);
100 Py_DECREF(tmp);
101 }
102
103 {
104 PyObject* tmp = PyLong_FromLong(7);
105 PyDict_SetItemString(sdk_OrthancPluginValueRepresentation_Type.tp_dict, "DT", tmp);
106 Py_DECREF(tmp);
107 }
108
109 {
110 PyObject* tmp = PyLong_FromLong(8);
111 PyDict_SetItemString(sdk_OrthancPluginValueRepresentation_Type.tp_dict, "FD", tmp);
112 Py_DECREF(tmp);
113 }
114
115 {
116 PyObject* tmp = PyLong_FromLong(9);
117 PyDict_SetItemString(sdk_OrthancPluginValueRepresentation_Type.tp_dict, "FL", tmp);
118 Py_DECREF(tmp);
119 }
120
121 {
122 PyObject* tmp = PyLong_FromLong(10);
123 PyDict_SetItemString(sdk_OrthancPluginValueRepresentation_Type.tp_dict, "IS", tmp);
124 Py_DECREF(tmp);
125 }
126
127 {
128 PyObject* tmp = PyLong_FromLong(11);
129 PyDict_SetItemString(sdk_OrthancPluginValueRepresentation_Type.tp_dict, "LO", tmp);
130 Py_DECREF(tmp);
131 }
132
133 {
134 PyObject* tmp = PyLong_FromLong(12);
135 PyDict_SetItemString(sdk_OrthancPluginValueRepresentation_Type.tp_dict, "LT", tmp);
136 Py_DECREF(tmp);
137 }
138
139 {
140 PyObject* tmp = PyLong_FromLong(13);
141 PyDict_SetItemString(sdk_OrthancPluginValueRepresentation_Type.tp_dict, "OB", tmp);
142 Py_DECREF(tmp);
143 }
144
145 {
146 PyObject* tmp = PyLong_FromLong(14);
147 PyDict_SetItemString(sdk_OrthancPluginValueRepresentation_Type.tp_dict, "OF", tmp);
148 Py_DECREF(tmp);
149 }
150
151 {
152 PyObject* tmp = PyLong_FromLong(15);
153 PyDict_SetItemString(sdk_OrthancPluginValueRepresentation_Type.tp_dict, "OW", tmp);
154 Py_DECREF(tmp);
155 }
156
157 {
158 PyObject* tmp = PyLong_FromLong(16);
159 PyDict_SetItemString(sdk_OrthancPluginValueRepresentation_Type.tp_dict, "PN", tmp);
160 Py_DECREF(tmp);
161 }
162
163 {
164 PyObject* tmp = PyLong_FromLong(17);
165 PyDict_SetItemString(sdk_OrthancPluginValueRepresentation_Type.tp_dict, "SH", tmp);
166 Py_DECREF(tmp);
167 }
168
169 {
170 PyObject* tmp = PyLong_FromLong(18);
171 PyDict_SetItemString(sdk_OrthancPluginValueRepresentation_Type.tp_dict, "SL", tmp);
172 Py_DECREF(tmp);
173 }
174
175 {
176 PyObject* tmp = PyLong_FromLong(19);
177 PyDict_SetItemString(sdk_OrthancPluginValueRepresentation_Type.tp_dict, "SQ", tmp);
178 Py_DECREF(tmp);
179 }
180
181 {
182 PyObject* tmp = PyLong_FromLong(20);
183 PyDict_SetItemString(sdk_OrthancPluginValueRepresentation_Type.tp_dict, "SS", tmp);
184 Py_DECREF(tmp);
185 }
186
187 {
188 PyObject* tmp = PyLong_FromLong(21);
189 PyDict_SetItemString(sdk_OrthancPluginValueRepresentation_Type.tp_dict, "ST", tmp);
190 Py_DECREF(tmp);
191 }
192
193 {
194 PyObject* tmp = PyLong_FromLong(22);
195 PyDict_SetItemString(sdk_OrthancPluginValueRepresentation_Type.tp_dict, "TM", tmp);
196 Py_DECREF(tmp);
197 }
198
199 {
200 PyObject* tmp = PyLong_FromLong(23);
201 PyDict_SetItemString(sdk_OrthancPluginValueRepresentation_Type.tp_dict, "UI", tmp);
202 Py_DECREF(tmp);
203 }
204
205 {
206 PyObject* tmp = PyLong_FromLong(24);
207 PyDict_SetItemString(sdk_OrthancPluginValueRepresentation_Type.tp_dict, "UL", tmp);
208 Py_DECREF(tmp);
209 }
210
211 {
212 PyObject* tmp = PyLong_FromLong(25);
213 PyDict_SetItemString(sdk_OrthancPluginValueRepresentation_Type.tp_dict, "UN", tmp);
214 Py_DECREF(tmp);
215 }
216
217 {
218 PyObject* tmp = PyLong_FromLong(26);
219 PyDict_SetItemString(sdk_OrthancPluginValueRepresentation_Type.tp_dict, "US", tmp);
220 Py_DECREF(tmp);
221 }
222
223 {
224 PyObject* tmp = PyLong_FromLong(27);
225 PyDict_SetItemString(sdk_OrthancPluginValueRepresentation_Type.tp_dict, "UT", tmp);
226 Py_DECREF(tmp);
227 }
228
94 229
95 Py_INCREF(&sdk_OrthancPluginValueRepresentation_Type); 230 Py_INCREF(&sdk_OrthancPluginValueRepresentation_Type);
96 if (PyModule_AddObject(module, "ValueRepresentation", (PyObject *)&sdk_OrthancPluginValueRepresentation_Type) < 0) 231 if (PyModule_AddObject(module, "ValueRepresentation", (PyObject *)&sdk_OrthancPluginValueRepresentation_Type) < 0)
97 { 232 {
98 OrthancPlugins::LogError("Cannot register Python enumeration: OrthancPluginValueRepresentation"); 233 OrthancPlugins::LogError("Cannot register Python enumeration: OrthancPluginValueRepresentation");