annotate Sources/Autogenerated/sdk_GlobalFunctions.impl.h @ 178:194ba7d6e0f4 java-code-model

integration mainline->java-code-model
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 27 Jun 2024 18:51:36 +0200
parents e9be3c9294d4 008be55355a4
children f34f3a149c22
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1 /**
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
2 * Python plugin for Orthanc
166
6fada29b6759 updated copyright, as Orthanc Team now replaces Osimis
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 155
diff changeset
3 * 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
4 * Copyright (C) 2024-2024 Orthanc Team SRL, Belgium
155
71d305c29cfa updated year to 2024
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 149
diff changeset
5 * Copyright (C) 2021-2024 Sebastien Jodogne, ICTEAM UCLouvain, Belgium
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 * 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
8 * 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
9 * 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
10 * the License, or (at your option) any later version.
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 distributed in the hope that it will be useful, but
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
15 * Affero General Public License for more details.
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 * 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
18 * 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
19 **/
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
20
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
21
170
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
22 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
23 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
24 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
25
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
26 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
27
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
28 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
29 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
30 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
31 return NULL;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
32 }
174
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
33
170
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
34 const char* s = OrthancPluginAutodetectMimeType(OrthancPlugins::GetGlobalContext(), arg0);
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
35
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
36 if (s == NULL)
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
37 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
38 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
39 return Py_None;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
40 }
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
41 else
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
42 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
43 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
44 }
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
45 }
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
46
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
47 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
48 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
49 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
50
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
51 Py_buffer arg0;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
52 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
53 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
54
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
55 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
56 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
57 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
58 return NULL;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
59 }
174
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
60
170
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
61 OrthancPlugins::MemoryBuffer buffer;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
62 OrthancPluginErrorCode code = OrthancPluginBufferCompression(OrthancPlugins::GetGlobalContext(), *buffer, arg0.buf, arg0.len, static_cast<OrthancPluginCompressionType>(arg2), arg3);
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
63 PyBuffer_Release(&arg0);
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
64 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
65 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
66 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
67 }
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
68 else
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
69 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
70 PythonLock::RaiseException(code);
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
71 return NULL;
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 }
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 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
76 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
77 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
78
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
79
174
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
80
170
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
81 long value = OrthancPluginCheckVersion(OrthancPlugins::GetGlobalContext());
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
82
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
83 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
84 }
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
85
1
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
86 static PyObject* sdk_OrthancPluginCheckVersionAdvanced(PyObject* module, PyObject* args)
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
87 {
28
b2bbb516056e The "Calling Python..." info logs are disabled if "PythonVerbose" is "false"
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1
diff changeset
88 PythonLock::LogCall("Calling Python global function: OrthancPluginCheckVersionAdvanced()");
1
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
89
177
008be55355a4 regenerating the wrapper after patching SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
90 long int arg0 = 0;
008be55355a4 regenerating the wrapper after patching SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
91 long int arg1 = 0;
008be55355a4 regenerating the wrapper after patching SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
92 long int arg2 = 0;
1
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
93
177
008be55355a4 regenerating the wrapper after patching SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
94 if (!PyArg_ParseTuple(args, "lll", &arg0, &arg1, &arg2))
1
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
95 {
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
96 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
97 return NULL;
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
98 }
174
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
99
1
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
100 long value = OrthancPluginCheckVersionAdvanced(OrthancPlugins::GetGlobalContext(), arg0, arg1, arg2);
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
101
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
102 return PyLong_FromLong(value);
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
103 }
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
104
170
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
105 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
106 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
107 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
108
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
109 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
110 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
111 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
112 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
113 Py_buffer arg4;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
114 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
115
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
116 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
117 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
118 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
119 return NULL;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
120 }
174
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
121
170
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
122 OrthancPlugins::MemoryBuffer buffer;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
123 OrthancPluginErrorCode code = OrthancPluginCompressJpegImage(OrthancPlugins::GetGlobalContext(), *buffer, static_cast<OrthancPluginPixelFormat>(arg0), arg1, arg2, arg3, arg4.buf, arg5);
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
124 PyBuffer_Release(&arg4);
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
125 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
126 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
127 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
128 }
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
129 else
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
130 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
131 PythonLock::RaiseException(code);
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
132 return NULL;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
133 }
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
134 }
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
135
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
136 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
137 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
138 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
139
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
140 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
141 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
142 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
143 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
144 Py_buffer arg4;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
145
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
146 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
147 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
148 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
149 return NULL;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
150 }
174
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
151
170
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
152 OrthancPlugins::MemoryBuffer buffer;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
153 OrthancPluginErrorCode code = OrthancPluginCompressPngImage(OrthancPlugins::GetGlobalContext(), *buffer, static_cast<OrthancPluginPixelFormat>(arg0), arg1, arg2, arg3, arg4.buf);
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
154 PyBuffer_Release(&arg4);
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
155 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
156 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
157 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
158 }
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
159 else
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
160 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
161 PythonLock::RaiseException(code);
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
162 return NULL;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
163 }
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
164 }
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
165
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
166 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
167 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
168 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
169
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
170 Py_buffer arg0;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
171
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
172 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
173 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
174 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
175 return NULL;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
176 }
174
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
177
170
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
178 OrthancPlugins::OrthancString s;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
179 s.Assign(OrthancPluginComputeMd5(OrthancPlugins::GetGlobalContext(), arg0.buf, arg0.len));
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
180 PyBuffer_Release(&arg0);
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
181 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
182 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
183 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
184 return NULL;
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 else
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
187 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
188 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
189 }
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
190 }
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 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
193 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
194 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
195
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
196 Py_buffer arg0;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
197
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
198 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
199 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
200 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
201 return NULL;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
202 }
174
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
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 OrthancPlugins::OrthancString s;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
205 s.Assign(OrthancPluginComputeSha1(OrthancPlugins::GetGlobalContext(), arg0.buf, arg0.len));
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
206 PyBuffer_Release(&arg0);
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
207 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
208 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
209 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
210 return NULL;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
211 }
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
212 else
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 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
215 }
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
216 }
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
217
174
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
218 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
219 {
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
220 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
221
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
222 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
223 PyObject* arg1 = NULL;
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
224 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
225
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
226 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
227 {
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
228 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
229 return NULL;
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
230 }
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
231
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
232 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
233 {
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
234 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
235 return NULL;
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
236 }
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
237
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
238 OrthancPlugins::MemoryBuffer buffer;
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
239 OrthancPluginErrorCode code = OrthancPluginCreateDicom(OrthancPlugins::GetGlobalContext(), *buffer, arg0, arg1 == Py_None ? NULL : reinterpret_cast<sdk_OrthancPluginImage_Object*>(arg1)->object_, static_cast<OrthancPluginCreateDicomFlags>(arg2));
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
240
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
241 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
242 {
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
243 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
244 }
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
245 else
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
246 {
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
247 PythonLock::RaiseException(code);
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
248 return NULL;
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
249 }
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
250 }
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
251
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
252 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
253 {
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
254 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
255
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
256 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
257 PyObject* arg1 = NULL;
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
258 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
259 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
260
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
261 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
262 {
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
263 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
264 return NULL;
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
265 }
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
266
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
267 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
268 {
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
269 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
270 return NULL;
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
271 }
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
272
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
273 OrthancPlugins::MemoryBuffer buffer;
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
274 OrthancPluginErrorCode code = OrthancPluginCreateDicom2(OrthancPlugins::GetGlobalContext(), *buffer, arg0, arg1 == Py_None ? NULL : reinterpret_cast<sdk_OrthancPluginImage_Object*>(arg1)->object_, static_cast<OrthancPluginCreateDicomFlags>(arg2), arg3);
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 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
277 {
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
278 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
279 }
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
280 else
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 PythonLock::RaiseException(code);
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
283 return NULL;
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
284 }
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
285 }
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
286
170
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
287 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
288 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
289 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
290
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
291 Py_buffer arg0;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
292
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
293 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
294 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
295 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
296 return NULL;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
297 }
174
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
298
170
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
299 // This is the case of a constructor
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
300 OrthancPluginDicomInstance* obj = OrthancPluginCreateDicomInstance(OrthancPlugins::GetGlobalContext(), arg0.buf, arg0.len);
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
301 PyBuffer_Release(&arg0);
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
302 if (obj == NULL)
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
303 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
304 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
305 return NULL;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
306 }
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
307 else
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
308 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
309 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
310 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
311 Py_DECREF(argList);
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
312 return python;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
313 }
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
314 }
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
315
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
316 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
317 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
318 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
319
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
320 Py_buffer arg0;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
321
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
322 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
323 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
324 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
325 return NULL;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
326 }
174
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
327
170
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
328 // This is the case of a constructor
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
329 OrthancPluginFindMatcher* obj = OrthancPluginCreateFindMatcher(OrthancPlugins::GetGlobalContext(), arg0.buf, arg0.len);
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
330 PyBuffer_Release(&arg0);
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
331 if (obj == NULL)
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
332 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
333 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
334 return NULL;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
335 }
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
336 else
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
337 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
338 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
339 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
340 Py_DECREF(argList);
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
341 return python;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
342 }
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
343 }
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
344
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
345 static PyObject* sdk_OrthancPluginCreateImage(PyObject* module, PyObject* args)
1
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
346 {
170
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
347 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
348
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
349 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
350 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
351 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
352
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
353 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
354 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
355 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
356 return NULL;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
357 }
174
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
358
170
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
359 // This is the case of a constructor
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
360 OrthancPluginImage* obj = OrthancPluginCreateImage(OrthancPlugins::GetGlobalContext(), static_cast<OrthancPluginPixelFormat>(arg0), arg1, arg2);
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
361
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
362 if (obj == NULL)
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
363 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
364 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
365 return NULL;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
366 }
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
367 else
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
368 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
369 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
370 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
371 Py_DECREF(argList);
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
372 return python;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
373 }
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
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
376 static PyObject* sdk_OrthancPluginCreateMemoryBuffer(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
377 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
378 PythonLock::LogCall("Calling Python global function: OrthancPluginCreateMemoryBuffer()");
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
379
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
380 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
381
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
382 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
383 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
384 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
385 return NULL;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
386 }
174
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
387
170
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
388 OrthancPlugins::MemoryBuffer buffer;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
389 OrthancPluginErrorCode code = OrthancPluginCreateMemoryBuffer(OrthancPlugins::GetGlobalContext(), *buffer, arg0);
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
390
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
391 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
392 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
393 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
394 }
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
395 else
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
396 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
397 PythonLock::RaiseException(code);
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
398 return NULL;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
399 }
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
400 }
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
401
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
402 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
403 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
404 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
405
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
406 Py_buffer arg0;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
407 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
408
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
409 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
410 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
411 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
412 return NULL;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
413 }
174
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
414
170
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
415 // This is the case of a constructor
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
416 OrthancPluginImage* obj = OrthancPluginDecodeDicomImage(OrthancPlugins::GetGlobalContext(), arg0.buf, arg0.len, arg2);
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
417 PyBuffer_Release(&arg0);
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
418 if (obj == NULL)
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
419 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
420 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
421 return NULL;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
422 }
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
423 else
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 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
426 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
427 Py_DECREF(argList);
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
428 return python;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
429 }
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
430 }
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
431
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
432 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
433 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
434 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
435
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
436 Py_buffer arg0;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
437 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
438 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
439 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
440
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
441 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
442 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
443 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
444 return NULL;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
445 }
174
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
446
170
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
447 OrthancPlugins::OrthancString s;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
448 s.Assign(OrthancPluginDicomBufferToJson(OrthancPlugins::GetGlobalContext(), arg0.buf, arg0.len, static_cast<OrthancPluginDicomToJsonFormat>(arg2), static_cast<OrthancPluginDicomToJsonFlags>(arg3), arg4));
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
449 PyBuffer_Release(&arg0);
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
450 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
451 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
452 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
453 return NULL;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
454 }
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
455 else
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
456 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
457 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
458 }
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
459 }
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 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
462 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
463 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
464
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
465 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
466 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
467 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
468 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
469
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
470 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
471 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
472 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
473 return NULL;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
474 }
174
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
475
170
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
476 OrthancPlugins::OrthancString s;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
477 s.Assign(OrthancPluginDicomInstanceToJson(OrthancPlugins::GetGlobalContext(), arg0, static_cast<OrthancPluginDicomToJsonFormat>(arg1), static_cast<OrthancPluginDicomToJsonFlags>(arg2), arg3));
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 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
480 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
481 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
482 return NULL;
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 else
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 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
487 }
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
488 }
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 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
491 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
492 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
493
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
494 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
495
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
496 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
497 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
498 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
499 return NULL;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
500 }
174
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
501
170
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
502 OrthancPluginExtendOrthancExplorer(OrthancPlugins::GetGlobalContext(), arg0);
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
503
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
504
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
505 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
506 return Py_None;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
507 }
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 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
510 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
511 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
512
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
513
174
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
514
170
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
515 OrthancPlugins::OrthancString s;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
516 s.Assign(OrthancPluginGenerateRestApiAuthorizationToken(OrthancPlugins::GetGlobalContext()));
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 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
519 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
520 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
521 return NULL;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
522 }
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
523 else
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
524 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
525 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
526 }
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
527 }
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 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
530 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
531 PythonLock::LogCall("Calling Python global function: OrthancPluginGenerateUuid()");
1
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
532
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
533
174
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
534
170
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
535 OrthancPlugins::OrthancString s;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
536 s.Assign(OrthancPluginGenerateUuid(OrthancPlugins::GetGlobalContext()));
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
537
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
538 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
539 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
540 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
541 return NULL;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
542 }
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
543 else
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
544 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
545 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
546 }
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 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
550 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
551 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
552
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
553 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
554
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
555 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
556 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
557 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
558 return NULL;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
559 }
174
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
560
170
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
561 OrthancPlugins::OrthancString s;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
562 s.Assign(OrthancPluginGetCommandLineArgument(OrthancPlugins::GetGlobalContext(), arg0));
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
563
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
564 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
565 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
566 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
567 return NULL;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
568 }
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
569 else
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 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
572 }
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
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
575 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
576 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
577 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
578
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
579
174
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
580
170
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
581 long value = OrthancPluginGetCommandLineArgumentsCount(OrthancPlugins::GetGlobalContext());
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
582
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
583 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
584 }
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 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
587 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
588 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
589
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
590
174
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
591
170
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
592 OrthancPlugins::OrthancString s;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
593 s.Assign(OrthancPluginGetConfiguration(OrthancPlugins::GetGlobalContext()));
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 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
596 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
597 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
598 return NULL;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
599 }
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
600 else
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
601 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
602 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
603 }
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
604 }
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
605
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
606 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
607 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
608 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
609
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
610
174
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
611
170
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
612 OrthancPlugins::OrthancString s;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
613 s.Assign(OrthancPluginGetConfigurationPath(OrthancPlugins::GetGlobalContext()));
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
614
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
615 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
616 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
617 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
618 return NULL;
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 else
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 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
623 }
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
624 }
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 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
627 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
628 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
629
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
630 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
631
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
632 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
633 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
634 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
635 return NULL;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
636 }
174
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
637
170
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
638 OrthancPlugins::MemoryBuffer buffer;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
639 OrthancPluginErrorCode code = OrthancPluginGetDicomForInstance(OrthancPlugins::GetGlobalContext(), *buffer, arg0);
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 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
642 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
643 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
644 }
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
645 else
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 PythonLock::RaiseException(code);
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
648 return NULL;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
649 }
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
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
652 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
653 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
654 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
655
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
656 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
657
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
658 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
659 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
660 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
661 return NULL;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
662 }
174
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
663
170
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
664 const char* s = OrthancPluginGetErrorDescription(OrthancPlugins::GetGlobalContext(), static_cast<OrthancPluginErrorCode>(arg0));
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 if (s == NULL)
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
667 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
668 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
669 return Py_None;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
670 }
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
671 else
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
672 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
673 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
674 }
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
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
677 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
678 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
679 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
680
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
681
174
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
682
170
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
683 long value = OrthancPluginGetExpectedDatabaseVersion(OrthancPlugins::GetGlobalContext());
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 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
686 }
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
687
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
688 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
689 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
690 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
691
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
692 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
693
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
694 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
695 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
696 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
697 return NULL;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
698 }
174
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
699
170
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
700 const char* s = OrthancPluginGetFontName(OrthancPlugins::GetGlobalContext(), arg0);
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 if (s == NULL)
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 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
705 return Py_None;
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 else
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
708 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
709 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
710 }
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
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
713 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
714 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
715 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
716
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
717 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
718
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
719 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
720 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
721 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
722 return NULL;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
723 }
174
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
724
170
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
725 long value = OrthancPluginGetFontSize(OrthancPlugins::GetGlobalContext(), arg0);
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 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
728 }
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
729
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
730 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
731 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
732 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
733
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
734
174
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
735
170
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
736 long value = OrthancPluginGetFontsCount(OrthancPlugins::GetGlobalContext());
1
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
737
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
738 return PyLong_FromLong(value);
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
739 }
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
740
170
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
741 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
742 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
743 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
744
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
745 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
746 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
747
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
748 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
749 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
750 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
751 return NULL;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
752 }
174
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
753
170
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
754 OrthancPlugins::OrthancString s;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
755 s.Assign(OrthancPluginGetGlobalProperty(OrthancPlugins::GetGlobalContext(), arg0, arg1));
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
756
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
757 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
758 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
759 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
760 return NULL;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
761 }
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
762 else
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
763 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
764 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
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
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
768 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
769 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
770 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
771
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
772
174
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
773
170
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
774 OrthancPlugins::OrthancString s;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
775 s.Assign(OrthancPluginGetOrthancDirectory(OrthancPlugins::GetGlobalContext()));
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
776
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
777 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
778 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
779 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
780 return NULL;
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 else
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 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
785 }
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
786 }
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 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
789 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
790 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
791
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
170
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
794 OrthancPlugins::OrthancString s;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
795 s.Assign(OrthancPluginGetOrthancPath(OrthancPlugins::GetGlobalContext()));
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
796
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
797 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
798 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
799 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
800 return 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 else
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
803 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
804 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
805 }
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
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
808 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
809 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
810 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
811
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
812
174
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
813
170
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
814 // This is the case of a constructor
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
815 OrthancPluginPeers* obj = OrthancPluginGetPeers(OrthancPlugins::GetGlobalContext());
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 (obj == NULL)
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 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
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 }
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
822 else
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
823 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
824 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
825 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
826 Py_DECREF(argList);
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
827 return python;
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 }
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 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
832 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
833 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
834
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
835 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
836 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
837 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
838
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
839 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
840 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
841 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
842 return NULL;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
843 }
174
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
844
170
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
845 OrthancPlugins::OrthancString s;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
846 s.Assign(OrthancPluginGetTagName(OrthancPlugins::GetGlobalContext(), arg0, arg1, arg2));
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
847
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
848 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
849 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
850 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
851 return NULL;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
852 }
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
853 else
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
854 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
855 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
856 }
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
857 }
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
858
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
859 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
860 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
861 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
862
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
863 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
864 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
865 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
866
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
867 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
868 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
869 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
870 return NULL;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
871 }
174
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
872
170
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
873 OrthancPluginErrorCode code = OrthancPluginHttpDelete(OrthancPlugins::GetGlobalContext(), arg0, arg1, arg2);
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 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
877 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
878 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
879 return Py_None;
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 else
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
882 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
883 PythonLock::RaiseException(code);
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
884 return NULL;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
885 }
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
886 }
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
887
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
888 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
889 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
890 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
891
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
892 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
893 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
894 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
895
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
896 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
897 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
898 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
899 return NULL;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
900 }
174
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
901
170
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
902 OrthancPlugins::MemoryBuffer buffer;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
903 OrthancPluginErrorCode code = OrthancPluginHttpGet(OrthancPlugins::GetGlobalContext(), *buffer, arg0, arg1, arg2);
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
904
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
905 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
906 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
907 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
908 }
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
909 else
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
910 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
911 PythonLock::RaiseException(code);
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
912 return 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 }
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
915
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
916 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
917 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
918 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
919
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
920 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
921 Py_buffer arg1;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
922 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
923 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
924
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
925 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
926 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
927 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
928 return NULL;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
929 }
174
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
930
170
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
931 OrthancPlugins::MemoryBuffer buffer;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
932 OrthancPluginErrorCode code = OrthancPluginHttpPost(OrthancPlugins::GetGlobalContext(), *buffer, arg0, arg1.buf, arg1.len, arg3, arg4);
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
933 PyBuffer_Release(&arg1);
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
934 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
935 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
936 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
937 }
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
938 else
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
939 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
940 PythonLock::RaiseException(code);
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
941 return NULL;
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 }
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
944
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
945 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
946 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
947 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
948
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
949 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
950 Py_buffer arg1;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
951 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
952 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
953
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
954 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
955 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
956 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
957 return NULL;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
958 }
174
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
959
170
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
960 OrthancPlugins::MemoryBuffer buffer;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
961 OrthancPluginErrorCode code = OrthancPluginHttpPut(OrthancPlugins::GetGlobalContext(), *buffer, arg0, arg1.buf, arg1.len, arg3, arg4);
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
962 PyBuffer_Release(&arg1);
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
963 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
964 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
965 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
966 }
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
967 else
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
968 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
969 PythonLock::RaiseException(code);
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
970 return 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 }
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
973
1
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
974 static PyObject* sdk_OrthancPluginLogError(PyObject* module, PyObject* args)
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
975 {
28
b2bbb516056e The "Calling Python..." info logs are disabled if "PythonVerbose" is "false"
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1
diff changeset
976 PythonLock::LogCall("Calling Python global function: OrthancPluginLogError()");
1
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
977
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
978 const char* arg0 = NULL;
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
979
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
980 if (!PyArg_ParseTuple(args, "s", &arg0))
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
981 {
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
982 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
983 return NULL;
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
984 }
174
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
985
1
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
986 OrthancPluginLogError(OrthancPlugins::GetGlobalContext(), arg0);
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
987
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
988
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
989 Py_INCREF(Py_None);
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
990 return Py_None;
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
991 }
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
992
170
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
993 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
994 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
995 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
996
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
997 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
998
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
999 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
1000 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1001 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
1002 return NULL;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1003 }
174
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
1004
170
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1005 OrthancPluginLogInfo(OrthancPlugins::GetGlobalContext(), arg0);
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
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1008 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
1009 return Py_None;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1010 }
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1011
1
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1012 static PyObject* sdk_OrthancPluginLogWarning(PyObject* module, PyObject* args)
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1013 {
28
b2bbb516056e The "Calling Python..." info logs are disabled if "PythonVerbose" is "false"
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1
diff changeset
1014 PythonLock::LogCall("Calling Python global function: OrthancPluginLogWarning()");
1
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1015
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1016 const char* arg0 = NULL;
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1017
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1018 if (!PyArg_ParseTuple(args, "s", &arg0))
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1019 {
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1020 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
1021 return NULL;
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1022 }
174
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
1023
1
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1024 OrthancPluginLogWarning(OrthancPlugins::GetGlobalContext(), arg0);
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1025
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1026
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1027 Py_INCREF(Py_None);
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1028 return Py_None;
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1029 }
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1030
170
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1031 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
1032 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1033 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
1034
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1035 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
1036
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1037 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
1038 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1039 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
1040 return NULL;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1041 }
174
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
1042
170
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1043 OrthancPlugins::OrthancString s;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1044 s.Assign(OrthancPluginLookupInstance(OrthancPlugins::GetGlobalContext(), arg0));
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 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
1047 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1048 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
1049 return NULL;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1050 }
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1051 else
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1052 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1053 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
1054 }
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1055 }
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 static PyObject* sdk_OrthancPluginLookupPatient(PyObject* module, PyObject* args)
1
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1058 {
170
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1059 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
1060
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1061 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
1062
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1063 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
1064 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1065 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
1066 return NULL;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1067 }
174
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
1068
170
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1069 OrthancPlugins::OrthancString s;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1070 s.Assign(OrthancPluginLookupPatient(OrthancPlugins::GetGlobalContext(), arg0));
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 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
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(OrthancPluginErrorCode_InternalError);
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 else
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 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
1080 }
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1081 }
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 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
1084 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1085 PythonLock::LogCall("Calling Python global function: OrthancPluginLookupSeries()");
1
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1086
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1087 const char* arg0 = NULL;
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1088
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1089 if (!PyArg_ParseTuple(args, "s", &arg0))
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1090 {
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1091 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
1092 return NULL;
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1093 }
174
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
1094
170
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1095 OrthancPlugins::OrthancString s;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1096 s.Assign(OrthancPluginLookupSeries(OrthancPlugins::GetGlobalContext(), arg0));
1
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1097
170
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1098 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
1099 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1100 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
1101 return NULL;
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 else
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 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
1106 }
1
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1107 }
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1108
170
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1109 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
1110 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1111 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
1112
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1113 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
1114
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1115 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
1116 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1117 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
1118 return NULL;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1119 }
174
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
1120
170
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1121 OrthancPlugins::OrthancString s;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1122 s.Assign(OrthancPluginLookupStudy(OrthancPlugins::GetGlobalContext(), arg0));
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1123
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1124 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
1125 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1126 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
1127 return NULL;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1128 }
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1129 else
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1130 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1131 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
1132 }
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1133 }
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1134
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1135 static PyObject* sdk_OrthancPluginLookupStudyWithAccessionNumber(PyObject* module, PyObject* args)
1
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1136 {
170
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1137 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
1138
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1139 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
1140
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1141 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
1142 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1143 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
1144 return NULL;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1145 }
174
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
1146
170
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1147 OrthancPlugins::OrthancString s;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1148 s.Assign(OrthancPluginLookupStudyWithAccessionNumber(OrthancPlugins::GetGlobalContext(), arg0));
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1149
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1150 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
1151 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1152 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
1153 return NULL;
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 else
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1156 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1157 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
1158 }
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1159 }
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1160
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1161 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
1162 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1163 PythonLock::LogCall("Calling Python global function: OrthancPluginReadFile()");
1
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1164
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1165 const char* arg0 = NULL;
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1166
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1167 if (!PyArg_ParseTuple(args, "s", &arg0))
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1168 {
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1169 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
1170 return NULL;
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1171 }
174
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
1172
1
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1173 OrthancPlugins::MemoryBuffer buffer;
170
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1174 OrthancPluginErrorCode code = OrthancPluginReadFile(OrthancPlugins::GetGlobalContext(), *buffer, arg0);
1
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1175
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1176 if (code == OrthancPluginErrorCode_Success)
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1177 {
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1178 return PyBytes_FromStringAndSize(buffer.GetData(), buffer.GetSize());
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1179 }
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1180 else
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1181 {
77
e7ff5efb100d Custom exception "orthanc.OrthancException" is raised instead of "ValueError"
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 75
diff changeset
1182 PythonLock::RaiseException(code);
1
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1183 return NULL;
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1184 }
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1185 }
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1186
170
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1187 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
1188 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1189 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
1190
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1191 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
1192 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
1193 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
1194 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
1195 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
1196 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
1197
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1198 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
1199 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1200 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
1201 return NULL;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1202 }
174
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
1203
170
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1204 OrthancPluginErrorCode code = OrthancPluginRegisterDictionaryTag(OrthancPlugins::GetGlobalContext(), arg0, arg1, static_cast<OrthancPluginValueRepresentation>(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
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 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
1208 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1209 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
1210 return Py_None;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1211 }
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1212 else
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1213 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1214 PythonLock::RaiseException(code);
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1215 return NULL;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1216 }
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1217 }
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1218
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1219 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
1220 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1221 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
1222
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1223 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
1224 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
1225 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
1226
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1227 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
1228 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1229 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
1230 return NULL;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1231 }
174
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
1232
170
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1233 OrthancPluginErrorCode code = OrthancPluginRegisterErrorCode(OrthancPlugins::GetGlobalContext(), arg0, arg1, arg2);
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 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
1237 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1238 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
1239 return Py_None;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1240 }
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1241 else
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1242 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1243 PythonLock::RaiseException(code);
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1244 return NULL;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1245 }
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1246 }
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1247
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1248 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
1249 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1250 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
1251
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1252 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
1253 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
1254 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
1255 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
1256 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
1257 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
1258 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
1259
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1260 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
1261 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1262 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
1263 return NULL;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1264 }
174
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
1265
170
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1266 OrthancPluginErrorCode code = OrthancPluginRegisterPrivateDictionaryTag(OrthancPlugins::GetGlobalContext(), arg0, arg1, static_cast<OrthancPluginValueRepresentation>(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
1267
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 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
1270 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1271 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
1272 return Py_None;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1273 }
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1274 else
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1275 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1276 PythonLock::RaiseException(code);
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1277 return NULL;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1278 }
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1279 }
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1280
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1281 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
1282 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1283 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
1284
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1285 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
1286
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1287 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
1288 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1289 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
1290 return NULL;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1291 }
174
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
1292
170
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1293 OrthancPluginErrorCode code = OrthancPluginRestApiDelete(OrthancPlugins::GetGlobalContext(), arg0);
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1294
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1295
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1296 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
1297 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1298 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
1299 return Py_None;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1300 }
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1301 else
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1302 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1303 PythonLock::RaiseException(code);
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1304 return NULL;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1305 }
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1306 }
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1307
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1308 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
1309 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1310 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
1311
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1312 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
1313
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1314 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
1315 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1316 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
1317 return NULL;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1318 }
174
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
1319
170
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1320 OrthancPluginErrorCode code = OrthancPluginRestApiDeleteAfterPlugins(OrthancPlugins::GetGlobalContext(), arg0);
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 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
1324 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1325 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
1326 return Py_None;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1327 }
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1328 else
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1329 {
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1330 PythonLock::RaiseException(code);
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1331 return NULL;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1332 }
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1333 }
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1334
1
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1335 static PyObject* sdk_OrthancPluginRestApiGet(PyObject* module, PyObject* args)
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1336 {
28
b2bbb516056e The "Calling Python..." info logs are disabled if "PythonVerbose" is "false"
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1
diff changeset
1337 PythonLock::LogCall("Calling Python global function: OrthancPluginRestApiGet()");
1
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1338
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1339 const char* arg0 = NULL;
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1340
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1341 if (!PyArg_ParseTuple(args, "s", &arg0))
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1342 {
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1343 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
1344 return NULL;
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1345 }
174
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
1346
1
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1347 OrthancPlugins::MemoryBuffer buffer;
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1348 OrthancPluginErrorCode code = OrthancPluginRestApiGet(OrthancPlugins::GetGlobalContext(), *buffer, arg0);
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1349
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1350 if (code == OrthancPluginErrorCode_Success)
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 return PyBytes_FromStringAndSize(buffer.GetData(), buffer.GetSize());
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1353 }
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1354 else
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1355 {
77
e7ff5efb100d Custom exception "orthanc.OrthancException" is raised instead of "ValueError"
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 75
diff changeset
1356 PythonLock::RaiseException(code);
1
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1357 return NULL;
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1358 }
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1359 }
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1360
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1361 static PyObject* sdk_OrthancPluginRestApiGetAfterPlugins(PyObject* module, PyObject* args)
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1362 {
28
b2bbb516056e The "Calling Python..." info logs are disabled if "PythonVerbose" is "false"
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1
diff changeset
1363 PythonLock::LogCall("Calling Python global function: OrthancPluginRestApiGetAfterPlugins()");
1
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1364
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1365 const char* arg0 = NULL;
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1366
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1367 if (!PyArg_ParseTuple(args, "s", &arg0))
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1368 {
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1369 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
1370 return NULL;
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1371 }
174
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
1372
1
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1373 OrthancPlugins::MemoryBuffer buffer;
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1374 OrthancPluginErrorCode code = OrthancPluginRestApiGetAfterPlugins(OrthancPlugins::GetGlobalContext(), *buffer, arg0);
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1375
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1376 if (code == OrthancPluginErrorCode_Success)
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1377 {
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1378 return PyBytes_FromStringAndSize(buffer.GetData(), buffer.GetSize());
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1379 }
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1380 else
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1381 {
77
e7ff5efb100d Custom exception "orthanc.OrthancException" is raised instead of "ValueError"
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 75
diff changeset
1382 PythonLock::RaiseException(code);
1
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1383 return NULL;
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1384 }
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1385 }
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1386
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1387 static PyObject* sdk_OrthancPluginRestApiPost(PyObject* module, PyObject* args)
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1388 {
28
b2bbb516056e The "Calling Python..." info logs are disabled if "PythonVerbose" is "false"
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1
diff changeset
1389 PythonLock::LogCall("Calling Python global function: OrthancPluginRestApiPost()");
1
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1390
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1391 const char* arg0 = NULL;
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1392 Py_buffer arg1;
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1393
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1394 if (!PyArg_ParseTuple(args, "ss*", &arg0, &arg1))
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1395 {
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1396 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
1397 return NULL;
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1398 }
174
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
1399
1
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1400 OrthancPlugins::MemoryBuffer buffer;
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1401 OrthancPluginErrorCode code = OrthancPluginRestApiPost(OrthancPlugins::GetGlobalContext(), *buffer, arg0, arg1.buf, arg1.len);
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1402 PyBuffer_Release(&arg1);
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1403 if (code == OrthancPluginErrorCode_Success)
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1404 {
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1405 return PyBytes_FromStringAndSize(buffer.GetData(), buffer.GetSize());
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1406 }
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1407 else
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1408 {
77
e7ff5efb100d Custom exception "orthanc.OrthancException" is raised instead of "ValueError"
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 75
diff changeset
1409 PythonLock::RaiseException(code);
1
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1410 return NULL;
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1411 }
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1412 }
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1413
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1414 static PyObject* sdk_OrthancPluginRestApiPostAfterPlugins(PyObject* module, PyObject* args)
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1415 {
28
b2bbb516056e The "Calling Python..." info logs are disabled if "PythonVerbose" is "false"
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1
diff changeset
1416 PythonLock::LogCall("Calling Python global function: OrthancPluginRestApiPostAfterPlugins()");
1
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1417
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1418 const char* arg0 = NULL;
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1419 Py_buffer arg1;
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1420
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1421 if (!PyArg_ParseTuple(args, "ss*", &arg0, &arg1))
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1422 {
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1423 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
1424 return NULL;
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1425 }
174
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
1426
1
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1427 OrthancPlugins::MemoryBuffer buffer;
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1428 OrthancPluginErrorCode code = OrthancPluginRestApiPostAfterPlugins(OrthancPlugins::GetGlobalContext(), *buffer, arg0, arg1.buf, arg1.len);
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1429 PyBuffer_Release(&arg1);
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1430 if (code == OrthancPluginErrorCode_Success)
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1431 {
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1432 return PyBytes_FromStringAndSize(buffer.GetData(), buffer.GetSize());
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1433 }
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1434 else
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1435 {
77
e7ff5efb100d Custom exception "orthanc.OrthancException" is raised instead of "ValueError"
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 75
diff changeset
1436 PythonLock::RaiseException(code);
1
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1437 return NULL;
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1438 }
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1439 }
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1440
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1441 static PyObject* sdk_OrthancPluginRestApiPut(PyObject* module, PyObject* args)
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1442 {
28
b2bbb516056e The "Calling Python..." info logs are disabled if "PythonVerbose" is "false"
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1
diff changeset
1443 PythonLock::LogCall("Calling Python global function: OrthancPluginRestApiPut()");
1
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1444
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1445 const char* arg0 = NULL;
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1446 Py_buffer arg1;
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1447
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1448 if (!PyArg_ParseTuple(args, "ss*", &arg0, &arg1))
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1449 {
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1450 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
1451 return NULL;
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1452 }
174
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
1453
1
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1454 OrthancPlugins::MemoryBuffer buffer;
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1455 OrthancPluginErrorCode code = OrthancPluginRestApiPut(OrthancPlugins::GetGlobalContext(), *buffer, arg0, arg1.buf, arg1.len);
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1456 PyBuffer_Release(&arg1);
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1457 if (code == OrthancPluginErrorCode_Success)
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1458 {
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1459 return PyBytes_FromStringAndSize(buffer.GetData(), buffer.GetSize());
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1460 }
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1461 else
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1462 {
77
e7ff5efb100d Custom exception "orthanc.OrthancException" is raised instead of "ValueError"
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 75
diff changeset
1463 PythonLock::RaiseException(code);
1
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1464 return NULL;
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1465 }
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1466 }
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1467
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1468 static PyObject* sdk_OrthancPluginRestApiPutAfterPlugins(PyObject* module, PyObject* args)
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1469 {
28
b2bbb516056e The "Calling Python..." info logs are disabled if "PythonVerbose" is "false"
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1
diff changeset
1470 PythonLock::LogCall("Calling Python global function: OrthancPluginRestApiPutAfterPlugins()");
1
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1471
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1472 const char* arg0 = NULL;
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1473 Py_buffer arg1;
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1474
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1475 if (!PyArg_ParseTuple(args, "ss*", &arg0, &arg1))
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1476 {
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1477 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
1478 return NULL;
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1479 }
174
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
1480
1
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1481 OrthancPlugins::MemoryBuffer buffer;
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1482 OrthancPluginErrorCode code = OrthancPluginRestApiPutAfterPlugins(OrthancPlugins::GetGlobalContext(), *buffer, arg0, arg1.buf, arg1.len);
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1483 PyBuffer_Release(&arg1);
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1484 if (code == OrthancPluginErrorCode_Success)
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1485 {
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1486 return PyBytes_FromStringAndSize(buffer.GetData(), buffer.GetSize());
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1487 }
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1488 else
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1489 {
77
e7ff5efb100d Custom exception "orthanc.OrthancException" is raised instead of "ValueError"
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 75
diff changeset
1490 PythonLock::RaiseException(code);
1
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1491 return NULL;
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1492 }
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1493 }
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1494
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1495 static PyObject* sdk_OrthancPluginSetDescription(PyObject* module, PyObject* args)
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1496 {
28
b2bbb516056e The "Calling Python..." info logs are disabled if "PythonVerbose" is "false"
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1
diff changeset
1497 PythonLock::LogCall("Calling Python global function: OrthancPluginSetDescription()");
1
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1498
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1499 const char* arg0 = NULL;
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1500
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1501 if (!PyArg_ParseTuple(args, "s", &arg0))
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1502 {
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1503 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
1504 return NULL;
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1505 }
174
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
1506
1
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1507 OrthancPluginSetDescription(OrthancPlugins::GetGlobalContext(), arg0);
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1508
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1509
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1510 Py_INCREF(Py_None);
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1511 return Py_None;
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1512 }
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1513
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1514 static PyObject* sdk_OrthancPluginSetGlobalProperty(PyObject* module, PyObject* args)
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1515 {
28
b2bbb516056e The "Calling Python..." info logs are disabled if "PythonVerbose" is "false"
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1
diff changeset
1516 PythonLock::LogCall("Calling Python global function: OrthancPluginSetGlobalProperty()");
1
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1517
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1518 long int arg0 = 0;
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1519 const char* arg1 = NULL;
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1520
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1521 if (!PyArg_ParseTuple(args, "ls", &arg0, &arg1))
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1522 {
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1523 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
1524 return NULL;
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1525 }
174
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
1526
1
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1527 OrthancPluginErrorCode code = OrthancPluginSetGlobalProperty(OrthancPlugins::GetGlobalContext(), arg0, arg1);
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
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1530 if (code == OrthancPluginErrorCode_Success)
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1531 {
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1532 Py_INCREF(Py_None);
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1533 return Py_None;
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1534 }
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1535 else
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1536 {
75
cbfc72a53970 refactoring calls to PythonLock::RaiseException()
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 56
diff changeset
1537 PythonLock::RaiseException(code);
1
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1538 return NULL;
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 }
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1541
170
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1542 static PyObject* sdk_OrthancPluginSetMetricsValue(PyObject* module, PyObject* args)
1
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1543 {
170
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1544 PythonLock::LogCall("Calling Python global function: OrthancPluginSetMetricsValue()");
1
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1545
170
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1546 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
1547 float arg1 = 0;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1548 long int arg2 = 0;
1
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1549
170
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1550 if (!PyArg_ParseTuple(args, "sfl", &arg0, &arg1, &arg2))
1
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1551 {
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1552 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
1553 return NULL;
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1554 }
174
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
1555
170
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1556 OrthancPluginSetMetricsValue(OrthancPlugins::GetGlobalContext(), arg0, arg1, static_cast<OrthancPluginMetricsType>(arg2));
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1557
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1558
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1559 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
1560 return Py_None;
1
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1561 }
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1562
170
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1563 static PyObject* sdk_OrthancPluginSetRootUri(PyObject* module, PyObject* args)
1
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1564 {
170
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1565 PythonLock::LogCall("Calling Python global function: OrthancPluginSetRootUri()");
1
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1566
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1567 const char* arg0 = NULL;
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1568
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1569 if (!PyArg_ParseTuple(args, "s", &arg0))
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1570 {
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1571 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
1572 return NULL;
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1573 }
174
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
1574
170
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1575 OrthancPluginSetRootUri(OrthancPlugins::GetGlobalContext(), arg0);
1
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1576
170
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1577
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1578 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
1579 return Py_None;
1
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
170
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1582 static PyObject* sdk_OrthancPluginTranscodeDicomInstance(PyObject* module, PyObject* args)
1
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1583 {
170
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1584 PythonLock::LogCall("Calling Python global function: OrthancPluginTranscodeDicomInstance()");
1
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1585
170
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1586 Py_buffer arg0;
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1587 const char* arg2 = NULL;
1
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1588
170
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1589 if (!PyArg_ParseTuple(args, "s*s", &arg0, &arg2))
1
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1590 {
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1591 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
1592 return NULL;
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1593 }
174
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
1594
170
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1595 // This is the case of a constructor
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1596 OrthancPluginDicomInstance* obj = OrthancPluginTranscodeDicomInstance(OrthancPlugins::GetGlobalContext(), arg0.buf, arg0.len, arg2);
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1597 PyBuffer_Release(&arg0);
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1598 if (obj == NULL)
1
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1599 {
170
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1600 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
1601 return NULL;
1
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 else
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1604 {
170
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1605 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
1606 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
1607 Py_DECREF(argList);
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1608 return python;
1
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_OrthancPluginUncompressImage(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: OrthancPluginUncompressImage()");
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 Py_buffer arg0;
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1617 long int arg2 = 0;
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, "s*l", &arg0, &arg2))
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 // This is the case of a constructor
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1626 OrthancPluginImage* obj = OrthancPluginUncompressImage(OrthancPlugins::GetGlobalContext(), arg0.buf, arg0.len, static_cast<OrthancPluginImageFormat>(arg2));
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1627 PyBuffer_Release(&arg0);
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1628 if (obj == NULL)
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1629 {
75
cbfc72a53970 refactoring calls to PythonLock::RaiseException()
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 56
diff changeset
1630 PythonLock::RaiseException(OrthancPluginErrorCode_InternalError);
1
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1631 return NULL;
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1632 }
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1633 else
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1634 {
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1635 PyObject *argList = Py_BuildValue("Lb", obj, false /* not borrowed */);
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1636 PyObject *python = PyObject_CallObject((PyObject *) &sdk_OrthancPluginImage_Type, argList);
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1637 Py_DECREF(argList);
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1638 return python;
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1639 }
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
170
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1642 static PyObject* sdk_OrthancPluginWriteFile(PyObject* module, PyObject* args)
1
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1643 {
170
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1644 PythonLock::LogCall("Calling Python global function: OrthancPluginWriteFile()");
1
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1645
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1646 const char* arg0 = NULL;
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1647 Py_buffer arg1;
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1648
170
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1649 if (!PyArg_ParseTuple(args, "ss*", &arg0, &arg1))
1
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1650 {
170
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1651 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
1652 return NULL;
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1653 }
174
e9be3c9294d4 [IMPORTANT] replaced old auto-generated code with Java code model
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 170
diff changeset
1654
170
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1655 OrthancPluginErrorCode code = OrthancPluginWriteFile(OrthancPlugins::GetGlobalContext(), arg0, arg1.buf, arg1.len);
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1656 PyBuffer_Release(&arg1);
1
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1657
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1658 if (code == OrthancPluginErrorCode_Success)
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1659 {
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1660 Py_INCREF(Py_None);
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1661 return Py_None;
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1662 }
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1663 else
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1664 {
75
cbfc72a53970 refactoring calls to PythonLock::RaiseException()
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 56
diff changeset
1665 PythonLock::RaiseException(code);
1
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1666 return NULL;
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1667 }
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1668 }
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1669
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1670
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1671 static PyMethodDef ORTHANC_SDK_FUNCTIONS[] =
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1672 {
170
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1673 { "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
1674 "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
1675 { "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
1676 "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
1677 { "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
1678 "Generated from C function OrthancPluginCheckVersion()" },
1
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1679 { "CheckVersionAdvanced", sdk_OrthancPluginCheckVersionAdvanced, METH_VARARGS,
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1680 "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
1681 { "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
1682 "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
1683 { "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
1684 "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
1685 { "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
1686 "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
1687 { "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
1688 "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
1689 { "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
1690 "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
1691 { "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
1692 "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
1693 { "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
1694 "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
1695 { "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
1696 "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
1697 { "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
1698 "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
1699 { "CreateMemoryBuffer", sdk_OrthancPluginCreateMemoryBuffer, METH_VARARGS,
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1700 "Generated from C function OrthancPluginCreateMemoryBuffer()" },
b49eeb36cd0d removed generation of code model, now part of orthanc-java
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
1701 { "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
1702 "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
1703 { "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
1704 "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
1705 { "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
1706 "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
1707 { "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
1708 "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
1709 { "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
1710 "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
1711 { "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
1712 "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
1713 { "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
1714 "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
1715 { "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
1716 "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
1717 { "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
1718 "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
1719 { "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
1720 "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
1721 { "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
1722 "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
1723 { "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
1724 "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
1725 { "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
1726 "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
1727 { "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
1728 "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
1729 { "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
1730 "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
1731 { "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
1732 "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
1733 { "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
1734 "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
1735 { "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
1736 "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
1737 { "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
1738 "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
1739 { "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
1740 "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
1741 { "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
1742 "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
1743 { "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
1744 "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
1745 { "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
1746 "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
1747 { "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
1748 "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
1749 { "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
1750 "Generated from C function OrthancPluginHttpPut()" },
1
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1751 { "LogError", sdk_OrthancPluginLogError, METH_VARARGS,
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1752 "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
1753 { "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
1754 "Generated from C function OrthancPluginLogInfo()" },
1
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1755 { "LogWarning", sdk_OrthancPluginLogWarning, METH_VARARGS,
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1756 "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
1757 { "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
1758 "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
1759 { "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
1760 "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
1761 { "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
1762 "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
1763 { "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
1764 "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
1765 { "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
1766 "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
1767 { "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
1768 "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
1769 { "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
1770 "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
1771 { "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
1772 "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
1773 { "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
1774 "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
1775 { "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
1776 "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
1777 { "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
1778 "Generated from C function OrthancPluginRestApiDeleteAfterPlugins()" },
1
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1779 { "RestApiGet", sdk_OrthancPluginRestApiGet, METH_VARARGS,
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1780 "Generated from C function OrthancPluginRestApiGet()" },
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1781 { "RestApiGetAfterPlugins", sdk_OrthancPluginRestApiGetAfterPlugins, METH_VARARGS,
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1782 "Generated from C function OrthancPluginRestApiGetAfterPlugins()" },
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1783 { "RestApiPost", sdk_OrthancPluginRestApiPost, METH_VARARGS,
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1784 "Generated from C function OrthancPluginRestApiPost()" },
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1785 { "RestApiPostAfterPlugins", sdk_OrthancPluginRestApiPostAfterPlugins, METH_VARARGS,
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1786 "Generated from C function OrthancPluginRestApiPostAfterPlugins()" },
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1787 { "RestApiPut", sdk_OrthancPluginRestApiPut, METH_VARARGS,
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1788 "Generated from C function OrthancPluginRestApiPut()" },
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1789 { "RestApiPutAfterPlugins", sdk_OrthancPluginRestApiPutAfterPlugins, METH_VARARGS,
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1790 "Generated from C function OrthancPluginRestApiPutAfterPlugins()" },
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1791 { "SetDescription", sdk_OrthancPluginSetDescription, METH_VARARGS,
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1792 "Generated from C function OrthancPluginSetDescription()" },
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1793 { "SetGlobalProperty", sdk_OrthancPluginSetGlobalProperty, METH_VARARGS,
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1794 "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
1795 { "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
1796 "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
1797 { "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
1798 "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
1799 { "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
1800 "Generated from C function OrthancPluginTranscodeDicomInstance()" },
1
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1801 { "UncompressImage", sdk_OrthancPluginUncompressImage, METH_VARARGS,
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1802 "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
1803 { "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
1804 "Generated from C function OrthancPluginWriteFile()" },
1
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1805 { NULL, NULL }
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1806 };
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1807
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1808
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1809 PyMethodDef* GetOrthancSdkFunctions()
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1810 {
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1811 return ORTHANC_SDK_FUNCTIONS;
fef9a239df5c adding auto-generated files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1812 }