Mercurial > hg > orthanc-python
annotate Sources/Autogenerated/sdk_GlobalFunctions.impl.h @ 227:9574f06d8588 default tip
todo
author | Alain Mazy <am@orthanc.team> |
---|---|
date | Tue, 24 Sep 2024 08:54:11 +0200 |
parents | 3678a028f1f6 |
children |
rev | line source |
---|---|
219
3678a028f1f6
making the project REUSE-compliant
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
214
diff
changeset
|
1 /** |
3678a028f1f6
making the project REUSE-compliant
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
214
diff
changeset
|
2 * SPDX-FileCopyrightText: 2020-2023 Osimis S.A., 2024-2024 Orthanc Team SRL, 2021-2024 Sebastien Jodogne, ICTEAM UCLouvain |
3678a028f1f6
making the project REUSE-compliant
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
214
diff
changeset
|
3 * SPDX-License-Identifier: AGPL-3.0-or-later |
3678a028f1f6
making the project REUSE-compliant
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
214
diff
changeset
|
4 */ |
3678a028f1f6
making the project REUSE-compliant
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
214
diff
changeset
|
5 |
1
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
6 /** |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
7 * Python plugin for Orthanc |
166
6fada29b6759
updated copyright, as Orthanc Team now replaces Osimis
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
155
diff
changeset
|
8 * Copyright (C) 2020-2023 Osimis S.A., Belgium |
6fada29b6759
updated copyright, as Orthanc Team now replaces Osimis
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
155
diff
changeset
|
9 * Copyright (C) 2024-2024 Orthanc Team SRL, Belgium |
155
71d305c29cfa
updated year to 2024
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
149
diff
changeset
|
10 * Copyright (C) 2021-2024 Sebastien Jodogne, ICTEAM UCLouvain, Belgium |
1
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
11 * |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
12 * This program is free software: you can redistribute it and/or |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
13 * modify it under the terms of the GNU Affero General Public License |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
14 * as published by the Free Software Foundation, either version 3 of |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
15 * the License, or (at your option) any later version. |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
16 * |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
17 * This program is distributed in the hope that it will be useful, but |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
18 * WITHOUT ANY WARRANTY; without even the implied warranty of |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
20 * Affero General Public License for more details. |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
21 * |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
22 * You should have received a copy of the GNU Affero General Public License |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
23 * along with this program. If not, see <http://www.gnu.org/licenses/>. |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
24 **/ |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
25 |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
26 |
186
55473de7694f
added warning about auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
184
diff
changeset
|
27 // WARNING: Auto-generated file. Do not modify it by hand. |
55473de7694f
added warning about auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
184
diff
changeset
|
28 |
55473de7694f
added warning about auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
184
diff
changeset
|
29 |
192
b0f096d2339e
documentation of orthanc.RegisterRestCallback()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
191
diff
changeset
|
30 // Forward declaration of the custom global functions |
208
315e1720a35f
documented orthanc.CreateImageFromBuffer()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
205
diff
changeset
|
31 extern PyObject *CreateImageFromBuffer(PyObject* module, PyObject *args); |
205
234681297600
documented orthanc.LookupDictionary()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
203
diff
changeset
|
32 extern PyObject *LookupDictionary(PyObject* module, PyObject *args); |
211
d7acfccc0d0b
documented RegisterFindCallback(), RegisterMoveCallback(), RegisterMoveCallback2(), and RegisterWorklistCallback()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
208
diff
changeset
|
33 extern PyObject *RegisterFindCallback(PyObject* module, PyObject *args); |
213
f8dc8dd2da76
documented orthanc.RegisterIncomingCStoreInstanceFilter() and orthanc.RegisterReceivedInstanceCallback()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
212
diff
changeset
|
34 extern PyObject *RegisterIncomingCStoreInstanceFilter(PyObject* module, PyObject *args); |
203
28531e615104
documented orthanc.RegisterIncomingHttpRequestFilter() and orthanc.RegisterOnStoredInstanceCallback()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
197
diff
changeset
|
35 extern PyObject *RegisterIncomingHttpRequestFilter(PyObject* module, PyObject *args); |
211
d7acfccc0d0b
documented RegisterFindCallback(), RegisterMoveCallback(), RegisterMoveCallback2(), and RegisterWorklistCallback()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
208
diff
changeset
|
36 extern PyObject *RegisterMoveCallback(PyObject* module, PyObject *args); |
d7acfccc0d0b
documented RegisterFindCallback(), RegisterMoveCallback(), RegisterMoveCallback2(), and RegisterWorklistCallback()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
208
diff
changeset
|
37 extern PyObject *RegisterMoveCallback2(PyObject* module, PyObject *args); |
195
d7a6e75558ee
documented orthanc.RegisterOnChangeCallback()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
192
diff
changeset
|
38 extern PyObject *RegisterOnChangeCallback(PyObject* module, PyObject *args); |
203
28531e615104
documented orthanc.RegisterIncomingHttpRequestFilter() and orthanc.RegisterOnStoredInstanceCallback()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
197
diff
changeset
|
39 extern PyObject *RegisterOnStoredInstanceCallback(PyObject* module, PyObject *args); |
213
f8dc8dd2da76
documented orthanc.RegisterIncomingCStoreInstanceFilter() and orthanc.RegisterReceivedInstanceCallback()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
212
diff
changeset
|
40 extern PyObject *RegisterReceivedInstanceCallback(PyObject* module, PyObject *args); |
192
b0f096d2339e
documentation of orthanc.RegisterRestCallback()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
191
diff
changeset
|
41 extern PyObject *RegisterRestCallback(PyObject* module, PyObject *args); |
212
2db6c1f6417f
documented orthanc.RegisterStorageArea()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
211
diff
changeset
|
42 extern PyObject *RegisterStorageArea(PyObject* module, PyObject *args); |
214
d74ed3e6423e
documented orthanc.RegisterStorageCommitmentScpCallback()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
213
diff
changeset
|
43 extern PyObject *RegisterStorageCommitmentScpCallback(PyObject* module, PyObject *args); |
211
d7acfccc0d0b
documented RegisterFindCallback(), RegisterMoveCallback(), RegisterMoveCallback2(), and RegisterWorklistCallback()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
208
diff
changeset
|
44 extern PyObject *RegisterWorklistCallback(PyObject* module, PyObject *args); |
192
b0f096d2339e
documentation of orthanc.RegisterRestCallback()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
191
diff
changeset
|
45 // End of forward declarations |
b0f096d2339e
documentation of orthanc.RegisterRestCallback()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
191
diff
changeset
|
46 |
b0f096d2339e
documentation of orthanc.RegisterRestCallback()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
191
diff
changeset
|
47 |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
48 static PyObject* sdk_OrthancPluginAutodetectMimeType(PyObject* module, PyObject* args) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
49 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
50 PythonLock::LogCall("Calling Python global function: OrthancPluginAutodetectMimeType()"); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
51 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
52 const char* arg0 = NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
53 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
54 if (!PyArg_ParseTuple(args, "s", &arg0)) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
55 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
56 PyErr_SetString(PyExc_TypeError, "Bad types for the arguments (1 arguments expected)"); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
57 return NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
58 } |
174
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
59 |
184
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
60 const char* s; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
61 { |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
62 PythonThreadsAllower allower; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
63 s = OrthancPluginAutodetectMimeType(OrthancPlugins::GetGlobalContext(), arg0); |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
64 } |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
65 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
66 if (s == NULL) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
67 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
68 Py_INCREF(Py_None); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
69 return Py_None; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
70 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
71 else |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
72 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
73 return PyUnicode_FromString(s); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
74 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
75 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
76 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
77 static PyObject* sdk_OrthancPluginBufferCompression(PyObject* module, PyObject* args) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
78 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
79 PythonLock::LogCall("Calling Python global function: OrthancPluginBufferCompression()"); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
80 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
81 Py_buffer arg0; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
82 long int arg2 = 0; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
83 unsigned char arg3 = 0; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
84 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
85 if (!PyArg_ParseTuple(args, "s*lb", &arg0, &arg2, &arg3)) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
86 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
87 PyErr_SetString(PyExc_TypeError, "Bad types for the arguments (3 arguments expected)"); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
88 return NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
89 } |
174
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
90 |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
91 OrthancPlugins::MemoryBuffer buffer; |
184
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
92 OrthancPluginErrorCode code; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
93 { |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
94 PythonThreadsAllower allower; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
95 code = OrthancPluginBufferCompression(OrthancPlugins::GetGlobalContext(), *buffer, arg0.buf, arg0.len, static_cast<OrthancPluginCompressionType>(arg2), arg3); |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
96 } |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
97 PyBuffer_Release(&arg0); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
98 if (code == OrthancPluginErrorCode_Success) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
99 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
100 return PyBytes_FromStringAndSize(buffer.GetData(), buffer.GetSize()); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
101 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
102 else |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
103 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
104 PythonLock::RaiseException(code); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
105 return NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
106 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
107 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
108 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
109 static PyObject* sdk_OrthancPluginCheckVersion(PyObject* module, PyObject* args) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
110 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
111 PythonLock::LogCall("Calling Python global function: OrthancPluginCheckVersion()"); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
112 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
113 |
174
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
114 |
184
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
115 long value; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
116 { |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
117 PythonThreadsAllower allower; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
118 value = OrthancPluginCheckVersion(OrthancPlugins::GetGlobalContext()); |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
119 } |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
120 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
121 return PyLong_FromLong(value); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
122 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
123 |
1
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
124 static PyObject* sdk_OrthancPluginCheckVersionAdvanced(PyObject* module, PyObject* args) |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
125 { |
28
b2bbb516056e
The "Calling Python..." info logs are disabled if "PythonVerbose" is "false"
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1
diff
changeset
|
126 PythonLock::LogCall("Calling Python global function: OrthancPluginCheckVersionAdvanced()"); |
1
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
127 |
177
008be55355a4
regenerating the wrapper after patching SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
128 long int arg0 = 0; |
008be55355a4
regenerating the wrapper after patching SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
129 long int arg1 = 0; |
008be55355a4
regenerating the wrapper after patching SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
130 long int arg2 = 0; |
1
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
131 |
177
008be55355a4
regenerating the wrapper after patching SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
132 if (!PyArg_ParseTuple(args, "lll", &arg0, &arg1, &arg2)) |
1
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
133 { |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
134 PyErr_SetString(PyExc_TypeError, "Bad types for the arguments (3 arguments expected)"); |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
135 return NULL; |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
136 } |
174
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
137 |
184
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
138 long value; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
139 { |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
140 PythonThreadsAllower allower; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
141 value = OrthancPluginCheckVersionAdvanced(OrthancPlugins::GetGlobalContext(), arg0, arg1, arg2); |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
142 } |
1
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
143 |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
144 return PyLong_FromLong(value); |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
145 } |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
146 |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
147 static PyObject* sdk_OrthancPluginCompressJpegImage(PyObject* module, PyObject* args) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
148 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
149 PythonLock::LogCall("Calling Python global function: OrthancPluginCompressJpegImage()"); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
150 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
151 long int arg0 = 0; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
152 unsigned long arg1 = 0; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
153 unsigned long arg2 = 0; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
154 unsigned long arg3 = 0; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
155 Py_buffer arg4; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
156 unsigned char arg5 = 0; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
157 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
158 if (!PyArg_ParseTuple(args, "lkkks*b", &arg0, &arg1, &arg2, &arg3, &arg4, &arg5)) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
159 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
160 PyErr_SetString(PyExc_TypeError, "Bad types for the arguments (6 arguments expected)"); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
161 return NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
162 } |
174
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
163 |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
164 OrthancPlugins::MemoryBuffer buffer; |
184
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
165 OrthancPluginErrorCode code; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
166 { |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
167 PythonThreadsAllower allower; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
168 code = OrthancPluginCompressJpegImage(OrthancPlugins::GetGlobalContext(), *buffer, static_cast<OrthancPluginPixelFormat>(arg0), arg1, arg2, arg3, arg4.buf, arg5); |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
169 } |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
170 PyBuffer_Release(&arg4); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
171 if (code == OrthancPluginErrorCode_Success) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
172 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
173 return PyBytes_FromStringAndSize(buffer.GetData(), buffer.GetSize()); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
174 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
175 else |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
176 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
177 PythonLock::RaiseException(code); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
178 return NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
179 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
180 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
181 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
182 static PyObject* sdk_OrthancPluginCompressPngImage(PyObject* module, PyObject* args) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
183 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
184 PythonLock::LogCall("Calling Python global function: OrthancPluginCompressPngImage()"); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
185 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
186 long int arg0 = 0; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
187 unsigned long arg1 = 0; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
188 unsigned long arg2 = 0; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
189 unsigned long arg3 = 0; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
190 Py_buffer arg4; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
191 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
192 if (!PyArg_ParseTuple(args, "lkkks*", &arg0, &arg1, &arg2, &arg3, &arg4)) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
193 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
194 PyErr_SetString(PyExc_TypeError, "Bad types for the arguments (5 arguments expected)"); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
195 return NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
196 } |
174
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
197 |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
198 OrthancPlugins::MemoryBuffer buffer; |
184
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
199 OrthancPluginErrorCode code; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
200 { |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
201 PythonThreadsAllower allower; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
202 code = OrthancPluginCompressPngImage(OrthancPlugins::GetGlobalContext(), *buffer, static_cast<OrthancPluginPixelFormat>(arg0), arg1, arg2, arg3, arg4.buf); |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
203 } |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
204 PyBuffer_Release(&arg4); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
205 if (code == OrthancPluginErrorCode_Success) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
206 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
207 return PyBytes_FromStringAndSize(buffer.GetData(), buffer.GetSize()); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
208 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
209 else |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
210 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
211 PythonLock::RaiseException(code); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
212 return NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
213 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
214 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
215 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
216 static PyObject* sdk_OrthancPluginComputeMd5(PyObject* module, PyObject* args) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
217 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
218 PythonLock::LogCall("Calling Python global function: OrthancPluginComputeMd5()"); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
219 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
220 Py_buffer arg0; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
221 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
222 if (!PyArg_ParseTuple(args, "s*", &arg0)) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
223 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
224 PyErr_SetString(PyExc_TypeError, "Bad types for the arguments (1 arguments expected)"); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
225 return NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
226 } |
174
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
227 |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
228 OrthancPlugins::OrthancString s; |
184
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
229 { |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
230 PythonThreadsAllower allower; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
231 s.Assign(OrthancPluginComputeMd5(OrthancPlugins::GetGlobalContext(), arg0.buf, arg0.len)); |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
232 } |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
233 PyBuffer_Release(&arg0); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
234 if (s.GetContent() == NULL) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
235 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
236 PythonLock::RaiseException(OrthancPluginErrorCode_InternalError); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
237 return NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
238 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
239 else |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
240 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
241 return PyUnicode_FromString(s.GetContent()); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
242 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
243 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
244 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
245 static PyObject* sdk_OrthancPluginComputeSha1(PyObject* module, PyObject* args) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
246 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
247 PythonLock::LogCall("Calling Python global function: OrthancPluginComputeSha1()"); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
248 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
249 Py_buffer arg0; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
250 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
251 if (!PyArg_ParseTuple(args, "s*", &arg0)) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
252 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
253 PyErr_SetString(PyExc_TypeError, "Bad types for the arguments (1 arguments expected)"); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
254 return NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
255 } |
174
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
256 |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
257 OrthancPlugins::OrthancString s; |
184
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
258 { |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
259 PythonThreadsAllower allower; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
260 s.Assign(OrthancPluginComputeSha1(OrthancPlugins::GetGlobalContext(), arg0.buf, arg0.len)); |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
261 } |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
262 PyBuffer_Release(&arg0); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
263 if (s.GetContent() == NULL) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
264 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
265 PythonLock::RaiseException(OrthancPluginErrorCode_InternalError); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
266 return NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
267 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
268 else |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
269 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
270 return PyUnicode_FromString(s.GetContent()); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
271 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
272 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
273 |
174
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
274 static PyObject* sdk_OrthancPluginCreateDicom(PyObject* module, PyObject* args) |
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
275 { |
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
276 PythonLock::LogCall("Calling Python global function: OrthancPluginCreateDicom()"); |
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
277 |
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
278 const char* arg0 = NULL; |
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
279 PyObject* arg1 = NULL; |
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
280 long int arg2 = 0; |
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
281 |
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
282 if (!PyArg_ParseTuple(args, "sOl", &arg0, &arg1, &arg2)) |
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
283 { |
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
284 PyErr_SetString(PyExc_TypeError, "Bad types for the arguments (3 arguments expected)"); |
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
285 return NULL; |
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
286 } |
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
287 |
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
288 if (arg1 != Py_None && Py_TYPE(arg1) != GetOrthancPluginImageType()) |
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
289 { |
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
290 PyErr_SetString(PyExc_TypeError, "Invalid orthanc.OrthancPluginImage object"); |
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
291 return NULL; |
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
292 } |
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
293 |
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
294 OrthancPlugins::MemoryBuffer buffer; |
184
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
295 OrthancPluginErrorCode code; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
296 { |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
297 PythonThreadsAllower allower; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
298 code = OrthancPluginCreateDicom(OrthancPlugins::GetGlobalContext(), *buffer, arg0, arg1 == Py_None ? NULL : reinterpret_cast<sdk_OrthancPluginImage_Object*>(arg1)->object_, static_cast<OrthancPluginCreateDicomFlags>(arg2)); |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
299 } |
174
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
300 |
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
301 if (code == OrthancPluginErrorCode_Success) |
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
302 { |
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
303 return PyBytes_FromStringAndSize(buffer.GetData(), buffer.GetSize()); |
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
304 } |
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
305 else |
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
306 { |
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
307 PythonLock::RaiseException(code); |
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
308 return NULL; |
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
309 } |
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
310 } |
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
311 |
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
312 static PyObject* sdk_OrthancPluginCreateDicom2(PyObject* module, PyObject* args) |
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
313 { |
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
314 PythonLock::LogCall("Calling Python global function: OrthancPluginCreateDicom2()"); |
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
315 |
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
316 const char* arg0 = NULL; |
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
317 PyObject* arg1 = NULL; |
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
318 long int arg2 = 0; |
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
319 const char* arg3 = NULL; |
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
320 |
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
321 if (!PyArg_ParseTuple(args, "sOls", &arg0, &arg1, &arg2, &arg3)) |
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
322 { |
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
323 PyErr_SetString(PyExc_TypeError, "Bad types for the arguments (4 arguments expected)"); |
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
324 return NULL; |
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
325 } |
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
326 |
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
327 if (arg1 != Py_None && Py_TYPE(arg1) != GetOrthancPluginImageType()) |
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
328 { |
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
329 PyErr_SetString(PyExc_TypeError, "Invalid orthanc.OrthancPluginImage object"); |
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
330 return NULL; |
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
331 } |
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
332 |
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
333 OrthancPlugins::MemoryBuffer buffer; |
184
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
334 OrthancPluginErrorCode code; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
335 { |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
336 PythonThreadsAllower allower; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
337 code = OrthancPluginCreateDicom2(OrthancPlugins::GetGlobalContext(), *buffer, arg0, arg1 == Py_None ? NULL : reinterpret_cast<sdk_OrthancPluginImage_Object*>(arg1)->object_, static_cast<OrthancPluginCreateDicomFlags>(arg2), arg3); |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
338 } |
174
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
339 |
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
340 if (code == OrthancPluginErrorCode_Success) |
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
341 { |
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
342 return PyBytes_FromStringAndSize(buffer.GetData(), buffer.GetSize()); |
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
343 } |
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
344 else |
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
345 { |
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
346 PythonLock::RaiseException(code); |
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
347 return NULL; |
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
348 } |
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
349 } |
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
350 |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
351 static PyObject* sdk_OrthancPluginCreateDicomInstance(PyObject* module, PyObject* args) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
352 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
353 PythonLock::LogCall("Calling Python global function: OrthancPluginCreateDicomInstance()"); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
354 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
355 Py_buffer arg0; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
356 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
357 if (!PyArg_ParseTuple(args, "s*", &arg0)) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
358 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
359 PyErr_SetString(PyExc_TypeError, "Bad types for the arguments (1 arguments expected)"); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
360 return NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
361 } |
174
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
362 |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
363 // This is the case of a constructor |
184
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
364 OrthancPluginDicomInstance* obj; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
365 { |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
366 PythonThreadsAllower allower; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
367 obj = OrthancPluginCreateDicomInstance(OrthancPlugins::GetGlobalContext(), arg0.buf, arg0.len); |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
368 } |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
369 PyBuffer_Release(&arg0); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
370 if (obj == NULL) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
371 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
372 PythonLock::RaiseException(OrthancPluginErrorCode_InternalError); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
373 return NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
374 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
375 else |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
376 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
377 PyObject *argList = Py_BuildValue("Lb", obj, false /* not borrowed */); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
378 PyObject *python = PyObject_CallObject((PyObject *) &sdk_OrthancPluginDicomInstance_Type, argList); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
379 Py_DECREF(argList); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
380 return python; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
381 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
382 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
383 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
384 static PyObject* sdk_OrthancPluginCreateFindMatcher(PyObject* module, PyObject* args) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
385 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
386 PythonLock::LogCall("Calling Python global function: OrthancPluginCreateFindMatcher()"); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
387 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
388 Py_buffer arg0; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
389 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
390 if (!PyArg_ParseTuple(args, "s*", &arg0)) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
391 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
392 PyErr_SetString(PyExc_TypeError, "Bad types for the arguments (1 arguments expected)"); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
393 return NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
394 } |
174
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
395 |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
396 // This is the case of a constructor |
184
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
397 OrthancPluginFindMatcher* obj; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
398 { |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
399 PythonThreadsAllower allower; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
400 obj = OrthancPluginCreateFindMatcher(OrthancPlugins::GetGlobalContext(), arg0.buf, arg0.len); |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
401 } |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
402 PyBuffer_Release(&arg0); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
403 if (obj == NULL) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
404 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
405 PythonLock::RaiseException(OrthancPluginErrorCode_InternalError); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
406 return NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
407 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
408 else |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
409 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
410 PyObject *argList = Py_BuildValue("Lb", obj, false /* not borrowed */); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
411 PyObject *python = PyObject_CallObject((PyObject *) &sdk_OrthancPluginFindMatcher_Type, argList); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
412 Py_DECREF(argList); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
413 return python; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
414 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
415 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
416 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
417 static PyObject* sdk_OrthancPluginCreateImage(PyObject* module, PyObject* args) |
1
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
418 { |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
419 PythonLock::LogCall("Calling Python global function: OrthancPluginCreateImage()"); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
420 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
421 long int arg0 = 0; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
422 unsigned long arg1 = 0; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
423 unsigned long arg2 = 0; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
424 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
425 if (!PyArg_ParseTuple(args, "lkk", &arg0, &arg1, &arg2)) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
426 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
427 PyErr_SetString(PyExc_TypeError, "Bad types for the arguments (3 arguments expected)"); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
428 return NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
429 } |
174
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
430 |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
431 // This is the case of a constructor |
184
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
432 OrthancPluginImage* obj; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
433 { |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
434 PythonThreadsAllower allower; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
435 obj = OrthancPluginCreateImage(OrthancPlugins::GetGlobalContext(), static_cast<OrthancPluginPixelFormat>(arg0), arg1, arg2); |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
436 } |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
437 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
438 if (obj == NULL) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
439 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
440 PythonLock::RaiseException(OrthancPluginErrorCode_InternalError); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
441 return NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
442 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
443 else |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
444 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
445 PyObject *argList = Py_BuildValue("Lb", obj, false /* not borrowed */); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
446 PyObject *python = PyObject_CallObject((PyObject *) &sdk_OrthancPluginImage_Type, argList); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
447 Py_DECREF(argList); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
448 return python; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
449 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
450 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
451 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
452 static PyObject* sdk_OrthancPluginDecodeDicomImage(PyObject* module, PyObject* args) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
453 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
454 PythonLock::LogCall("Calling Python global function: OrthancPluginDecodeDicomImage()"); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
455 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
456 Py_buffer arg0; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
457 unsigned long arg2 = 0; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
458 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
459 if (!PyArg_ParseTuple(args, "s*k", &arg0, &arg2)) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
460 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
461 PyErr_SetString(PyExc_TypeError, "Bad types for the arguments (2 arguments expected)"); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
462 return NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
463 } |
174
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
464 |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
465 // This is the case of a constructor |
184
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
466 OrthancPluginImage* obj; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
467 { |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
468 PythonThreadsAllower allower; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
469 obj = OrthancPluginDecodeDicomImage(OrthancPlugins::GetGlobalContext(), arg0.buf, arg0.len, arg2); |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
470 } |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
471 PyBuffer_Release(&arg0); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
472 if (obj == NULL) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
473 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
474 PythonLock::RaiseException(OrthancPluginErrorCode_InternalError); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
475 return NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
476 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
477 else |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
478 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
479 PyObject *argList = Py_BuildValue("Lb", obj, false /* not borrowed */); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
480 PyObject *python = PyObject_CallObject((PyObject *) &sdk_OrthancPluginImage_Type, argList); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
481 Py_DECREF(argList); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
482 return python; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
483 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
484 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
485 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
486 static PyObject* sdk_OrthancPluginDicomBufferToJson(PyObject* module, PyObject* args) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
487 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
488 PythonLock::LogCall("Calling Python global function: OrthancPluginDicomBufferToJson()"); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
489 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
490 Py_buffer arg0; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
491 long int arg2 = 0; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
492 long int arg3 = 0; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
493 unsigned long arg4 = 0; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
494 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
495 if (!PyArg_ParseTuple(args, "s*llk", &arg0, &arg2, &arg3, &arg4)) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
496 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
497 PyErr_SetString(PyExc_TypeError, "Bad types for the arguments (4 arguments expected)"); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
498 return NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
499 } |
174
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
500 |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
501 OrthancPlugins::OrthancString s; |
184
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
502 { |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
503 PythonThreadsAllower allower; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
504 s.Assign(OrthancPluginDicomBufferToJson(OrthancPlugins::GetGlobalContext(), arg0.buf, arg0.len, static_cast<OrthancPluginDicomToJsonFormat>(arg2), static_cast<OrthancPluginDicomToJsonFlags>(arg3), arg4)); |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
505 } |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
506 PyBuffer_Release(&arg0); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
507 if (s.GetContent() == NULL) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
508 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
509 PythonLock::RaiseException(OrthancPluginErrorCode_InternalError); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
510 return NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
511 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
512 else |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
513 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
514 return PyUnicode_FromString(s.GetContent()); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
515 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
516 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
517 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
518 static PyObject* sdk_OrthancPluginDicomInstanceToJson(PyObject* module, PyObject* args) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
519 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
520 PythonLock::LogCall("Calling Python global function: OrthancPluginDicomInstanceToJson()"); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
521 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
522 const char* arg0 = NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
523 long int arg1 = 0; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
524 long int arg2 = 0; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
525 unsigned long arg3 = 0; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
526 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
527 if (!PyArg_ParseTuple(args, "sllk", &arg0, &arg1, &arg2, &arg3)) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
528 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
529 PyErr_SetString(PyExc_TypeError, "Bad types for the arguments (4 arguments expected)"); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
530 return NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
531 } |
174
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
532 |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
533 OrthancPlugins::OrthancString s; |
184
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
534 { |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
535 PythonThreadsAllower allower; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
536 s.Assign(OrthancPluginDicomInstanceToJson(OrthancPlugins::GetGlobalContext(), arg0, static_cast<OrthancPluginDicomToJsonFormat>(arg1), static_cast<OrthancPluginDicomToJsonFlags>(arg2), arg3)); |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
537 } |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
538 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
539 if (s.GetContent() == NULL) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
540 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
541 PythonLock::RaiseException(OrthancPluginErrorCode_InternalError); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
542 return NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
543 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
544 else |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
545 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
546 return PyUnicode_FromString(s.GetContent()); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
547 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
548 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
549 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
550 static PyObject* sdk_OrthancPluginExtendOrthancExplorer(PyObject* module, PyObject* args) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
551 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
552 PythonLock::LogCall("Calling Python global function: OrthancPluginExtendOrthancExplorer()"); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
553 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
554 const char* arg0 = NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
555 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
556 if (!PyArg_ParseTuple(args, "s", &arg0)) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
557 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
558 PyErr_SetString(PyExc_TypeError, "Bad types for the arguments (1 arguments expected)"); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
559 return NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
560 } |
174
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
561 |
184
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
562 { |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
563 PythonThreadsAllower allower; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
564 OrthancPluginExtendOrthancExplorer(OrthancPlugins::GetGlobalContext(), arg0); |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
565 } |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
566 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
567 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
568 Py_INCREF(Py_None); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
569 return Py_None; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
570 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
571 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
572 static PyObject* sdk_OrthancPluginGenerateRestApiAuthorizationToken(PyObject* module, PyObject* args) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
573 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
574 PythonLock::LogCall("Calling Python global function: OrthancPluginGenerateRestApiAuthorizationToken()"); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
575 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
576 |
174
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
577 |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
578 OrthancPlugins::OrthancString s; |
184
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
579 { |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
580 PythonThreadsAllower allower; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
581 s.Assign(OrthancPluginGenerateRestApiAuthorizationToken(OrthancPlugins::GetGlobalContext())); |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
582 } |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
583 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
584 if (s.GetContent() == NULL) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
585 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
586 PythonLock::RaiseException(OrthancPluginErrorCode_InternalError); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
587 return NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
588 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
589 else |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
590 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
591 return PyUnicode_FromString(s.GetContent()); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
592 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
593 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
594 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
595 static PyObject* sdk_OrthancPluginGenerateUuid(PyObject* module, PyObject* args) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
596 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
597 PythonLock::LogCall("Calling Python global function: OrthancPluginGenerateUuid()"); |
1
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
598 |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
599 |
174
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
600 |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
601 OrthancPlugins::OrthancString s; |
184
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
602 { |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
603 PythonThreadsAllower allower; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
604 s.Assign(OrthancPluginGenerateUuid(OrthancPlugins::GetGlobalContext())); |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
605 } |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
606 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
607 if (s.GetContent() == NULL) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
608 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
609 PythonLock::RaiseException(OrthancPluginErrorCode_InternalError); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
610 return NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
611 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
612 else |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
613 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
614 return PyUnicode_FromString(s.GetContent()); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
615 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
616 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
617 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
618 static PyObject* sdk_OrthancPluginGetCommandLineArgument(PyObject* module, PyObject* args) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
619 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
620 PythonLock::LogCall("Calling Python global function: OrthancPluginGetCommandLineArgument()"); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
621 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
622 unsigned long arg0 = 0; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
623 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
624 if (!PyArg_ParseTuple(args, "k", &arg0)) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
625 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
626 PyErr_SetString(PyExc_TypeError, "Bad types for the arguments (1 arguments expected)"); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
627 return NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
628 } |
174
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
629 |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
630 OrthancPlugins::OrthancString s; |
184
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
631 { |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
632 PythonThreadsAllower allower; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
633 s.Assign(OrthancPluginGetCommandLineArgument(OrthancPlugins::GetGlobalContext(), arg0)); |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
634 } |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
635 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
636 if (s.GetContent() == NULL) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
637 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
638 PythonLock::RaiseException(OrthancPluginErrorCode_InternalError); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
639 return NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
640 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
641 else |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
642 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
643 return PyUnicode_FromString(s.GetContent()); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
644 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
645 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
646 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
647 static PyObject* sdk_OrthancPluginGetCommandLineArgumentsCount(PyObject* module, PyObject* args) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
648 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
649 PythonLock::LogCall("Calling Python global function: OrthancPluginGetCommandLineArgumentsCount()"); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
650 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
651 |
174
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
652 |
184
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
653 long value; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
654 { |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
655 PythonThreadsAllower allower; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
656 value = OrthancPluginGetCommandLineArgumentsCount(OrthancPlugins::GetGlobalContext()); |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
657 } |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
658 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
659 return PyLong_FromLong(value); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
660 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
661 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
662 static PyObject* sdk_OrthancPluginGetConfiguration(PyObject* module, PyObject* args) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
663 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
664 PythonLock::LogCall("Calling Python global function: OrthancPluginGetConfiguration()"); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
665 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
666 |
174
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
667 |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
668 OrthancPlugins::OrthancString s; |
184
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
669 { |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
670 PythonThreadsAllower allower; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
671 s.Assign(OrthancPluginGetConfiguration(OrthancPlugins::GetGlobalContext())); |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
672 } |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
673 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
674 if (s.GetContent() == NULL) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
675 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
676 PythonLock::RaiseException(OrthancPluginErrorCode_InternalError); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
677 return NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
678 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
679 else |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
680 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
681 return PyUnicode_FromString(s.GetContent()); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
682 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
683 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
684 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
685 static PyObject* sdk_OrthancPluginGetConfigurationPath(PyObject* module, PyObject* args) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
686 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
687 PythonLock::LogCall("Calling Python global function: OrthancPluginGetConfigurationPath()"); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
688 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
689 |
174
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
690 |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
691 OrthancPlugins::OrthancString s; |
184
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
692 { |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
693 PythonThreadsAllower allower; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
694 s.Assign(OrthancPluginGetConfigurationPath(OrthancPlugins::GetGlobalContext())); |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
695 } |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
696 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
697 if (s.GetContent() == NULL) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
698 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
699 PythonLock::RaiseException(OrthancPluginErrorCode_InternalError); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
700 return NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
701 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
702 else |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
703 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
704 return PyUnicode_FromString(s.GetContent()); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
705 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
706 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
707 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
708 static PyObject* sdk_OrthancPluginGetDicomForInstance(PyObject* module, PyObject* args) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
709 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
710 PythonLock::LogCall("Calling Python global function: OrthancPluginGetDicomForInstance()"); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
711 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
712 const char* arg0 = NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
713 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
714 if (!PyArg_ParseTuple(args, "s", &arg0)) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
715 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
716 PyErr_SetString(PyExc_TypeError, "Bad types for the arguments (1 arguments expected)"); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
717 return NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
718 } |
174
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
719 |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
720 OrthancPlugins::MemoryBuffer buffer; |
184
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
721 OrthancPluginErrorCode code; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
722 { |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
723 PythonThreadsAllower allower; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
724 code = OrthancPluginGetDicomForInstance(OrthancPlugins::GetGlobalContext(), *buffer, arg0); |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
725 } |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
726 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
727 if (code == OrthancPluginErrorCode_Success) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
728 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
729 return PyBytes_FromStringAndSize(buffer.GetData(), buffer.GetSize()); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
730 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
731 else |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
732 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
733 PythonLock::RaiseException(code); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
734 return NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
735 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
736 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
737 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
738 static PyObject* sdk_OrthancPluginGetErrorDescription(PyObject* module, PyObject* args) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
739 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
740 PythonLock::LogCall("Calling Python global function: OrthancPluginGetErrorDescription()"); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
741 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
742 long int arg0 = 0; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
743 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
744 if (!PyArg_ParseTuple(args, "l", &arg0)) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
745 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
746 PyErr_SetString(PyExc_TypeError, "Bad types for the arguments (1 arguments expected)"); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
747 return NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
748 } |
174
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
749 |
184
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
750 const char* s; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
751 { |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
752 PythonThreadsAllower allower; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
753 s = OrthancPluginGetErrorDescription(OrthancPlugins::GetGlobalContext(), static_cast<OrthancPluginErrorCode>(arg0)); |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
754 } |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
755 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
756 if (s == NULL) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
757 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
758 Py_INCREF(Py_None); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
759 return Py_None; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
760 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
761 else |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
762 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
763 return PyUnicode_FromString(s); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
764 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
765 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
766 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
767 static PyObject* sdk_OrthancPluginGetExpectedDatabaseVersion(PyObject* module, PyObject* args) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
768 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
769 PythonLock::LogCall("Calling Python global function: OrthancPluginGetExpectedDatabaseVersion()"); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
770 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
771 |
174
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
772 |
184
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
773 long value; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
774 { |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
775 PythonThreadsAllower allower; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
776 value = OrthancPluginGetExpectedDatabaseVersion(OrthancPlugins::GetGlobalContext()); |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
777 } |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
778 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
779 return PyLong_FromLong(value); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
780 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
781 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
782 static PyObject* sdk_OrthancPluginGetFontName(PyObject* module, PyObject* args) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
783 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
784 PythonLock::LogCall("Calling Python global function: OrthancPluginGetFontName()"); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
785 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
786 unsigned long arg0 = 0; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
787 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
788 if (!PyArg_ParseTuple(args, "k", &arg0)) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
789 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
790 PyErr_SetString(PyExc_TypeError, "Bad types for the arguments (1 arguments expected)"); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
791 return NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
792 } |
174
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
793 |
184
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
794 const char* s; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
795 { |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
796 PythonThreadsAllower allower; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
797 s = OrthancPluginGetFontName(OrthancPlugins::GetGlobalContext(), arg0); |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
798 } |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
799 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
800 if (s == NULL) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
801 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
802 Py_INCREF(Py_None); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
803 return Py_None; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
804 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
805 else |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
806 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
807 return PyUnicode_FromString(s); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
808 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
809 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
810 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
811 static PyObject* sdk_OrthancPluginGetFontSize(PyObject* module, PyObject* args) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
812 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
813 PythonLock::LogCall("Calling Python global function: OrthancPluginGetFontSize()"); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
814 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
815 unsigned long arg0 = 0; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
816 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
817 if (!PyArg_ParseTuple(args, "k", &arg0)) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
818 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
819 PyErr_SetString(PyExc_TypeError, "Bad types for the arguments (1 arguments expected)"); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
820 return NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
821 } |
174
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
822 |
184
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
823 long value; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
824 { |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
825 PythonThreadsAllower allower; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
826 value = OrthancPluginGetFontSize(OrthancPlugins::GetGlobalContext(), arg0); |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
827 } |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
828 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
829 return PyLong_FromLong(value); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
830 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
831 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
832 static PyObject* sdk_OrthancPluginGetFontsCount(PyObject* module, PyObject* args) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
833 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
834 PythonLock::LogCall("Calling Python global function: OrthancPluginGetFontsCount()"); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
835 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
836 |
174
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
837 |
184
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
838 long value; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
839 { |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
840 PythonThreadsAllower allower; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
841 value = OrthancPluginGetFontsCount(OrthancPlugins::GetGlobalContext()); |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
842 } |
1
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
843 |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
844 return PyLong_FromLong(value); |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
845 } |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
846 |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
847 static PyObject* sdk_OrthancPluginGetGlobalProperty(PyObject* module, PyObject* args) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
848 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
849 PythonLock::LogCall("Calling Python global function: OrthancPluginGetGlobalProperty()"); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
850 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
851 long int arg0 = 0; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
852 const char* arg1 = NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
853 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
854 if (!PyArg_ParseTuple(args, "ls", &arg0, &arg1)) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
855 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
856 PyErr_SetString(PyExc_TypeError, "Bad types for the arguments (2 arguments expected)"); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
857 return NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
858 } |
174
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
859 |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
860 OrthancPlugins::OrthancString s; |
184
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
861 { |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
862 PythonThreadsAllower allower; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
863 s.Assign(OrthancPluginGetGlobalProperty(OrthancPlugins::GetGlobalContext(), arg0, arg1)); |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
864 } |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
865 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
866 if (s.GetContent() == NULL) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
867 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
868 PythonLock::RaiseException(OrthancPluginErrorCode_InternalError); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
869 return NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
870 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
871 else |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
872 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
873 return PyUnicode_FromString(s.GetContent()); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
874 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
875 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
876 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
877 static PyObject* sdk_OrthancPluginGetOrthancDirectory(PyObject* module, PyObject* args) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
878 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
879 PythonLock::LogCall("Calling Python global function: OrthancPluginGetOrthancDirectory()"); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
880 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
881 |
174
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
882 |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
883 OrthancPlugins::OrthancString s; |
184
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
884 { |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
885 PythonThreadsAllower allower; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
886 s.Assign(OrthancPluginGetOrthancDirectory(OrthancPlugins::GetGlobalContext())); |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
887 } |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
888 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
889 if (s.GetContent() == NULL) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
890 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
891 PythonLock::RaiseException(OrthancPluginErrorCode_InternalError); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
892 return NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
893 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
894 else |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
895 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
896 return PyUnicode_FromString(s.GetContent()); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
897 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
898 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
899 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
900 static PyObject* sdk_OrthancPluginGetOrthancPath(PyObject* module, PyObject* args) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
901 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
902 PythonLock::LogCall("Calling Python global function: OrthancPluginGetOrthancPath()"); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
903 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
904 |
174
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
905 |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
906 OrthancPlugins::OrthancString s; |
184
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
907 { |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
908 PythonThreadsAllower allower; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
909 s.Assign(OrthancPluginGetOrthancPath(OrthancPlugins::GetGlobalContext())); |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
910 } |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
911 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
912 if (s.GetContent() == NULL) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
913 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
914 PythonLock::RaiseException(OrthancPluginErrorCode_InternalError); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
915 return NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
916 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
917 else |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
918 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
919 return PyUnicode_FromString(s.GetContent()); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
920 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
921 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
922 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
923 static PyObject* sdk_OrthancPluginGetPeers(PyObject* module, PyObject* args) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
924 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
925 PythonLock::LogCall("Calling Python global function: OrthancPluginGetPeers()"); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
926 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
927 |
174
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
928 |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
929 // This is the case of a constructor |
184
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
930 OrthancPluginPeers* obj; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
931 { |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
932 PythonThreadsAllower allower; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
933 obj = OrthancPluginGetPeers(OrthancPlugins::GetGlobalContext()); |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
934 } |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
935 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
936 if (obj == NULL) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
937 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
938 PythonLock::RaiseException(OrthancPluginErrorCode_InternalError); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
939 return NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
940 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
941 else |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
942 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
943 PyObject *argList = Py_BuildValue("Lb", obj, false /* not borrowed */); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
944 PyObject *python = PyObject_CallObject((PyObject *) &sdk_OrthancPluginPeers_Type, argList); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
945 Py_DECREF(argList); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
946 return python; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
947 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
948 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
949 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
950 static PyObject* sdk_OrthancPluginGetTagName(PyObject* module, PyObject* args) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
951 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
952 PythonLock::LogCall("Calling Python global function: OrthancPluginGetTagName()"); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
953 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
954 unsigned short arg0 = 0; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
955 unsigned short arg1 = 0; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
956 const char* arg2 = NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
957 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
958 if (!PyArg_ParseTuple(args, "HHs", &arg0, &arg1, &arg2)) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
959 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
960 PyErr_SetString(PyExc_TypeError, "Bad types for the arguments (3 arguments expected)"); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
961 return NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
962 } |
174
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
963 |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
964 OrthancPlugins::OrthancString s; |
184
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
965 { |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
966 PythonThreadsAllower allower; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
967 s.Assign(OrthancPluginGetTagName(OrthancPlugins::GetGlobalContext(), arg0, arg1, arg2)); |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
968 } |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
969 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
970 if (s.GetContent() == NULL) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
971 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
972 PythonLock::RaiseException(OrthancPluginErrorCode_InternalError); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
973 return NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
974 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
975 else |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
976 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
977 return PyUnicode_FromString(s.GetContent()); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
978 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
979 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
980 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
981 static PyObject* sdk_OrthancPluginHttpDelete(PyObject* module, PyObject* args) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
982 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
983 PythonLock::LogCall("Calling Python global function: OrthancPluginHttpDelete()"); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
984 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
985 const char* arg0 = NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
986 const char* arg1 = NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
987 const char* arg2 = NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
988 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
989 if (!PyArg_ParseTuple(args, "sss", &arg0, &arg1, &arg2)) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
990 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
991 PyErr_SetString(PyExc_TypeError, "Bad types for the arguments (3 arguments expected)"); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
992 return NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
993 } |
174
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
994 |
184
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
995 OrthancPluginErrorCode code; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
996 { |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
997 PythonThreadsAllower allower; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
998 code = OrthancPluginHttpDelete(OrthancPlugins::GetGlobalContext(), arg0, arg1, arg2); |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
999 } |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1000 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1001 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1002 if (code == OrthancPluginErrorCode_Success) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1003 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1004 Py_INCREF(Py_None); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1005 return Py_None; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1006 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1007 else |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1008 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1009 PythonLock::RaiseException(code); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1010 return NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1011 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1012 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1013 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1014 static PyObject* sdk_OrthancPluginHttpGet(PyObject* module, PyObject* args) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1015 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1016 PythonLock::LogCall("Calling Python global function: OrthancPluginHttpGet()"); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1017 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1018 const char* arg0 = NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1019 const char* arg1 = NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1020 const char* arg2 = NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1021 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1022 if (!PyArg_ParseTuple(args, "sss", &arg0, &arg1, &arg2)) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1023 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1024 PyErr_SetString(PyExc_TypeError, "Bad types for the arguments (3 arguments expected)"); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1025 return NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1026 } |
174
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
1027 |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1028 OrthancPlugins::MemoryBuffer buffer; |
184
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1029 OrthancPluginErrorCode code; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1030 { |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1031 PythonThreadsAllower allower; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1032 code = OrthancPluginHttpGet(OrthancPlugins::GetGlobalContext(), *buffer, arg0, arg1, arg2); |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1033 } |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1034 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1035 if (code == OrthancPluginErrorCode_Success) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1036 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1037 return PyBytes_FromStringAndSize(buffer.GetData(), buffer.GetSize()); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1038 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1039 else |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1040 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1041 PythonLock::RaiseException(code); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1042 return NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1043 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1044 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1045 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1046 static PyObject* sdk_OrthancPluginHttpPost(PyObject* module, PyObject* args) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1047 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1048 PythonLock::LogCall("Calling Python global function: OrthancPluginHttpPost()"); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1049 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1050 const char* arg0 = NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1051 Py_buffer arg1; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1052 const char* arg3 = NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1053 const char* arg4 = NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1054 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1055 if (!PyArg_ParseTuple(args, "ss*ss", &arg0, &arg1, &arg3, &arg4)) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1056 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1057 PyErr_SetString(PyExc_TypeError, "Bad types for the arguments (4 arguments expected)"); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1058 return NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1059 } |
174
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
1060 |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1061 OrthancPlugins::MemoryBuffer buffer; |
184
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1062 OrthancPluginErrorCode code; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1063 { |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1064 PythonThreadsAllower allower; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1065 code = OrthancPluginHttpPost(OrthancPlugins::GetGlobalContext(), *buffer, arg0, arg1.buf, arg1.len, arg3, arg4); |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1066 } |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1067 PyBuffer_Release(&arg1); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1068 if (code == OrthancPluginErrorCode_Success) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1069 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1070 return PyBytes_FromStringAndSize(buffer.GetData(), buffer.GetSize()); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1071 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1072 else |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1073 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1074 PythonLock::RaiseException(code); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1075 return NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1076 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1077 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1078 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1079 static PyObject* sdk_OrthancPluginHttpPut(PyObject* module, PyObject* args) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1080 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1081 PythonLock::LogCall("Calling Python global function: OrthancPluginHttpPut()"); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1082 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1083 const char* arg0 = NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1084 Py_buffer arg1; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1085 const char* arg3 = NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1086 const char* arg4 = NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1087 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1088 if (!PyArg_ParseTuple(args, "ss*ss", &arg0, &arg1, &arg3, &arg4)) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1089 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1090 PyErr_SetString(PyExc_TypeError, "Bad types for the arguments (4 arguments expected)"); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1091 return NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1092 } |
174
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
1093 |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1094 OrthancPlugins::MemoryBuffer buffer; |
184
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1095 OrthancPluginErrorCode code; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1096 { |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1097 PythonThreadsAllower allower; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1098 code = OrthancPluginHttpPut(OrthancPlugins::GetGlobalContext(), *buffer, arg0, arg1.buf, arg1.len, arg3, arg4); |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1099 } |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1100 PyBuffer_Release(&arg1); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1101 if (code == OrthancPluginErrorCode_Success) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1102 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1103 return PyBytes_FromStringAndSize(buffer.GetData(), buffer.GetSize()); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1104 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1105 else |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1106 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1107 PythonLock::RaiseException(code); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1108 return NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1109 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1110 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1111 |
1
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1112 static PyObject* sdk_OrthancPluginLogError(PyObject* module, PyObject* args) |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1113 { |
28
b2bbb516056e
The "Calling Python..." info logs are disabled if "PythonVerbose" is "false"
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1
diff
changeset
|
1114 PythonLock::LogCall("Calling Python global function: OrthancPluginLogError()"); |
1
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1115 |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1116 const char* arg0 = NULL; |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1117 |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1118 if (!PyArg_ParseTuple(args, "s", &arg0)) |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1119 { |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1120 PyErr_SetString(PyExc_TypeError, "Bad types for the arguments (1 arguments expected)"); |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1121 return NULL; |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1122 } |
174
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
1123 |
184
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1124 { |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1125 PythonThreadsAllower allower; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1126 OrthancPluginLogError(OrthancPlugins::GetGlobalContext(), arg0); |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1127 } |
1
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1128 |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1129 |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1130 Py_INCREF(Py_None); |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1131 return Py_None; |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1132 } |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1133 |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1134 static PyObject* sdk_OrthancPluginLogInfo(PyObject* module, PyObject* args) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1135 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1136 PythonLock::LogCall("Calling Python global function: OrthancPluginLogInfo()"); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1137 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1138 const char* arg0 = NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1139 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1140 if (!PyArg_ParseTuple(args, "s", &arg0)) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1141 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1142 PyErr_SetString(PyExc_TypeError, "Bad types for the arguments (1 arguments expected)"); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1143 return NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1144 } |
174
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
1145 |
184
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1146 { |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1147 PythonThreadsAllower allower; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1148 OrthancPluginLogInfo(OrthancPlugins::GetGlobalContext(), arg0); |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1149 } |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1150 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1151 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1152 Py_INCREF(Py_None); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1153 return Py_None; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1154 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1155 |
1
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1156 static PyObject* sdk_OrthancPluginLogWarning(PyObject* module, PyObject* args) |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1157 { |
28
b2bbb516056e
The "Calling Python..." info logs are disabled if "PythonVerbose" is "false"
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1
diff
changeset
|
1158 PythonLock::LogCall("Calling Python global function: OrthancPluginLogWarning()"); |
1
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1159 |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1160 const char* arg0 = NULL; |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1161 |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1162 if (!PyArg_ParseTuple(args, "s", &arg0)) |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1163 { |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1164 PyErr_SetString(PyExc_TypeError, "Bad types for the arguments (1 arguments expected)"); |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1165 return NULL; |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1166 } |
174
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
1167 |
184
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1168 { |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1169 PythonThreadsAllower allower; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1170 OrthancPluginLogWarning(OrthancPlugins::GetGlobalContext(), arg0); |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1171 } |
1
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1172 |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1173 |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1174 Py_INCREF(Py_None); |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1175 return Py_None; |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1176 } |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1177 |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1178 static PyObject* sdk_OrthancPluginLookupInstance(PyObject* module, PyObject* args) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1179 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1180 PythonLock::LogCall("Calling Python global function: OrthancPluginLookupInstance()"); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1181 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1182 const char* arg0 = NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1183 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1184 if (!PyArg_ParseTuple(args, "s", &arg0)) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1185 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1186 PyErr_SetString(PyExc_TypeError, "Bad types for the arguments (1 arguments expected)"); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1187 return NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1188 } |
174
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
1189 |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1190 OrthancPlugins::OrthancString s; |
184
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1191 { |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1192 PythonThreadsAllower allower; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1193 s.Assign(OrthancPluginLookupInstance(OrthancPlugins::GetGlobalContext(), arg0)); |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1194 } |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1195 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1196 if (s.GetContent() == NULL) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1197 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1198 PythonLock::RaiseException(OrthancPluginErrorCode_InternalError); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1199 return NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1200 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1201 else |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1202 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1203 return PyUnicode_FromString(s.GetContent()); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1204 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1205 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1206 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1207 static PyObject* sdk_OrthancPluginLookupPatient(PyObject* module, PyObject* args) |
1
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1208 { |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1209 PythonLock::LogCall("Calling Python global function: OrthancPluginLookupPatient()"); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1210 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1211 const char* arg0 = NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1212 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1213 if (!PyArg_ParseTuple(args, "s", &arg0)) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1214 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1215 PyErr_SetString(PyExc_TypeError, "Bad types for the arguments (1 arguments expected)"); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1216 return NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1217 } |
174
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
1218 |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1219 OrthancPlugins::OrthancString s; |
184
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1220 { |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1221 PythonThreadsAllower allower; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1222 s.Assign(OrthancPluginLookupPatient(OrthancPlugins::GetGlobalContext(), arg0)); |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1223 } |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1224 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1225 if (s.GetContent() == NULL) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1226 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1227 PythonLock::RaiseException(OrthancPluginErrorCode_InternalError); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1228 return NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1229 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1230 else |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1231 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1232 return PyUnicode_FromString(s.GetContent()); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1233 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1234 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1235 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1236 static PyObject* sdk_OrthancPluginLookupSeries(PyObject* module, PyObject* args) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1237 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1238 PythonLock::LogCall("Calling Python global function: OrthancPluginLookupSeries()"); |
1
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1239 |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1240 const char* arg0 = NULL; |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1241 |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1242 if (!PyArg_ParseTuple(args, "s", &arg0)) |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1243 { |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1244 PyErr_SetString(PyExc_TypeError, "Bad types for the arguments (1 arguments expected)"); |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1245 return NULL; |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1246 } |
174
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
1247 |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1248 OrthancPlugins::OrthancString s; |
184
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1249 { |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1250 PythonThreadsAllower allower; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1251 s.Assign(OrthancPluginLookupSeries(OrthancPlugins::GetGlobalContext(), arg0)); |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1252 } |
1
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1253 |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1254 if (s.GetContent() == NULL) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1255 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1256 PythonLock::RaiseException(OrthancPluginErrorCode_InternalError); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1257 return NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1258 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1259 else |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1260 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1261 return PyUnicode_FromString(s.GetContent()); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1262 } |
1
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1263 } |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1264 |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1265 static PyObject* sdk_OrthancPluginLookupStudy(PyObject* module, PyObject* args) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1266 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1267 PythonLock::LogCall("Calling Python global function: OrthancPluginLookupStudy()"); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1268 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1269 const char* arg0 = NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1270 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1271 if (!PyArg_ParseTuple(args, "s", &arg0)) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1272 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1273 PyErr_SetString(PyExc_TypeError, "Bad types for the arguments (1 arguments expected)"); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1274 return NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1275 } |
174
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
1276 |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1277 OrthancPlugins::OrthancString s; |
184
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1278 { |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1279 PythonThreadsAllower allower; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1280 s.Assign(OrthancPluginLookupStudy(OrthancPlugins::GetGlobalContext(), arg0)); |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1281 } |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1282 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1283 if (s.GetContent() == NULL) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1284 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1285 PythonLock::RaiseException(OrthancPluginErrorCode_InternalError); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1286 return NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1287 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1288 else |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1289 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1290 return PyUnicode_FromString(s.GetContent()); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1291 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1292 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1293 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1294 static PyObject* sdk_OrthancPluginLookupStudyWithAccessionNumber(PyObject* module, PyObject* args) |
1
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1295 { |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1296 PythonLock::LogCall("Calling Python global function: OrthancPluginLookupStudyWithAccessionNumber()"); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1297 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1298 const char* arg0 = NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1299 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1300 if (!PyArg_ParseTuple(args, "s", &arg0)) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1301 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1302 PyErr_SetString(PyExc_TypeError, "Bad types for the arguments (1 arguments expected)"); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1303 return NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1304 } |
174
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
1305 |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1306 OrthancPlugins::OrthancString s; |
184
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1307 { |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1308 PythonThreadsAllower allower; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1309 s.Assign(OrthancPluginLookupStudyWithAccessionNumber(OrthancPlugins::GetGlobalContext(), arg0)); |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1310 } |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1311 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1312 if (s.GetContent() == NULL) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1313 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1314 PythonLock::RaiseException(OrthancPluginErrorCode_InternalError); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1315 return NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1316 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1317 else |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1318 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1319 return PyUnicode_FromString(s.GetContent()); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1320 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1321 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1322 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1323 static PyObject* sdk_OrthancPluginReadFile(PyObject* module, PyObject* args) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1324 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1325 PythonLock::LogCall("Calling Python global function: OrthancPluginReadFile()"); |
1
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1326 |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1327 const char* arg0 = NULL; |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1328 |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1329 if (!PyArg_ParseTuple(args, "s", &arg0)) |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1330 { |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1331 PyErr_SetString(PyExc_TypeError, "Bad types for the arguments (1 arguments expected)"); |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1332 return NULL; |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1333 } |
174
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
1334 |
1
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1335 OrthancPlugins::MemoryBuffer buffer; |
184
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1336 OrthancPluginErrorCode code; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1337 { |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1338 PythonThreadsAllower allower; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1339 code = OrthancPluginReadFile(OrthancPlugins::GetGlobalContext(), *buffer, arg0); |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1340 } |
1
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1341 |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1342 if (code == OrthancPluginErrorCode_Success) |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1343 { |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1344 return PyBytes_FromStringAndSize(buffer.GetData(), buffer.GetSize()); |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1345 } |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1346 else |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1347 { |
77
e7ff5efb100d
Custom exception "orthanc.OrthancException" is raised instead of "ValueError"
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
75
diff
changeset
|
1348 PythonLock::RaiseException(code); |
1
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1349 return NULL; |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1350 } |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1351 } |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1352 |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1353 static PyObject* sdk_OrthancPluginRegisterDictionaryTag(PyObject* module, PyObject* args) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1354 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1355 PythonLock::LogCall("Calling Python global function: OrthancPluginRegisterDictionaryTag()"); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1356 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1357 unsigned short arg0 = 0; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1358 unsigned short arg1 = 0; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1359 long int arg2 = 0; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1360 const char* arg3 = NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1361 unsigned long arg4 = 0; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1362 unsigned long arg5 = 0; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1363 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1364 if (!PyArg_ParseTuple(args, "HHlskk", &arg0, &arg1, &arg2, &arg3, &arg4, &arg5)) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1365 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1366 PyErr_SetString(PyExc_TypeError, "Bad types for the arguments (6 arguments expected)"); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1367 return NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1368 } |
174
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
1369 |
184
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1370 OrthancPluginErrorCode code; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1371 { |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1372 PythonThreadsAllower allower; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1373 code = OrthancPluginRegisterDictionaryTag(OrthancPlugins::GetGlobalContext(), arg0, arg1, static_cast<OrthancPluginValueRepresentation>(arg2), arg3, arg4, arg5); |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1374 } |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1375 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1376 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1377 if (code == OrthancPluginErrorCode_Success) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1378 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1379 Py_INCREF(Py_None); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1380 return Py_None; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1381 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1382 else |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1383 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1384 PythonLock::RaiseException(code); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1385 return NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1386 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1387 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1388 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1389 static PyObject* sdk_OrthancPluginRegisterErrorCode(PyObject* module, PyObject* args) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1390 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1391 PythonLock::LogCall("Calling Python global function: OrthancPluginRegisterErrorCode()"); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1392 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1393 long int arg0 = 0; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1394 unsigned short arg1 = 0; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1395 const char* arg2 = NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1396 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1397 if (!PyArg_ParseTuple(args, "lHs", &arg0, &arg1, &arg2)) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1398 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1399 PyErr_SetString(PyExc_TypeError, "Bad types for the arguments (3 arguments expected)"); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1400 return NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1401 } |
174
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
1402 |
184
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1403 OrthancPluginErrorCode code; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1404 { |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1405 PythonThreadsAllower allower; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1406 code = OrthancPluginRegisterErrorCode(OrthancPlugins::GetGlobalContext(), arg0, arg1, arg2); |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1407 } |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1408 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1409 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1410 if (code == OrthancPluginErrorCode_Success) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1411 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1412 Py_INCREF(Py_None); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1413 return Py_None; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1414 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1415 else |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1416 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1417 PythonLock::RaiseException(code); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1418 return NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1419 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1420 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1421 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1422 static PyObject* sdk_OrthancPluginRegisterPrivateDictionaryTag(PyObject* module, PyObject* args) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1423 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1424 PythonLock::LogCall("Calling Python global function: OrthancPluginRegisterPrivateDictionaryTag()"); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1425 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1426 unsigned short arg0 = 0; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1427 unsigned short arg1 = 0; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1428 long int arg2 = 0; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1429 const char* arg3 = NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1430 unsigned long arg4 = 0; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1431 unsigned long arg5 = 0; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1432 const char* arg6 = NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1433 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1434 if (!PyArg_ParseTuple(args, "HHlskks", &arg0, &arg1, &arg2, &arg3, &arg4, &arg5, &arg6)) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1435 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1436 PyErr_SetString(PyExc_TypeError, "Bad types for the arguments (7 arguments expected)"); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1437 return NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1438 } |
174
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
1439 |
184
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1440 OrthancPluginErrorCode code; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1441 { |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1442 PythonThreadsAllower allower; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1443 code = OrthancPluginRegisterPrivateDictionaryTag(OrthancPlugins::GetGlobalContext(), arg0, arg1, static_cast<OrthancPluginValueRepresentation>(arg2), arg3, arg4, arg5, arg6); |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1444 } |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1445 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1446 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1447 if (code == OrthancPluginErrorCode_Success) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1448 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1449 Py_INCREF(Py_None); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1450 return Py_None; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1451 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1452 else |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1453 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1454 PythonLock::RaiseException(code); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1455 return NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1456 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1457 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1458 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1459 static PyObject* sdk_OrthancPluginRestApiDelete(PyObject* module, PyObject* args) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1460 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1461 PythonLock::LogCall("Calling Python global function: OrthancPluginRestApiDelete()"); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1462 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1463 const char* arg0 = NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1464 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1465 if (!PyArg_ParseTuple(args, "s", &arg0)) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1466 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1467 PyErr_SetString(PyExc_TypeError, "Bad types for the arguments (1 arguments expected)"); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1468 return NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1469 } |
174
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
1470 |
184
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1471 OrthancPluginErrorCode code; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1472 { |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1473 PythonThreadsAllower allower; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1474 code = OrthancPluginRestApiDelete(OrthancPlugins::GetGlobalContext(), arg0); |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1475 } |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1476 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1477 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1478 if (code == OrthancPluginErrorCode_Success) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1479 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1480 Py_INCREF(Py_None); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1481 return Py_None; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1482 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1483 else |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1484 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1485 PythonLock::RaiseException(code); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1486 return NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1487 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1488 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1489 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1490 static PyObject* sdk_OrthancPluginRestApiDeleteAfterPlugins(PyObject* module, PyObject* args) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1491 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1492 PythonLock::LogCall("Calling Python global function: OrthancPluginRestApiDeleteAfterPlugins()"); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1493 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1494 const char* arg0 = NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1495 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1496 if (!PyArg_ParseTuple(args, "s", &arg0)) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1497 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1498 PyErr_SetString(PyExc_TypeError, "Bad types for the arguments (1 arguments expected)"); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1499 return NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1500 } |
174
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
1501 |
184
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1502 OrthancPluginErrorCode code; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1503 { |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1504 PythonThreadsAllower allower; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1505 code = OrthancPluginRestApiDeleteAfterPlugins(OrthancPlugins::GetGlobalContext(), arg0); |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1506 } |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1507 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1508 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1509 if (code == OrthancPluginErrorCode_Success) |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1510 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1511 Py_INCREF(Py_None); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1512 return Py_None; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1513 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1514 else |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1515 { |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1516 PythonLock::RaiseException(code); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1517 return NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1518 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1519 } |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1520 |
1
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1521 static PyObject* sdk_OrthancPluginRestApiGet(PyObject* module, PyObject* args) |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1522 { |
28
b2bbb516056e
The "Calling Python..." info logs are disabled if "PythonVerbose" is "false"
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1
diff
changeset
|
1523 PythonLock::LogCall("Calling Python global function: OrthancPluginRestApiGet()"); |
1
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1524 |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1525 const char* arg0 = NULL; |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1526 |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1527 if (!PyArg_ParseTuple(args, "s", &arg0)) |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1528 { |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1529 PyErr_SetString(PyExc_TypeError, "Bad types for the arguments (1 arguments expected)"); |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1530 return NULL; |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1531 } |
174
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
1532 |
1
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1533 OrthancPlugins::MemoryBuffer buffer; |
184
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1534 OrthancPluginErrorCode code; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1535 { |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1536 PythonThreadsAllower allower; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1537 code = OrthancPluginRestApiGet(OrthancPlugins::GetGlobalContext(), *buffer, arg0); |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1538 } |
1
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1539 |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1540 if (code == OrthancPluginErrorCode_Success) |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1541 { |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1542 return PyBytes_FromStringAndSize(buffer.GetData(), buffer.GetSize()); |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1543 } |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1544 else |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1545 { |
77
e7ff5efb100d
Custom exception "orthanc.OrthancException" is raised instead of "ValueError"
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
75
diff
changeset
|
1546 PythonLock::RaiseException(code); |
1
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1547 return NULL; |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1548 } |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1549 } |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1550 |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1551 static PyObject* sdk_OrthancPluginRestApiGetAfterPlugins(PyObject* module, PyObject* args) |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1552 { |
28
b2bbb516056e
The "Calling Python..." info logs are disabled if "PythonVerbose" is "false"
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1
diff
changeset
|
1553 PythonLock::LogCall("Calling Python global function: OrthancPluginRestApiGetAfterPlugins()"); |
1
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1554 |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1555 const char* arg0 = NULL; |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1556 |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1557 if (!PyArg_ParseTuple(args, "s", &arg0)) |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1558 { |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1559 PyErr_SetString(PyExc_TypeError, "Bad types for the arguments (1 arguments expected)"); |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1560 return NULL; |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1561 } |
174
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
1562 |
1
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1563 OrthancPlugins::MemoryBuffer buffer; |
184
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1564 OrthancPluginErrorCode code; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1565 { |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1566 PythonThreadsAllower allower; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1567 code = OrthancPluginRestApiGetAfterPlugins(OrthancPlugins::GetGlobalContext(), *buffer, arg0); |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1568 } |
1
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1569 |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1570 if (code == OrthancPluginErrorCode_Success) |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1571 { |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1572 return PyBytes_FromStringAndSize(buffer.GetData(), buffer.GetSize()); |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1573 } |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1574 else |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1575 { |
77
e7ff5efb100d
Custom exception "orthanc.OrthancException" is raised instead of "ValueError"
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
75
diff
changeset
|
1576 PythonLock::RaiseException(code); |
1
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1577 return NULL; |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1578 } |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1579 } |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1580 |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1581 static PyObject* sdk_OrthancPluginRestApiPost(PyObject* module, PyObject* args) |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1582 { |
28
b2bbb516056e
The "Calling Python..." info logs are disabled if "PythonVerbose" is "false"
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1
diff
changeset
|
1583 PythonLock::LogCall("Calling Python global function: OrthancPluginRestApiPost()"); |
1
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1584 |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1585 const char* arg0 = NULL; |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1586 Py_buffer arg1; |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1587 |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1588 if (!PyArg_ParseTuple(args, "ss*", &arg0, &arg1)) |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1589 { |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1590 PyErr_SetString(PyExc_TypeError, "Bad types for the arguments (2 arguments expected)"); |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1591 return NULL; |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1592 } |
174
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
1593 |
1
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1594 OrthancPlugins::MemoryBuffer buffer; |
184
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1595 OrthancPluginErrorCode code; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1596 { |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1597 PythonThreadsAllower allower; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1598 code = OrthancPluginRestApiPost(OrthancPlugins::GetGlobalContext(), *buffer, arg0, arg1.buf, arg1.len); |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1599 } |
1
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1600 PyBuffer_Release(&arg1); |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1601 if (code == OrthancPluginErrorCode_Success) |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1602 { |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1603 return PyBytes_FromStringAndSize(buffer.GetData(), buffer.GetSize()); |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1604 } |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1605 else |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1606 { |
77
e7ff5efb100d
Custom exception "orthanc.OrthancException" is raised instead of "ValueError"
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
75
diff
changeset
|
1607 PythonLock::RaiseException(code); |
1
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1608 return NULL; |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1609 } |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1610 } |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1611 |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1612 static PyObject* sdk_OrthancPluginRestApiPostAfterPlugins(PyObject* module, PyObject* args) |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1613 { |
28
b2bbb516056e
The "Calling Python..." info logs are disabled if "PythonVerbose" is "false"
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1
diff
changeset
|
1614 PythonLock::LogCall("Calling Python global function: OrthancPluginRestApiPostAfterPlugins()"); |
1
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1615 |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1616 const char* arg0 = NULL; |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1617 Py_buffer arg1; |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1618 |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1619 if (!PyArg_ParseTuple(args, "ss*", &arg0, &arg1)) |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1620 { |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1621 PyErr_SetString(PyExc_TypeError, "Bad types for the arguments (2 arguments expected)"); |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1622 return NULL; |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1623 } |
174
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
1624 |
1
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1625 OrthancPlugins::MemoryBuffer buffer; |
184
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1626 OrthancPluginErrorCode code; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1627 { |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1628 PythonThreadsAllower allower; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1629 code = OrthancPluginRestApiPostAfterPlugins(OrthancPlugins::GetGlobalContext(), *buffer, arg0, arg1.buf, arg1.len); |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1630 } |
1
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1631 PyBuffer_Release(&arg1); |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1632 if (code == OrthancPluginErrorCode_Success) |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1633 { |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1634 return PyBytes_FromStringAndSize(buffer.GetData(), buffer.GetSize()); |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1635 } |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1636 else |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1637 { |
77
e7ff5efb100d
Custom exception "orthanc.OrthancException" is raised instead of "ValueError"
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
75
diff
changeset
|
1638 PythonLock::RaiseException(code); |
1
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1639 return NULL; |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1640 } |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1641 } |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1642 |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1643 static PyObject* sdk_OrthancPluginRestApiPut(PyObject* module, PyObject* args) |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1644 { |
28
b2bbb516056e
The "Calling Python..." info logs are disabled if "PythonVerbose" is "false"
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1
diff
changeset
|
1645 PythonLock::LogCall("Calling Python global function: OrthancPluginRestApiPut()"); |
1
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1646 |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1647 const char* arg0 = NULL; |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1648 Py_buffer arg1; |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1649 |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1650 if (!PyArg_ParseTuple(args, "ss*", &arg0, &arg1)) |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1651 { |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1652 PyErr_SetString(PyExc_TypeError, "Bad types for the arguments (2 arguments expected)"); |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1653 return NULL; |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1654 } |
174
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
1655 |
1
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1656 OrthancPlugins::MemoryBuffer buffer; |
184
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1657 OrthancPluginErrorCode code; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1658 { |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1659 PythonThreadsAllower allower; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1660 code = OrthancPluginRestApiPut(OrthancPlugins::GetGlobalContext(), *buffer, arg0, arg1.buf, arg1.len); |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1661 } |
1
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1662 PyBuffer_Release(&arg1); |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1663 if (code == OrthancPluginErrorCode_Success) |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1664 { |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1665 return PyBytes_FromStringAndSize(buffer.GetData(), buffer.GetSize()); |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1666 } |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1667 else |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1668 { |
77
e7ff5efb100d
Custom exception "orthanc.OrthancException" is raised instead of "ValueError"
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
75
diff
changeset
|
1669 PythonLock::RaiseException(code); |
1
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1670 return NULL; |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1671 } |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1672 } |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1673 |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1674 static PyObject* sdk_OrthancPluginRestApiPutAfterPlugins(PyObject* module, PyObject* args) |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1675 { |
28
b2bbb516056e
The "Calling Python..." info logs are disabled if "PythonVerbose" is "false"
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1
diff
changeset
|
1676 PythonLock::LogCall("Calling Python global function: OrthancPluginRestApiPutAfterPlugins()"); |
1
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1677 |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1678 const char* arg0 = NULL; |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1679 Py_buffer arg1; |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1680 |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1681 if (!PyArg_ParseTuple(args, "ss*", &arg0, &arg1)) |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1682 { |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1683 PyErr_SetString(PyExc_TypeError, "Bad types for the arguments (2 arguments expected)"); |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1684 return NULL; |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1685 } |
174
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
1686 |
1
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1687 OrthancPlugins::MemoryBuffer buffer; |
184
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1688 OrthancPluginErrorCode code; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1689 { |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1690 PythonThreadsAllower allower; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1691 code = OrthancPluginRestApiPutAfterPlugins(OrthancPlugins::GetGlobalContext(), *buffer, arg0, arg1.buf, arg1.len); |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1692 } |
1
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1693 PyBuffer_Release(&arg1); |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1694 if (code == OrthancPluginErrorCode_Success) |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1695 { |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1696 return PyBytes_FromStringAndSize(buffer.GetData(), buffer.GetSize()); |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1697 } |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1698 else |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1699 { |
77
e7ff5efb100d
Custom exception "orthanc.OrthancException" is raised instead of "ValueError"
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
75
diff
changeset
|
1700 PythonLock::RaiseException(code); |
1
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1701 return NULL; |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1702 } |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1703 } |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1704 |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1705 static PyObject* sdk_OrthancPluginSetDescription(PyObject* module, PyObject* args) |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1706 { |
28
b2bbb516056e
The "Calling Python..." info logs are disabled if "PythonVerbose" is "false"
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1
diff
changeset
|
1707 PythonLock::LogCall("Calling Python global function: OrthancPluginSetDescription()"); |
1
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1708 |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1709 const char* arg0 = NULL; |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1710 |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1711 if (!PyArg_ParseTuple(args, "s", &arg0)) |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1712 { |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1713 PyErr_SetString(PyExc_TypeError, "Bad types for the arguments (1 arguments expected)"); |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1714 return NULL; |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1715 } |
174
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
1716 |
184
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1717 { |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1718 PythonThreadsAllower allower; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1719 OrthancPluginSetDescription(OrthancPlugins::GetGlobalContext(), arg0); |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1720 } |
1
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1721 |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1722 |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1723 Py_INCREF(Py_None); |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1724 return Py_None; |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1725 } |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1726 |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1727 static PyObject* sdk_OrthancPluginSetGlobalProperty(PyObject* module, PyObject* args) |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1728 { |
28
b2bbb516056e
The "Calling Python..." info logs are disabled if "PythonVerbose" is "false"
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1
diff
changeset
|
1729 PythonLock::LogCall("Calling Python global function: OrthancPluginSetGlobalProperty()"); |
1
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1730 |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1731 long int arg0 = 0; |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1732 const char* arg1 = NULL; |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1733 |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1734 if (!PyArg_ParseTuple(args, "ls", &arg0, &arg1)) |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1735 { |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1736 PyErr_SetString(PyExc_TypeError, "Bad types for the arguments (2 arguments expected)"); |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1737 return NULL; |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1738 } |
174
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
1739 |
184
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1740 OrthancPluginErrorCode code; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1741 { |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1742 PythonThreadsAllower allower; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1743 code = OrthancPluginSetGlobalProperty(OrthancPlugins::GetGlobalContext(), arg0, arg1); |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1744 } |
1
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1745 |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1746 |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1747 if (code == OrthancPluginErrorCode_Success) |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1748 { |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1749 Py_INCREF(Py_None); |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1750 return Py_None; |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1751 } |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1752 else |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1753 { |
75
cbfc72a53970
refactoring calls to PythonLock::RaiseException()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
56
diff
changeset
|
1754 PythonLock::RaiseException(code); |
1
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1755 return NULL; |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1756 } |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1757 } |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1758 |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1759 static PyObject* sdk_OrthancPluginSetMetricsValue(PyObject* module, PyObject* args) |
1
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1760 { |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1761 PythonLock::LogCall("Calling Python global function: OrthancPluginSetMetricsValue()"); |
1
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1762 |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1763 const char* arg0 = NULL; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1764 float arg1 = 0; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1765 long int arg2 = 0; |
1
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1766 |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1767 if (!PyArg_ParseTuple(args, "sfl", &arg0, &arg1, &arg2)) |
1
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1768 { |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1769 PyErr_SetString(PyExc_TypeError, "Bad types for the arguments (3 arguments expected)"); |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1770 return NULL; |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1771 } |
174
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
1772 |
184
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1773 { |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1774 PythonThreadsAllower allower; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1775 OrthancPluginSetMetricsValue(OrthancPlugins::GetGlobalContext(), arg0, arg1, static_cast<OrthancPluginMetricsType>(arg2)); |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1776 } |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1777 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1778 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1779 Py_INCREF(Py_None); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1780 return Py_None; |
1
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1781 } |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1782 |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1783 static PyObject* sdk_OrthancPluginSetRootUri(PyObject* module, PyObject* args) |
1
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1784 { |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1785 PythonLock::LogCall("Calling Python global function: OrthancPluginSetRootUri()"); |
1
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1786 |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1787 const char* arg0 = NULL; |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1788 |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1789 if (!PyArg_ParseTuple(args, "s", &arg0)) |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1790 { |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1791 PyErr_SetString(PyExc_TypeError, "Bad types for the arguments (1 arguments expected)"); |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1792 return NULL; |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1793 } |
174
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
1794 |
184
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1795 { |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1796 PythonThreadsAllower allower; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1797 OrthancPluginSetRootUri(OrthancPlugins::GetGlobalContext(), arg0); |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1798 } |
1
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1799 |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1800 |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1801 Py_INCREF(Py_None); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1802 return Py_None; |
1
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1803 } |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1804 |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1805 static PyObject* sdk_OrthancPluginTranscodeDicomInstance(PyObject* module, PyObject* args) |
1
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1806 { |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1807 PythonLock::LogCall("Calling Python global function: OrthancPluginTranscodeDicomInstance()"); |
1
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1808 |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1809 Py_buffer arg0; |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1810 const char* arg2 = NULL; |
1
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1811 |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1812 if (!PyArg_ParseTuple(args, "s*s", &arg0, &arg2)) |
1
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1813 { |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1814 PyErr_SetString(PyExc_TypeError, "Bad types for the arguments (2 arguments expected)"); |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1815 return NULL; |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1816 } |
174
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
1817 |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1818 // This is the case of a constructor |
184
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1819 OrthancPluginDicomInstance* obj; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1820 { |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1821 PythonThreadsAllower allower; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1822 obj = OrthancPluginTranscodeDicomInstance(OrthancPlugins::GetGlobalContext(), arg0.buf, arg0.len, arg2); |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1823 } |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1824 PyBuffer_Release(&arg0); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1825 if (obj == NULL) |
1
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1826 { |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1827 PythonLock::RaiseException(OrthancPluginErrorCode_InternalError); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1828 return NULL; |
1
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1829 } |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1830 else |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1831 { |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1832 PyObject *argList = Py_BuildValue("Lb", obj, false /* not borrowed */); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1833 PyObject *python = PyObject_CallObject((PyObject *) &sdk_OrthancPluginDicomInstance_Type, argList); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1834 Py_DECREF(argList); |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1835 return python; |
1
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1836 } |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1837 } |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1838 |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1839 static PyObject* sdk_OrthancPluginUncompressImage(PyObject* module, PyObject* args) |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1840 { |
28
b2bbb516056e
The "Calling Python..." info logs are disabled if "PythonVerbose" is "false"
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1
diff
changeset
|
1841 PythonLock::LogCall("Calling Python global function: OrthancPluginUncompressImage()"); |
1
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1842 |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1843 Py_buffer arg0; |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1844 long int arg2 = 0; |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1845 |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1846 if (!PyArg_ParseTuple(args, "s*l", &arg0, &arg2)) |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1847 { |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1848 PyErr_SetString(PyExc_TypeError, "Bad types for the arguments (2 arguments expected)"); |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1849 return NULL; |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1850 } |
174
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
1851 |
1
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1852 // This is the case of a constructor |
184
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1853 OrthancPluginImage* obj; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1854 { |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1855 PythonThreadsAllower allower; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1856 obj = OrthancPluginUncompressImage(OrthancPlugins::GetGlobalContext(), arg0.buf, arg0.len, static_cast<OrthancPluginImageFormat>(arg2)); |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1857 } |
1
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1858 PyBuffer_Release(&arg0); |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1859 if (obj == NULL) |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1860 { |
75
cbfc72a53970
refactoring calls to PythonLock::RaiseException()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
56
diff
changeset
|
1861 PythonLock::RaiseException(OrthancPluginErrorCode_InternalError); |
1
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1862 return NULL; |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1863 } |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1864 else |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1865 { |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1866 PyObject *argList = Py_BuildValue("Lb", obj, false /* not borrowed */); |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1867 PyObject *python = PyObject_CallObject((PyObject *) &sdk_OrthancPluginImage_Type, argList); |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1868 Py_DECREF(argList); |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1869 return python; |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1870 } |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1871 } |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1872 |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1873 static PyObject* sdk_OrthancPluginWriteFile(PyObject* module, PyObject* args) |
1
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1874 { |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1875 PythonLock::LogCall("Calling Python global function: OrthancPluginWriteFile()"); |
1
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1876 |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1877 const char* arg0 = NULL; |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1878 Py_buffer arg1; |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1879 |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1880 if (!PyArg_ParseTuple(args, "ss*", &arg0, &arg1)) |
1
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1881 { |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1882 PyErr_SetString(PyExc_TypeError, "Bad types for the arguments (2 arguments expected)"); |
1
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1883 return NULL; |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1884 } |
174
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
1885 |
184
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1886 OrthancPluginErrorCode code; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1887 { |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1888 PythonThreadsAllower allower; |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1889 code = OrthancPluginWriteFile(OrthancPlugins::GetGlobalContext(), arg0, arg1.buf, arg1.len); |
f34f3a149c22
added class PythonThreadsAllower
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
178
diff
changeset
|
1890 } |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1891 PyBuffer_Release(&arg1); |
1
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1892 |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1893 if (code == OrthancPluginErrorCode_Success) |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1894 { |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1895 Py_INCREF(Py_None); |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1896 return Py_None; |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1897 } |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1898 else |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1899 { |
75
cbfc72a53970
refactoring calls to PythonLock::RaiseException()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
56
diff
changeset
|
1900 PythonLock::RaiseException(code); |
1
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1901 return NULL; |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1902 } |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1903 } |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1904 |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1905 |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1906 static PyMethodDef ORTHANC_SDK_FUNCTIONS[] = |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1907 { |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1908 { "AutodetectMimeType", sdk_OrthancPluginAutodetectMimeType, METH_VARARGS, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1909 "Generated from C function OrthancPluginAutodetectMimeType()" }, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1910 { "BufferCompression", sdk_OrthancPluginBufferCompression, METH_VARARGS, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1911 "Generated from C function OrthancPluginBufferCompression()" }, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1912 { "CheckVersion", sdk_OrthancPluginCheckVersion, METH_VARARGS, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1913 "Generated from C function OrthancPluginCheckVersion()" }, |
1
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1914 { "CheckVersionAdvanced", sdk_OrthancPluginCheckVersionAdvanced, METH_VARARGS, |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1915 "Generated from C function OrthancPluginCheckVersionAdvanced()" }, |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1916 { "CompressJpegImage", sdk_OrthancPluginCompressJpegImage, METH_VARARGS, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1917 "Generated from C function OrthancPluginCompressJpegImage()" }, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1918 { "CompressPngImage", sdk_OrthancPluginCompressPngImage, METH_VARARGS, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1919 "Generated from C function OrthancPluginCompressPngImage()" }, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1920 { "ComputeMd5", sdk_OrthancPluginComputeMd5, METH_VARARGS, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1921 "Generated from C function OrthancPluginComputeMd5()" }, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1922 { "ComputeSha1", sdk_OrthancPluginComputeSha1, METH_VARARGS, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1923 "Generated from C function OrthancPluginComputeSha1()" }, |
174
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
1924 { "CreateDicom", sdk_OrthancPluginCreateDicom, METH_VARARGS, |
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
1925 "Generated from C function OrthancPluginCreateDicom()" }, |
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
1926 { "CreateDicom2", sdk_OrthancPluginCreateDicom2, METH_VARARGS, |
e9be3c9294d4
[IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
170
diff
changeset
|
1927 "Generated from C function OrthancPluginCreateDicom2()" }, |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1928 { "CreateDicomInstance", sdk_OrthancPluginCreateDicomInstance, METH_VARARGS, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1929 "Generated from C function OrthancPluginCreateDicomInstance()" }, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1930 { "CreateFindMatcher", sdk_OrthancPluginCreateFindMatcher, METH_VARARGS, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1931 "Generated from C function OrthancPluginCreateFindMatcher()" }, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1932 { "CreateImage", sdk_OrthancPluginCreateImage, METH_VARARGS, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1933 "Generated from C function OrthancPluginCreateImage()" }, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1934 { "DecodeDicomImage", sdk_OrthancPluginDecodeDicomImage, METH_VARARGS, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1935 "Generated from C function OrthancPluginDecodeDicomImage()" }, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1936 { "DicomBufferToJson", sdk_OrthancPluginDicomBufferToJson, METH_VARARGS, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1937 "Generated from C function OrthancPluginDicomBufferToJson()" }, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1938 { "DicomInstanceToJson", sdk_OrthancPluginDicomInstanceToJson, METH_VARARGS, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1939 "Generated from C function OrthancPluginDicomInstanceToJson()" }, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1940 { "ExtendOrthancExplorer", sdk_OrthancPluginExtendOrthancExplorer, METH_VARARGS, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1941 "Generated from C function OrthancPluginExtendOrthancExplorer()" }, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1942 { "GenerateRestApiAuthorizationToken", sdk_OrthancPluginGenerateRestApiAuthorizationToken, METH_VARARGS, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1943 "Generated from C function OrthancPluginGenerateRestApiAuthorizationToken()" }, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1944 { "GenerateUuid", sdk_OrthancPluginGenerateUuid, METH_VARARGS, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1945 "Generated from C function OrthancPluginGenerateUuid()" }, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1946 { "GetCommandLineArgument", sdk_OrthancPluginGetCommandLineArgument, METH_VARARGS, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1947 "Generated from C function OrthancPluginGetCommandLineArgument()" }, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1948 { "GetCommandLineArgumentsCount", sdk_OrthancPluginGetCommandLineArgumentsCount, METH_VARARGS, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1949 "Generated from C function OrthancPluginGetCommandLineArgumentsCount()" }, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1950 { "GetConfiguration", sdk_OrthancPluginGetConfiguration, METH_VARARGS, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1951 "Generated from C function OrthancPluginGetConfiguration()" }, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1952 { "GetConfigurationPath", sdk_OrthancPluginGetConfigurationPath, METH_VARARGS, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1953 "Generated from C function OrthancPluginGetConfigurationPath()" }, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1954 { "GetDicomForInstance", sdk_OrthancPluginGetDicomForInstance, METH_VARARGS, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1955 "Generated from C function OrthancPluginGetDicomForInstance()" }, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1956 { "GetErrorDescription", sdk_OrthancPluginGetErrorDescription, METH_VARARGS, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1957 "Generated from C function OrthancPluginGetErrorDescription()" }, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1958 { "GetExpectedDatabaseVersion", sdk_OrthancPluginGetExpectedDatabaseVersion, METH_VARARGS, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1959 "Generated from C function OrthancPluginGetExpectedDatabaseVersion()" }, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1960 { "GetFontName", sdk_OrthancPluginGetFontName, METH_VARARGS, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1961 "Generated from C function OrthancPluginGetFontName()" }, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1962 { "GetFontSize", sdk_OrthancPluginGetFontSize, METH_VARARGS, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1963 "Generated from C function OrthancPluginGetFontSize()" }, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1964 { "GetFontsCount", sdk_OrthancPluginGetFontsCount, METH_VARARGS, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1965 "Generated from C function OrthancPluginGetFontsCount()" }, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1966 { "GetGlobalProperty", sdk_OrthancPluginGetGlobalProperty, METH_VARARGS, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1967 "Generated from C function OrthancPluginGetGlobalProperty()" }, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1968 { "GetOrthancDirectory", sdk_OrthancPluginGetOrthancDirectory, METH_VARARGS, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1969 "Generated from C function OrthancPluginGetOrthancDirectory()" }, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1970 { "GetOrthancPath", sdk_OrthancPluginGetOrthancPath, METH_VARARGS, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1971 "Generated from C function OrthancPluginGetOrthancPath()" }, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1972 { "GetPeers", sdk_OrthancPluginGetPeers, METH_VARARGS, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1973 "Generated from C function OrthancPluginGetPeers()" }, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1974 { "GetTagName", sdk_OrthancPluginGetTagName, METH_VARARGS, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1975 "Generated from C function OrthancPluginGetTagName()" }, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1976 { "HttpDelete", sdk_OrthancPluginHttpDelete, METH_VARARGS, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1977 "Generated from C function OrthancPluginHttpDelete()" }, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1978 { "HttpGet", sdk_OrthancPluginHttpGet, METH_VARARGS, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1979 "Generated from C function OrthancPluginHttpGet()" }, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1980 { "HttpPost", sdk_OrthancPluginHttpPost, METH_VARARGS, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1981 "Generated from C function OrthancPluginHttpPost()" }, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1982 { "HttpPut", sdk_OrthancPluginHttpPut, METH_VARARGS, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1983 "Generated from C function OrthancPluginHttpPut()" }, |
1
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1984 { "LogError", sdk_OrthancPluginLogError, METH_VARARGS, |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1985 "Generated from C function OrthancPluginLogError()" }, |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1986 { "LogInfo", sdk_OrthancPluginLogInfo, METH_VARARGS, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1987 "Generated from C function OrthancPluginLogInfo()" }, |
1
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1988 { "LogWarning", sdk_OrthancPluginLogWarning, METH_VARARGS, |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1989 "Generated from C function OrthancPluginLogWarning()" }, |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1990 { "LookupInstance", sdk_OrthancPluginLookupInstance, METH_VARARGS, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1991 "Generated from C function OrthancPluginLookupInstance()" }, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1992 { "LookupPatient", sdk_OrthancPluginLookupPatient, METH_VARARGS, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1993 "Generated from C function OrthancPluginLookupPatient()" }, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1994 { "LookupSeries", sdk_OrthancPluginLookupSeries, METH_VARARGS, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1995 "Generated from C function OrthancPluginLookupSeries()" }, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1996 { "LookupStudy", sdk_OrthancPluginLookupStudy, METH_VARARGS, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1997 "Generated from C function OrthancPluginLookupStudy()" }, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1998 { "LookupStudyWithAccessionNumber", sdk_OrthancPluginLookupStudyWithAccessionNumber, METH_VARARGS, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
1999 "Generated from C function OrthancPluginLookupStudyWithAccessionNumber()" }, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
2000 { "ReadFile", sdk_OrthancPluginReadFile, METH_VARARGS, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
2001 "Generated from C function OrthancPluginReadFile()" }, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
2002 { "RegisterDictionaryTag", sdk_OrthancPluginRegisterDictionaryTag, METH_VARARGS, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
2003 "Generated from C function OrthancPluginRegisterDictionaryTag()" }, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
2004 { "RegisterErrorCode", sdk_OrthancPluginRegisterErrorCode, METH_VARARGS, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
2005 "Generated from C function OrthancPluginRegisterErrorCode()" }, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
2006 { "RegisterPrivateDictionaryTag", sdk_OrthancPluginRegisterPrivateDictionaryTag, METH_VARARGS, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
2007 "Generated from C function OrthancPluginRegisterPrivateDictionaryTag()" }, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
2008 { "RestApiDelete", sdk_OrthancPluginRestApiDelete, METH_VARARGS, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
2009 "Generated from C function OrthancPluginRestApiDelete()" }, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
2010 { "RestApiDeleteAfterPlugins", sdk_OrthancPluginRestApiDeleteAfterPlugins, METH_VARARGS, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
2011 "Generated from C function OrthancPluginRestApiDeleteAfterPlugins()" }, |
1
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
2012 { "RestApiGet", sdk_OrthancPluginRestApiGet, METH_VARARGS, |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
2013 "Generated from C function OrthancPluginRestApiGet()" }, |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
2014 { "RestApiGetAfterPlugins", sdk_OrthancPluginRestApiGetAfterPlugins, METH_VARARGS, |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
2015 "Generated from C function OrthancPluginRestApiGetAfterPlugins()" }, |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
2016 { "RestApiPost", sdk_OrthancPluginRestApiPost, METH_VARARGS, |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
2017 "Generated from C function OrthancPluginRestApiPost()" }, |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
2018 { "RestApiPostAfterPlugins", sdk_OrthancPluginRestApiPostAfterPlugins, METH_VARARGS, |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
2019 "Generated from C function OrthancPluginRestApiPostAfterPlugins()" }, |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
2020 { "RestApiPut", sdk_OrthancPluginRestApiPut, METH_VARARGS, |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
2021 "Generated from C function OrthancPluginRestApiPut()" }, |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
2022 { "RestApiPutAfterPlugins", sdk_OrthancPluginRestApiPutAfterPlugins, METH_VARARGS, |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
2023 "Generated from C function OrthancPluginRestApiPutAfterPlugins()" }, |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
2024 { "SetDescription", sdk_OrthancPluginSetDescription, METH_VARARGS, |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
2025 "Generated from C function OrthancPluginSetDescription()" }, |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
2026 { "SetGlobalProperty", sdk_OrthancPluginSetGlobalProperty, METH_VARARGS, |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
2027 "Generated from C function OrthancPluginSetGlobalProperty()" }, |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
2028 { "SetMetricsValue", sdk_OrthancPluginSetMetricsValue, METH_VARARGS, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
2029 "Generated from C function OrthancPluginSetMetricsValue()" }, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
2030 { "SetRootUri", sdk_OrthancPluginSetRootUri, METH_VARARGS, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
2031 "Generated from C function OrthancPluginSetRootUri()" }, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
2032 { "TranscodeDicomInstance", sdk_OrthancPluginTranscodeDicomInstance, METH_VARARGS, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
2033 "Generated from C function OrthancPluginTranscodeDicomInstance()" }, |
1
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
2034 { "UncompressImage", sdk_OrthancPluginUncompressImage, METH_VARARGS, |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
2035 "Generated from C function OrthancPluginUncompressImage()" }, |
170
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
2036 { "WriteFile", sdk_OrthancPluginWriteFile, METH_VARARGS, |
b49eeb36cd0d
removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
166
diff
changeset
|
2037 "Generated from C function OrthancPluginWriteFile()" }, |
208
315e1720a35f
documented orthanc.CreateImageFromBuffer()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
205
diff
changeset
|
2038 { "CreateImageFromBuffer", CreateImageFromBuffer, METH_VARARGS, |
315e1720a35f
documented orthanc.CreateImageFromBuffer()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
205
diff
changeset
|
2039 "Implemented in C++ function CreateImageFromBuffer()" }, |
205
234681297600
documented orthanc.LookupDictionary()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
203
diff
changeset
|
2040 { "LookupDictionary", LookupDictionary, METH_VARARGS, |
234681297600
documented orthanc.LookupDictionary()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
203
diff
changeset
|
2041 "Implemented in C++ function LookupDictionary()" }, |
211
d7acfccc0d0b
documented RegisterFindCallback(), RegisterMoveCallback(), RegisterMoveCallback2(), and RegisterWorklistCallback()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
208
diff
changeset
|
2042 { "RegisterFindCallback", RegisterFindCallback, METH_VARARGS, |
d7acfccc0d0b
documented RegisterFindCallback(), RegisterMoveCallback(), RegisterMoveCallback2(), and RegisterWorklistCallback()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
208
diff
changeset
|
2043 "Implemented in C++ function RegisterFindCallback()" }, |
213
f8dc8dd2da76
documented orthanc.RegisterIncomingCStoreInstanceFilter() and orthanc.RegisterReceivedInstanceCallback()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
212
diff
changeset
|
2044 { "RegisterIncomingCStoreInstanceFilter", RegisterIncomingCStoreInstanceFilter, METH_VARARGS, |
f8dc8dd2da76
documented orthanc.RegisterIncomingCStoreInstanceFilter() and orthanc.RegisterReceivedInstanceCallback()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
212
diff
changeset
|
2045 "Implemented in C++ function RegisterIncomingCStoreInstanceFilter()" }, |
203
28531e615104
documented orthanc.RegisterIncomingHttpRequestFilter() and orthanc.RegisterOnStoredInstanceCallback()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
197
diff
changeset
|
2046 { "RegisterIncomingHttpRequestFilter", RegisterIncomingHttpRequestFilter, METH_VARARGS, |
28531e615104
documented orthanc.RegisterIncomingHttpRequestFilter() and orthanc.RegisterOnStoredInstanceCallback()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
197
diff
changeset
|
2047 "Implemented in C++ function RegisterIncomingHttpRequestFilter()" }, |
211
d7acfccc0d0b
documented RegisterFindCallback(), RegisterMoveCallback(), RegisterMoveCallback2(), and RegisterWorklistCallback()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
208
diff
changeset
|
2048 { "RegisterMoveCallback", RegisterMoveCallback, METH_VARARGS, |
d7acfccc0d0b
documented RegisterFindCallback(), RegisterMoveCallback(), RegisterMoveCallback2(), and RegisterWorklistCallback()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
208
diff
changeset
|
2049 "Implemented in C++ function RegisterMoveCallback()" }, |
d7acfccc0d0b
documented RegisterFindCallback(), RegisterMoveCallback(), RegisterMoveCallback2(), and RegisterWorklistCallback()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
208
diff
changeset
|
2050 { "RegisterMoveCallback2", RegisterMoveCallback2, METH_VARARGS, |
d7acfccc0d0b
documented RegisterFindCallback(), RegisterMoveCallback(), RegisterMoveCallback2(), and RegisterWorklistCallback()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
208
diff
changeset
|
2051 "Implemented in C++ function RegisterMoveCallback2()" }, |
195
d7a6e75558ee
documented orthanc.RegisterOnChangeCallback()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
192
diff
changeset
|
2052 { "RegisterOnChangeCallback", RegisterOnChangeCallback, METH_VARARGS, |
d7a6e75558ee
documented orthanc.RegisterOnChangeCallback()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
192
diff
changeset
|
2053 "Implemented in C++ function RegisterOnChangeCallback()" }, |
203
28531e615104
documented orthanc.RegisterIncomingHttpRequestFilter() and orthanc.RegisterOnStoredInstanceCallback()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
197
diff
changeset
|
2054 { "RegisterOnStoredInstanceCallback", RegisterOnStoredInstanceCallback, METH_VARARGS, |
28531e615104
documented orthanc.RegisterIncomingHttpRequestFilter() and orthanc.RegisterOnStoredInstanceCallback()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
197
diff
changeset
|
2055 "Implemented in C++ function RegisterOnStoredInstanceCallback()" }, |
213
f8dc8dd2da76
documented orthanc.RegisterIncomingCStoreInstanceFilter() and orthanc.RegisterReceivedInstanceCallback()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
212
diff
changeset
|
2056 { "RegisterReceivedInstanceCallback", RegisterReceivedInstanceCallback, METH_VARARGS, |
f8dc8dd2da76
documented orthanc.RegisterIncomingCStoreInstanceFilter() and orthanc.RegisterReceivedInstanceCallback()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
212
diff
changeset
|
2057 "Implemented in C++ function RegisterReceivedInstanceCallback()" }, |
192
b0f096d2339e
documentation of orthanc.RegisterRestCallback()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
191
diff
changeset
|
2058 { "RegisterRestCallback", RegisterRestCallback, METH_VARARGS, |
b0f096d2339e
documentation of orthanc.RegisterRestCallback()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
191
diff
changeset
|
2059 "Implemented in C++ function RegisterRestCallback()" }, |
212
2db6c1f6417f
documented orthanc.RegisterStorageArea()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
211
diff
changeset
|
2060 { "RegisterStorageArea", RegisterStorageArea, METH_VARARGS, |
2db6c1f6417f
documented orthanc.RegisterStorageArea()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
211
diff
changeset
|
2061 "Implemented in C++ function RegisterStorageArea()" }, |
214
d74ed3e6423e
documented orthanc.RegisterStorageCommitmentScpCallback()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
213
diff
changeset
|
2062 { "RegisterStorageCommitmentScpCallback", RegisterStorageCommitmentScpCallback, METH_VARARGS, |
d74ed3e6423e
documented orthanc.RegisterStorageCommitmentScpCallback()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
213
diff
changeset
|
2063 "Implemented in C++ function RegisterStorageCommitmentScpCallback()" }, |
211
d7acfccc0d0b
documented RegisterFindCallback(), RegisterMoveCallback(), RegisterMoveCallback2(), and RegisterWorklistCallback()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
208
diff
changeset
|
2064 { "RegisterWorklistCallback", RegisterWorklistCallback, METH_VARARGS, |
d7acfccc0d0b
documented RegisterFindCallback(), RegisterMoveCallback(), RegisterMoveCallback2(), and RegisterWorklistCallback()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
208
diff
changeset
|
2065 "Implemented in C++ function RegisterWorklistCallback()" }, |
1
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
2066 { NULL, NULL } |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
2067 }; |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
2068 |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
2069 |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
2070 PyMethodDef* GetOrthancSdkFunctions() |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
2071 { |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
2072 return ORTHANC_SDK_FUNCTIONS; |
fef9a239df5c
adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
2073 } |