comparison Sources/Autogenerated/sdk_OrthancPluginPeers.methods.h @ 174:e9be3c9294d4 java-code-model

[IMPORTANT] replaced old auto-generated code with Java code model
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 27 Jun 2024 18:02:06 +0200
parents 5643e97d9367
children f34f3a149c22
comparison
equal deleted inserted replaced
173:3c72d1f4c2a5 174:e9be3c9294d4
7 if (self->object_ == NULL) 7 if (self->object_ == NULL)
8 { 8 {
9 PyErr_SetString(PyExc_ValueError, "Invalid object"); 9 PyErr_SetString(PyExc_ValueError, "Invalid object");
10 return NULL; 10 return NULL;
11 } 11 }
12
12 13
13 14
14 long value = OrthancPluginGetPeersCount(OrthancPlugins::GetGlobalContext(), self->object_); 15 long value = OrthancPluginGetPeersCount(OrthancPlugins::GetGlobalContext(), self->object_);
15 16
16 return PyLong_FromLong(value); 17 return PyLong_FromLong(value);
32 if (!PyArg_ParseTuple(args, "k", &arg0)) 33 if (!PyArg_ParseTuple(args, "k", &arg0))
33 { 34 {
34 PyErr_SetString(PyExc_TypeError, "Bad types for the arguments (1 arguments expected)"); 35 PyErr_SetString(PyExc_TypeError, "Bad types for the arguments (1 arguments expected)");
35 return NULL; 36 return NULL;
36 } 37 }
38
37 const char* s = OrthancPluginGetPeerName(OrthancPlugins::GetGlobalContext(), self->object_, arg0); 39 const char* s = OrthancPluginGetPeerName(OrthancPlugins::GetGlobalContext(), self->object_, arg0);
38 40
39 if (s == NULL) 41 if (s == NULL)
40 { 42 {
41 Py_INCREF(Py_None); 43 Py_INCREF(Py_None);
63 if (!PyArg_ParseTuple(args, "k", &arg0)) 65 if (!PyArg_ParseTuple(args, "k", &arg0))
64 { 66 {
65 PyErr_SetString(PyExc_TypeError, "Bad types for the arguments (1 arguments expected)"); 67 PyErr_SetString(PyExc_TypeError, "Bad types for the arguments (1 arguments expected)");
66 return NULL; 68 return NULL;
67 } 69 }
70
68 const char* s = OrthancPluginGetPeerUrl(OrthancPlugins::GetGlobalContext(), self->object_, arg0); 71 const char* s = OrthancPluginGetPeerUrl(OrthancPlugins::GetGlobalContext(), self->object_, arg0);
69 72
70 if (s == NULL) 73 if (s == NULL)
71 { 74 {
72 Py_INCREF(Py_None); 75 Py_INCREF(Py_None);
95 if (!PyArg_ParseTuple(args, "ks", &arg0, &arg1)) 98 if (!PyArg_ParseTuple(args, "ks", &arg0, &arg1))
96 { 99 {
97 PyErr_SetString(PyExc_TypeError, "Bad types for the arguments (2 arguments expected)"); 100 PyErr_SetString(PyExc_TypeError, "Bad types for the arguments (2 arguments expected)");
98 return NULL; 101 return NULL;
99 } 102 }
103
100 const char* s = OrthancPluginGetPeerUserProperty(OrthancPlugins::GetGlobalContext(), self->object_, arg0, arg1); 104 const char* s = OrthancPluginGetPeerUserProperty(OrthancPlugins::GetGlobalContext(), self->object_, arg0, arg1);
101 105
102 if (s == NULL) 106 if (s == NULL)
103 { 107 {
104 Py_INCREF(Py_None); 108 Py_INCREF(Py_None);