Mercurial > hg > orthanc-python
comparison Sources/Autogenerated/sdk_OrthancPluginFindQuery.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 = OrthancPluginGetFindQuerySize(OrthancPlugins::GetGlobalContext(), self->object_); | 15 long value = OrthancPluginGetFindQuerySize(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 OrthancPlugins::OrthancString s; | 39 OrthancPlugins::OrthancString s; |
38 s.Assign(OrthancPluginGetFindQueryTagName(OrthancPlugins::GetGlobalContext(), self->object_, arg0)); | 40 s.Assign(OrthancPluginGetFindQueryTagName(OrthancPlugins::GetGlobalContext(), self->object_, arg0)); |
39 | 41 |
40 if (s.GetContent() == NULL) | 42 if (s.GetContent() == NULL) |
41 { | 43 { |
64 if (!PyArg_ParseTuple(args, "k", &arg0)) | 66 if (!PyArg_ParseTuple(args, "k", &arg0)) |
65 { | 67 { |
66 PyErr_SetString(PyExc_TypeError, "Bad types for the arguments (1 arguments expected)"); | 68 PyErr_SetString(PyExc_TypeError, "Bad types for the arguments (1 arguments expected)"); |
67 return NULL; | 69 return NULL; |
68 } | 70 } |
71 | |
69 OrthancPlugins::OrthancString s; | 72 OrthancPlugins::OrthancString s; |
70 s.Assign(OrthancPluginGetFindQueryValue(OrthancPlugins::GetGlobalContext(), self->object_, arg0)); | 73 s.Assign(OrthancPluginGetFindQueryValue(OrthancPlugins::GetGlobalContext(), self->object_, arg0)); |
71 | 74 |
72 if (s.GetContent() == NULL) | 75 if (s.GetContent() == NULL) |
73 { | 76 { |