Mercurial > hg > orthanc-python
annotate CodeAnalysis/GlobalFunctions.mustache @ 185:7e8085f80df5 java-code-model
simplification
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 02 Jul 2024 15:51:35 +0200 |
parents | 6fada29b6759 |
children | 55473de7694f |
rev | line source |
---|---|
0 | 1 /** |
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:
114
diff
changeset
|
5 * Copyright (C) 2021-2024 Sebastien Jodogne, ICTEAM UCLouvain, Belgium |
0 | 6 * |
7 * This program is free software: you can redistribute it and/or | |
8 * modify it under the terms of the GNU Affero General Public License | |
9 * as published by the Free Software Foundation, either version 3 of | |
10 * the License, or (at your option) any later version. | |
11 * | |
12 * This program is distributed in the hope that it will be useful, but | |
13 * WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
15 * Affero General Public License for more details. | |
16 * | |
17 * You should have received a copy of the GNU Affero General Public License | |
18 * along with this program. If not, see <http://www.gnu.org/licenses/>. | |
19 **/ | |
20 | |
21 | |
22 {{#global_functions}} | |
23 static PyObject* sdk_{{c_function}}(PyObject* module, PyObject* args) | |
24 { | |
28
b2bbb516056e
The "Calling Python..." info logs are disabled if "PythonVerbose" is "false"
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
0
diff
changeset
|
25 PythonLock::LogCall("Calling Python global function: {{c_function}}()"); |
0 | 26 |
27 {{> function_body}} | |
28 } | |
29 | |
30 {{/global_functions}} | |
31 | |
32 static PyMethodDef ORTHANC_SDK_FUNCTIONS[] = | |
33 { | |
34 {{#global_functions}} | |
35 { "{{short_name}}", sdk_{{c_function}}, METH_VARARGS, | |
36 "Generated from C function {{c_function}}()" }, | |
37 {{/global_functions}} | |
38 { NULL, NULL } | |
39 }; | |
40 | |
41 | |
42 PyMethodDef* GetOrthancSdkFunctions() | |
43 { | |
44 return ORTHANC_SDK_FUNCTIONS; | |
45 } |