Mercurial > hg > orthanc
annotate OrthancCppClient/SharedLibrary/AUTOGENERATED/ExternC.cpp @ 1190:851a55d183c9
fix issue #22
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 16 Oct 2014 11:23:09 +0200 |
parents | 2ee4e8f21c74 |
children | c416fe3e8022 |
rev | line source |
---|---|
528 | 1 /** |
2 * Laaw - Lightweight, Automated API Wrapper | |
3 * Copyright (C) 2010-2013 Jomago - Alain Mazy, Benjamin Golinvaux, | |
4 * Sebastien Jodogne | |
5 * | |
6 * This program is free software: you can redistribute it and/or | |
7 * modify it under the terms of the GNU General Public License as | |
8 * published by the Free Software Foundation, either version 3 of the | |
9 * License, or (at your option) any later version. | |
10 * | |
11 * In addition, as a special exception, the copyright holders of this | |
12 * program give permission to link the code of its release with the | |
13 * OpenSSL project's "OpenSSL" library (or with modified versions of it | |
14 * that use the same license as the "OpenSSL" library), and distribute | |
15 * the linked executables. You must obey the GNU General Public License | |
16 * in all respects for all of the code used other than "OpenSSL". If you | |
17 * modify file(s) with this exception, you may extend this exception to | |
18 * your version of the file(s), but you are not obligated to do so. If | |
19 * you do not wish to do so, delete this exception statement from your | |
20 * version. If you delete this exception statement from all source files | |
21 * in the program, then also delete it here. | |
22 * | |
23 * This program is distributed in the hope that it will be useful, but | |
24 * WITHOUT ANY WARRANTY; without even the implied warranty of | |
25 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
26 * General Public License for more details. | |
27 * | |
28 * You should have received a copy of the GNU General Public License | |
29 * along with this program. If not, see <http://www.gnu.org/licenses/>. | |
30 **/ | |
31 | |
32 | |
728
d380222b4c2a
Load a raw tag from the DICOM file
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
719
diff
changeset
|
33 #include <laaw/laaw.h> |
528 | 34 #include <string.h> // For strcpy() and strlen() |
35 #include <stdlib.h> // For free() | |
36 | |
37 static char* LAAW_EXTERNC_CopyString(const char* str) | |
38 { | |
39 char* copy = reinterpret_cast<char*>(malloc(strlen(str) + 1)); | |
40 strcpy(copy, str); | |
41 return copy; | |
42 } | |
43 | |
44 extern "C" | |
45 { | |
46 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_1f1acb322ea4d0aad65172824607673c(void** newObject, const char* arg0) | |
47 { | |
48 try | |
49 { | |
50 #ifdef LAAW_EXTERNC_START_FUNCTION | |
51 LAAW_EXTERNC_START_FUNCTION; | |
52 #endif | |
53 | |
54 *newObject = new OrthancClient::OrthancConnection(reinterpret_cast< const char* >(arg0)); | |
55 | |
56 return NULL; | |
57 } | |
58 catch (::Laaw::LaawException& e) | |
59 { | |
60 return LAAW_EXTERNC_CopyString(e.What()); | |
61 } | |
62 catch (...) | |
63 { | |
64 return LAAW_EXTERNC_CopyString("..."); | |
65 } | |
66 } | |
67 | |
68 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_f3fd272e4636f6a531aabb72ee01cd5b(void** newObject, const char* arg0, const char* arg1, const char* arg2) | |
69 { | |
70 try | |
71 { | |
72 #ifdef LAAW_EXTERNC_START_FUNCTION | |
73 LAAW_EXTERNC_START_FUNCTION; | |
74 #endif | |
75 | |
76 *newObject = new OrthancClient::OrthancConnection(reinterpret_cast< const char* >(arg0), reinterpret_cast< const char* >(arg1), reinterpret_cast< const char* >(arg2)); | |
77 | |
78 return NULL; | |
79 } | |
80 catch (::Laaw::LaawException& e) | |
81 { | |
82 return LAAW_EXTERNC_CopyString(e.What()); | |
83 } | |
84 catch (...) | |
85 { | |
86 return LAAW_EXTERNC_CopyString("..."); | |
87 } | |
88 } | |
89 | |
90 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_12d3de0a96e9efb11136a9811bb9ed38(void* thisObject) | |
91 { | |
92 try | |
93 { | |
94 #ifdef LAAW_EXTERNC_START_FUNCTION | |
95 LAAW_EXTERNC_START_FUNCTION; | |
96 #endif | |
97 | |
98 delete static_cast<OrthancClient::OrthancConnection*>(thisObject); | |
99 | |
100 return NULL; | |
101 } | |
102 catch (::Laaw::LaawException& e) | |
103 { | |
104 return LAAW_EXTERNC_CopyString(e.What()); | |
105 } | |
106 catch (...) | |
107 { | |
108 return LAAW_EXTERNC_CopyString("..."); | |
109 } | |
110 } | |
111 | |
112 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_557aee7b61817292a0f31269d3c35db7(const void* thisObject, uint32_t* result) | |
113 { | |
114 try | |
115 { | |
116 #ifdef LAAW_EXTERNC_START_FUNCTION | |
117 LAAW_EXTERNC_START_FUNCTION; | |
118 #endif | |
119 | |
120 const OrthancClient::OrthancConnection* this_ = static_cast<const OrthancClient::OrthancConnection*>(thisObject); | |
121 *result = this_->GetThreadCount(); | |
122 | |
123 return NULL; | |
124 } | |
125 catch (::Laaw::LaawException& e) | |
126 { | |
127 return LAAW_EXTERNC_CopyString(e.What()); | |
128 } | |
129 catch (...) | |
130 { | |
131 return LAAW_EXTERNC_CopyString("..."); | |
132 } | |
133 } | |
134 | |
135 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_0b8dff0ce67f10954a49b059e348837e(void* thisObject, uint32_t arg0) | |
136 { | |
137 try | |
138 { | |
139 #ifdef LAAW_EXTERNC_START_FUNCTION | |
140 LAAW_EXTERNC_START_FUNCTION; | |
141 #endif | |
142 | |
143 OrthancClient::OrthancConnection* this_ = static_cast<OrthancClient::OrthancConnection*>(thisObject); | |
144 this_->SetThreadCount(arg0); | |
145 | |
146 return NULL; | |
147 } | |
148 catch (::Laaw::LaawException& e) | |
149 { | |
150 return LAAW_EXTERNC_CopyString(e.What()); | |
151 } | |
152 catch (...) | |
153 { | |
154 return LAAW_EXTERNC_CopyString("..."); | |
155 } | |
156 } | |
157 | |
593
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
158 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_e05097c153f676e5a5ee54dcfc78256f(void* thisObject) |
528 | 159 { |
160 try | |
161 { | |
162 #ifdef LAAW_EXTERNC_START_FUNCTION | |
163 LAAW_EXTERNC_START_FUNCTION; | |
164 #endif | |
165 | |
166 OrthancClient::OrthancConnection* this_ = static_cast<OrthancClient::OrthancConnection*>(thisObject); | |
593
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
167 this_->Reload(); |
528 | 168 |
169 return NULL; | |
170 } | |
171 catch (::Laaw::LaawException& e) | |
172 { | |
173 return LAAW_EXTERNC_CopyString(e.What()); | |
174 } | |
175 catch (...) | |
176 { | |
177 return LAAW_EXTERNC_CopyString("..."); | |
178 } | |
179 } | |
180 | |
181 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_e840242bf58d17d3c1d722da09ce88e0(const void* thisObject, const char** result) | |
182 { | |
183 try | |
184 { | |
185 #ifdef LAAW_EXTERNC_START_FUNCTION | |
186 LAAW_EXTERNC_START_FUNCTION; | |
187 #endif | |
188 | |
189 const OrthancClient::OrthancConnection* this_ = static_cast<const OrthancClient::OrthancConnection*>(thisObject); | |
190 *result = this_->GetOrthancUrl(); | |
191 | |
192 return NULL; | |
193 } | |
194 catch (::Laaw::LaawException& e) | |
195 { | |
196 return LAAW_EXTERNC_CopyString(e.What()); | |
197 } | |
198 catch (...) | |
199 { | |
200 return LAAW_EXTERNC_CopyString("..."); | |
201 } | |
202 } | |
203 | |
204 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_c9af31433001b5dfc012a552dc6d0050(void* thisObject, uint32_t* result) | |
205 { | |
206 try | |
207 { | |
208 #ifdef LAAW_EXTERNC_START_FUNCTION | |
209 LAAW_EXTERNC_START_FUNCTION; | |
210 #endif | |
211 | |
212 OrthancClient::OrthancConnection* this_ = static_cast<OrthancClient::OrthancConnection*>(thisObject); | |
213 *result = this_->GetPatientCount(); | |
214 | |
215 return NULL; | |
216 } | |
217 catch (::Laaw::LaawException& e) | |
218 { | |
219 return LAAW_EXTERNC_CopyString(e.What()); | |
220 } | |
221 catch (...) | |
222 { | |
223 return LAAW_EXTERNC_CopyString("..."); | |
224 } | |
225 } | |
226 | |
227 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_3fba4d6b818180a44cd1cae6046334dc(void* thisObject, void** result, uint32_t arg0) | |
228 { | |
229 try | |
230 { | |
231 #ifdef LAAW_EXTERNC_START_FUNCTION | |
232 LAAW_EXTERNC_START_FUNCTION; | |
233 #endif | |
234 | |
235 OrthancClient::OrthancConnection* this_ = static_cast<OrthancClient::OrthancConnection*>(thisObject); | |
236 *result = &this_->GetPatient(arg0); | |
237 | |
238 return NULL; | |
239 } | |
240 catch (::Laaw::LaawException& e) | |
241 { | |
242 return LAAW_EXTERNC_CopyString(e.What()); | |
243 } | |
244 catch (...) | |
245 { | |
246 return LAAW_EXTERNC_CopyString("..."); | |
247 } | |
248 } | |
249 | |
540 | 250 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_aeb20dc75b9246188db857317e5e0ce7(void* thisObject, uint32_t arg0) |
251 { | |
252 try | |
253 { | |
254 #ifdef LAAW_EXTERNC_START_FUNCTION | |
255 LAAW_EXTERNC_START_FUNCTION; | |
256 #endif | |
257 | |
258 OrthancClient::OrthancConnection* this_ = static_cast<OrthancClient::OrthancConnection*>(thisObject); | |
259 this_->DeletePatient(arg0); | |
260 | |
261 return NULL; | |
262 } | |
263 catch (::Laaw::LaawException& e) | |
264 { | |
265 return LAAW_EXTERNC_CopyString(e.What()); | |
266 } | |
267 catch (...) | |
268 { | |
269 return LAAW_EXTERNC_CopyString("..."); | |
270 } | |
271 } | |
272 | |
273 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_62689803d9871e4d9c51a648640b320b(void* thisObject, const char* arg0) | |
274 { | |
275 try | |
276 { | |
277 #ifdef LAAW_EXTERNC_START_FUNCTION | |
278 LAAW_EXTERNC_START_FUNCTION; | |
279 #endif | |
280 | |
281 OrthancClient::OrthancConnection* this_ = static_cast<OrthancClient::OrthancConnection*>(thisObject); | |
282 this_->StoreFile(reinterpret_cast< const char* >(arg0)); | |
283 | |
284 return NULL; | |
285 } | |
286 catch (::Laaw::LaawException& e) | |
287 { | |
288 return LAAW_EXTERNC_CopyString(e.What()); | |
289 } | |
290 catch (...) | |
291 { | |
292 return LAAW_EXTERNC_CopyString("..."); | |
293 } | |
294 } | |
295 | |
296 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_2fb64c9e5a67eccd413b0e913469a421(void* thisObject, const void* arg0, uint64_t arg1) | |
297 { | |
298 try | |
299 { | |
300 #ifdef LAAW_EXTERNC_START_FUNCTION | |
301 LAAW_EXTERNC_START_FUNCTION; | |
302 #endif | |
303 | |
304 OrthancClient::OrthancConnection* this_ = static_cast<OrthancClient::OrthancConnection*>(thisObject); | |
305 this_->Store(reinterpret_cast< const void* >(arg0), arg1); | |
306 | |
307 return NULL; | |
308 } | |
309 catch (::Laaw::LaawException& e) | |
310 { | |
311 return LAAW_EXTERNC_CopyString(e.What()); | |
312 } | |
313 catch (...) | |
314 { | |
315 return LAAW_EXTERNC_CopyString("..."); | |
316 } | |
317 } | |
318 | |
528 | 319 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_6cf0d7268667f9b0aa4511bacf184919(void** newObject, void* arg0, const char* arg1) |
320 { | |
321 try | |
322 { | |
323 #ifdef LAAW_EXTERNC_START_FUNCTION | |
324 LAAW_EXTERNC_START_FUNCTION; | |
325 #endif | |
326 | |
327 *newObject = new OrthancClient::Patient(*reinterpret_cast< ::OrthancClient::OrthancConnection* >(arg0), reinterpret_cast< const char* >(arg1)); | |
328 | |
329 return NULL; | |
330 } | |
331 catch (::Laaw::LaawException& e) | |
332 { | |
333 return LAAW_EXTERNC_CopyString(e.What()); | |
334 } | |
335 catch (...) | |
336 { | |
337 return LAAW_EXTERNC_CopyString("..."); | |
338 } | |
339 } | |
340 | |
341 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_7d81cd502ee27e859735d0ea7112b5a1(void* thisObject) | |
342 { | |
343 try | |
344 { | |
345 #ifdef LAAW_EXTERNC_START_FUNCTION | |
346 LAAW_EXTERNC_START_FUNCTION; | |
347 #endif | |
348 | |
349 delete static_cast<OrthancClient::Patient*>(thisObject); | |
350 | |
351 return NULL; | |
352 } | |
353 catch (::Laaw::LaawException& e) | |
354 { | |
355 return LAAW_EXTERNC_CopyString(e.What()); | |
356 } | |
357 catch (...) | |
358 { | |
359 return LAAW_EXTERNC_CopyString("..."); | |
360 } | |
361 } | |
362 | |
363 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_f756172daf04516eec3a566adabb4335(void* thisObject) | |
364 { | |
365 try | |
366 { | |
367 #ifdef LAAW_EXTERNC_START_FUNCTION | |
368 LAAW_EXTERNC_START_FUNCTION; | |
369 #endif | |
370 | |
371 OrthancClient::Patient* this_ = static_cast<OrthancClient::Patient*>(thisObject); | |
372 this_->Reload(); | |
373 | |
374 return NULL; | |
375 } | |
376 catch (::Laaw::LaawException& e) | |
377 { | |
378 return LAAW_EXTERNC_CopyString(e.What()); | |
379 } | |
380 catch (...) | |
381 { | |
382 return LAAW_EXTERNC_CopyString("..."); | |
383 } | |
384 } | |
385 | |
386 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_ddb68763ec902a97d579666a73a20118(void* thisObject, uint32_t* result) | |
387 { | |
388 try | |
389 { | |
390 #ifdef LAAW_EXTERNC_START_FUNCTION | |
391 LAAW_EXTERNC_START_FUNCTION; | |
392 #endif | |
393 | |
394 OrthancClient::Patient* this_ = static_cast<OrthancClient::Patient*>(thisObject); | |
395 *result = this_->GetStudyCount(); | |
396 | |
397 return NULL; | |
398 } | |
399 catch (::Laaw::LaawException& e) | |
400 { | |
401 return LAAW_EXTERNC_CopyString(e.What()); | |
402 } | |
403 catch (...) | |
404 { | |
405 return LAAW_EXTERNC_CopyString("..."); | |
406 } | |
407 } | |
408 | |
409 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_fba3c68b4be7558dbc65f7ce1ab57d63(void* thisObject, void** result, uint32_t arg0) | |
410 { | |
411 try | |
412 { | |
413 #ifdef LAAW_EXTERNC_START_FUNCTION | |
414 LAAW_EXTERNC_START_FUNCTION; | |
415 #endif | |
416 | |
417 OrthancClient::Patient* this_ = static_cast<OrthancClient::Patient*>(thisObject); | |
418 *result = &this_->GetStudy(arg0); | |
419 | |
420 return NULL; | |
421 } | |
422 catch (::Laaw::LaawException& e) | |
423 { | |
424 return LAAW_EXTERNC_CopyString(e.What()); | |
425 } | |
426 catch (...) | |
427 { | |
428 return LAAW_EXTERNC_CopyString("..."); | |
429 } | |
430 } | |
431 | |
432 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_b4ca99d958f843493e58d1ef967340e1(const void* thisObject, const char** result) | |
433 { | |
434 try | |
435 { | |
436 #ifdef LAAW_EXTERNC_START_FUNCTION | |
437 LAAW_EXTERNC_START_FUNCTION; | |
438 #endif | |
439 | |
440 const OrthancClient::Patient* this_ = static_cast<const OrthancClient::Patient*>(thisObject); | |
441 *result = this_->GetId(); | |
442 | |
443 return NULL; | |
444 } | |
445 catch (::Laaw::LaawException& e) | |
446 { | |
447 return LAAW_EXTERNC_CopyString(e.What()); | |
448 } | |
449 catch (...) | |
450 { | |
451 return LAAW_EXTERNC_CopyString("..."); | |
452 } | |
453 } | |
454 | |
455 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_78d5cc76d282437b6f93ec3b82c35701(const void* thisObject, const char** result, const char* arg0, const char* arg1) | |
456 { | |
457 try | |
458 { | |
459 #ifdef LAAW_EXTERNC_START_FUNCTION | |
460 LAAW_EXTERNC_START_FUNCTION; | |
461 #endif | |
462 | |
463 const OrthancClient::Patient* this_ = static_cast<const OrthancClient::Patient*>(thisObject); | |
464 *result = this_->GetMainDicomTag(reinterpret_cast< const char* >(arg0), reinterpret_cast< const char* >(arg1)); | |
465 | |
466 return NULL; | |
467 } | |
468 catch (::Laaw::LaawException& e) | |
469 { | |
470 return LAAW_EXTERNC_CopyString(e.What()); | |
471 } | |
472 catch (...) | |
473 { | |
474 return LAAW_EXTERNC_CopyString("..."); | |
475 } | |
476 } | |
477 | |
478 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_193599b9e345384fcdfcd47c29c55342(void** newObject, void* arg0, const char* arg1) | |
479 { | |
480 try | |
481 { | |
482 #ifdef LAAW_EXTERNC_START_FUNCTION | |
483 LAAW_EXTERNC_START_FUNCTION; | |
484 #endif | |
485 | |
486 *newObject = new OrthancClient::Series(*reinterpret_cast< ::OrthancClient::OrthancConnection* >(arg0), reinterpret_cast< const char* >(arg1)); | |
487 | |
488 return NULL; | |
489 } | |
490 catch (::Laaw::LaawException& e) | |
491 { | |
492 return LAAW_EXTERNC_CopyString(e.What()); | |
493 } | |
494 catch (...) | |
495 { | |
496 return LAAW_EXTERNC_CopyString("..."); | |
497 } | |
498 } | |
499 | |
500 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_7c97f17063a357d38c5fab1136ad12a0(void* thisObject) | |
501 { | |
502 try | |
503 { | |
504 #ifdef LAAW_EXTERNC_START_FUNCTION | |
505 LAAW_EXTERNC_START_FUNCTION; | |
506 #endif | |
507 | |
508 delete static_cast<OrthancClient::Series*>(thisObject); | |
509 | |
510 return NULL; | |
511 } | |
512 catch (::Laaw::LaawException& e) | |
513 { | |
514 return LAAW_EXTERNC_CopyString(e.What()); | |
515 } | |
516 catch (...) | |
517 { | |
518 return LAAW_EXTERNC_CopyString("..."); | |
519 } | |
520 } | |
521 | |
522 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_48a2a1a9d68c047e22bfba23014643d2(void* thisObject) | |
523 { | |
524 try | |
525 { | |
526 #ifdef LAAW_EXTERNC_START_FUNCTION | |
527 LAAW_EXTERNC_START_FUNCTION; | |
528 #endif | |
529 | |
530 OrthancClient::Series* this_ = static_cast<OrthancClient::Series*>(thisObject); | |
531 this_->Reload(); | |
532 | |
533 return NULL; | |
534 } | |
535 catch (::Laaw::LaawException& e) | |
536 { | |
537 return LAAW_EXTERNC_CopyString(e.What()); | |
538 } | |
539 catch (...) | |
540 { | |
541 return LAAW_EXTERNC_CopyString("..."); | |
542 } | |
543 } | |
544 | |
545 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_852bf8296ca21c5fde5ec565cc10721d(void* thisObject, uint32_t* result) | |
546 { | |
547 try | |
548 { | |
549 #ifdef LAAW_EXTERNC_START_FUNCTION | |
550 LAAW_EXTERNC_START_FUNCTION; | |
551 #endif | |
552 | |
553 OrthancClient::Series* this_ = static_cast<OrthancClient::Series*>(thisObject); | |
554 *result = this_->GetInstanceCount(); | |
555 | |
556 return NULL; | |
557 } | |
558 catch (::Laaw::LaawException& e) | |
559 { | |
560 return LAAW_EXTERNC_CopyString(e.What()); | |
561 } | |
562 catch (...) | |
563 { | |
564 return LAAW_EXTERNC_CopyString("..."); | |
565 } | |
566 } | |
567 | |
568 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_efd04574e0779faa83df1f2d8f9888db(void* thisObject, void** result, uint32_t arg0) | |
569 { | |
570 try | |
571 { | |
572 #ifdef LAAW_EXTERNC_START_FUNCTION | |
573 LAAW_EXTERNC_START_FUNCTION; | |
574 #endif | |
575 | |
576 OrthancClient::Series* this_ = static_cast<OrthancClient::Series*>(thisObject); | |
577 *result = &this_->GetInstance(arg0); | |
578 | |
579 return NULL; | |
580 } | |
581 catch (::Laaw::LaawException& e) | |
582 { | |
583 return LAAW_EXTERNC_CopyString(e.What()); | |
584 } | |
585 catch (...) | |
586 { | |
587 return LAAW_EXTERNC_CopyString("..."); | |
588 } | |
589 } | |
590 | |
591 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_736247ff5e8036dac38163da6f666ed5(const void* thisObject, const char** result) | |
592 { | |
593 try | |
594 { | |
595 #ifdef LAAW_EXTERNC_START_FUNCTION | |
596 LAAW_EXTERNC_START_FUNCTION; | |
597 #endif | |
598 | |
599 const OrthancClient::Series* this_ = static_cast<const OrthancClient::Series*>(thisObject); | |
600 *result = this_->GetId(); | |
601 | |
602 return NULL; | |
603 } | |
604 catch (::Laaw::LaawException& e) | |
605 { | |
606 return LAAW_EXTERNC_CopyString(e.What()); | |
607 } | |
608 catch (...) | |
609 { | |
610 return LAAW_EXTERNC_CopyString("..."); | |
611 } | |
612 } | |
613 | |
614 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_d82d2598a7a73f4b6fcc0c09c25b08ca(const void* thisObject, const char** result) | |
615 { | |
616 try | |
617 { | |
618 #ifdef LAAW_EXTERNC_START_FUNCTION | |
619 LAAW_EXTERNC_START_FUNCTION; | |
620 #endif | |
621 | |
622 const OrthancClient::Series* this_ = static_cast<const OrthancClient::Series*>(thisObject); | |
623 *result = this_->GetUrl(); | |
624 | |
625 return NULL; | |
626 } | |
627 catch (::Laaw::LaawException& e) | |
628 { | |
629 return LAAW_EXTERNC_CopyString(e.What()); | |
630 } | |
631 catch (...) | |
632 { | |
633 return LAAW_EXTERNC_CopyString("..."); | |
634 } | |
635 } | |
636 | |
593
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
637 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_88134b978f9acb2aecdadf54aeab3c64(const void* thisObject, const char** result, const char* arg0, const char* arg1) |
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
638 { |
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
639 try |
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
640 { |
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
641 #ifdef LAAW_EXTERNC_START_FUNCTION |
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
642 LAAW_EXTERNC_START_FUNCTION; |
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
643 #endif |
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
644 |
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
645 const OrthancClient::Series* this_ = static_cast<const OrthancClient::Series*>(thisObject); |
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
646 *result = this_->GetMainDicomTag(reinterpret_cast< const char* >(arg0), reinterpret_cast< const char* >(arg1)); |
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
647 |
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
648 return NULL; |
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
649 } |
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
650 catch (::Laaw::LaawException& e) |
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
651 { |
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
652 return LAAW_EXTERNC_CopyString(e.What()); |
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
653 } |
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
654 catch (...) |
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
655 { |
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
656 return LAAW_EXTERNC_CopyString("..."); |
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
657 } |
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
658 } |
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
659 |
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
660 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_152cb1b704c053d24b0dab7461ba6ea3(void* thisObject, int32_t* result) |
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
661 { |
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
662 try |
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
663 { |
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
664 #ifdef LAAW_EXTERNC_START_FUNCTION |
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
665 LAAW_EXTERNC_START_FUNCTION; |
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
666 #endif |
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
667 |
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
668 OrthancClient::Series* this_ = static_cast<OrthancClient::Series*>(thisObject); |
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
669 *result = this_->Is3DImage(); |
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
670 |
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
671 return NULL; |
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
672 } |
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
673 catch (::Laaw::LaawException& e) |
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
674 { |
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
675 return LAAW_EXTERNC_CopyString(e.What()); |
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
676 } |
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
677 catch (...) |
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
678 { |
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
679 return LAAW_EXTERNC_CopyString("..."); |
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
680 } |
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
681 } |
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
682 |
528 | 683 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_eee03f337ec81d9f1783cd41e5238757(void* thisObject, uint32_t* result) |
684 { | |
685 try | |
686 { | |
687 #ifdef LAAW_EXTERNC_START_FUNCTION | |
688 LAAW_EXTERNC_START_FUNCTION; | |
689 #endif | |
690 | |
691 OrthancClient::Series* this_ = static_cast<OrthancClient::Series*>(thisObject); | |
692 *result = this_->GetWidth(); | |
693 | |
694 return NULL; | |
695 } | |
696 catch (::Laaw::LaawException& e) | |
697 { | |
698 return LAAW_EXTERNC_CopyString(e.What()); | |
699 } | |
700 catch (...) | |
701 { | |
702 return LAAW_EXTERNC_CopyString("..."); | |
703 } | |
704 } | |
705 | |
706 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_006f08237bd7611636fc721baebfb4c5(void* thisObject, uint32_t* result) | |
707 { | |
708 try | |
709 { | |
710 #ifdef LAAW_EXTERNC_START_FUNCTION | |
711 LAAW_EXTERNC_START_FUNCTION; | |
712 #endif | |
713 | |
714 OrthancClient::Series* this_ = static_cast<OrthancClient::Series*>(thisObject); | |
715 *result = this_->GetHeight(); | |
716 | |
717 return NULL; | |
718 } | |
719 catch (::Laaw::LaawException& e) | |
720 { | |
721 return LAAW_EXTERNC_CopyString(e.What()); | |
722 } | |
723 catch (...) | |
724 { | |
725 return LAAW_EXTERNC_CopyString("..."); | |
726 } | |
727 } | |
728 | |
729 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_b794f5cd3dad7d7b575dd1fd902afdd0(void* thisObject, float* result) | |
730 { | |
731 try | |
732 { | |
733 #ifdef LAAW_EXTERNC_START_FUNCTION | |
734 LAAW_EXTERNC_START_FUNCTION; | |
735 #endif | |
736 | |
737 OrthancClient::Series* this_ = static_cast<OrthancClient::Series*>(thisObject); | |
738 *result = this_->GetVoxelSizeX(); | |
739 | |
740 return NULL; | |
741 } | |
742 catch (::Laaw::LaawException& e) | |
743 { | |
744 return LAAW_EXTERNC_CopyString(e.What()); | |
745 } | |
746 catch (...) | |
747 { | |
748 return LAAW_EXTERNC_CopyString("..."); | |
749 } | |
750 } | |
751 | |
752 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_8ee2e50dd9df8f66a3c1766090dd03ab(void* thisObject, float* result) | |
753 { | |
754 try | |
755 { | |
756 #ifdef LAAW_EXTERNC_START_FUNCTION | |
757 LAAW_EXTERNC_START_FUNCTION; | |
758 #endif | |
759 | |
760 OrthancClient::Series* this_ = static_cast<OrthancClient::Series*>(thisObject); | |
761 *result = this_->GetVoxelSizeY(); | |
762 | |
763 return NULL; | |
764 } | |
765 catch (::Laaw::LaawException& e) | |
766 { | |
767 return LAAW_EXTERNC_CopyString(e.What()); | |
768 } | |
769 catch (...) | |
770 { | |
771 return LAAW_EXTERNC_CopyString("..."); | |
772 } | |
773 } | |
774 | |
775 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_046aed35bbe4751691f4c34cc249a61d(void* thisObject, float* result) | |
776 { | |
777 try | |
778 { | |
779 #ifdef LAAW_EXTERNC_START_FUNCTION | |
780 LAAW_EXTERNC_START_FUNCTION; | |
781 #endif | |
782 | |
783 OrthancClient::Series* this_ = static_cast<OrthancClient::Series*>(thisObject); | |
784 *result = this_->GetVoxelSizeZ(); | |
785 | |
786 return NULL; | |
787 } | |
788 catch (::Laaw::LaawException& e) | |
789 { | |
790 return LAAW_EXTERNC_CopyString(e.What()); | |
791 } | |
792 catch (...) | |
793 { | |
794 return LAAW_EXTERNC_CopyString("..."); | |
795 } | |
796 } | |
797 | |
986 | 798 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_2be452e7af5bf7dfd8c5021842674497(void* thisObject, float* result) |
799 { | |
800 try | |
801 { | |
802 #ifdef LAAW_EXTERNC_START_FUNCTION | |
803 LAAW_EXTERNC_START_FUNCTION; | |
804 #endif | |
805 | |
806 OrthancClient::Series* this_ = static_cast<OrthancClient::Series*>(thisObject); | |
807 *result = this_->GetSliceThickness(); | |
808 | |
809 return NULL; | |
810 } | |
811 catch (::Laaw::LaawException& e) | |
812 { | |
813 return LAAW_EXTERNC_CopyString(e.What()); | |
814 } | |
815 catch (...) | |
816 { | |
817 return LAAW_EXTERNC_CopyString("..."); | |
818 } | |
819 } | |
820 | |
528 | 821 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_4dcc7a0fd025efba251ac6e9b701c2c5(void* thisObject, void* arg0, int32_t arg1, int64_t arg2, int64_t arg3) |
822 { | |
823 try | |
824 { | |
825 #ifdef LAAW_EXTERNC_START_FUNCTION | |
826 LAAW_EXTERNC_START_FUNCTION; | |
827 #endif | |
828 | |
829 OrthancClient::Series* this_ = static_cast<OrthancClient::Series*>(thisObject); | |
830 this_->Load3DImage(reinterpret_cast< void* >(arg0), static_cast< ::Orthanc::PixelFormat >(arg1), arg2, arg3); | |
831 | |
832 return NULL; | |
833 } | |
834 catch (::Laaw::LaawException& e) | |
835 { | |
836 return LAAW_EXTERNC_CopyString(e.What()); | |
837 } | |
838 catch (...) | |
839 { | |
840 return LAAW_EXTERNC_CopyString("..."); | |
841 } | |
842 } | |
843 | |
548 | 844 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_b2601a161c24ad0a1d3586246f87452c(void* thisObject, void* arg0, int32_t arg1, int64_t arg2, int64_t arg3, float* arg4) |
845 { | |
846 try | |
847 { | |
848 #ifdef LAAW_EXTERNC_START_FUNCTION | |
849 LAAW_EXTERNC_START_FUNCTION; | |
850 #endif | |
851 | |
852 OrthancClient::Series* this_ = static_cast<OrthancClient::Series*>(thisObject); | |
853 this_->Load3DImage(reinterpret_cast< void* >(arg0), static_cast< ::Orthanc::PixelFormat >(arg1), arg2, arg3, reinterpret_cast< float* >(arg4)); | |
854 | |
855 return NULL; | |
856 } | |
857 catch (::Laaw::LaawException& e) | |
858 { | |
859 return LAAW_EXTERNC_CopyString(e.What()); | |
860 } | |
861 catch (...) | |
862 { | |
863 return LAAW_EXTERNC_CopyString("..."); | |
864 } | |
865 } | |
866 | |
528 | 867 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_b01c6003238eb46c8db5dc823d7ca678(void** newObject, void* arg0, const char* arg1) |
868 { | |
869 try | |
870 { | |
871 #ifdef LAAW_EXTERNC_START_FUNCTION | |
872 LAAW_EXTERNC_START_FUNCTION; | |
873 #endif | |
874 | |
875 *newObject = new OrthancClient::Study(*reinterpret_cast< ::OrthancClient::OrthancConnection* >(arg0), reinterpret_cast< const char* >(arg1)); | |
876 | |
877 return NULL; | |
878 } | |
879 catch (::Laaw::LaawException& e) | |
880 { | |
881 return LAAW_EXTERNC_CopyString(e.What()); | |
882 } | |
883 catch (...) | |
884 { | |
885 return LAAW_EXTERNC_CopyString("..."); | |
886 } | |
887 } | |
888 | |
889 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_0147007fb99bad8cd95a139ec8795376(void* thisObject) | |
890 { | |
891 try | |
892 { | |
893 #ifdef LAAW_EXTERNC_START_FUNCTION | |
894 LAAW_EXTERNC_START_FUNCTION; | |
895 #endif | |
896 | |
897 delete static_cast<OrthancClient::Study*>(thisObject); | |
898 | |
899 return NULL; | |
900 } | |
901 catch (::Laaw::LaawException& e) | |
902 { | |
903 return LAAW_EXTERNC_CopyString(e.What()); | |
904 } | |
905 catch (...) | |
906 { | |
907 return LAAW_EXTERNC_CopyString("..."); | |
908 } | |
909 } | |
910 | |
911 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_e65b20b7e0170b67544cd6664a4639b7(void* thisObject) | |
912 { | |
913 try | |
914 { | |
915 #ifdef LAAW_EXTERNC_START_FUNCTION | |
916 LAAW_EXTERNC_START_FUNCTION; | |
917 #endif | |
918 | |
919 OrthancClient::Study* this_ = static_cast<OrthancClient::Study*>(thisObject); | |
920 this_->Reload(); | |
921 | |
922 return NULL; | |
923 } | |
924 catch (::Laaw::LaawException& e) | |
925 { | |
926 return LAAW_EXTERNC_CopyString(e.What()); | |
927 } | |
928 catch (...) | |
929 { | |
930 return LAAW_EXTERNC_CopyString("..."); | |
931 } | |
932 } | |
933 | |
934 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_470e981b0e41f17231ba0ae6f3033321(void* thisObject, uint32_t* result) | |
935 { | |
936 try | |
937 { | |
938 #ifdef LAAW_EXTERNC_START_FUNCTION | |
939 LAAW_EXTERNC_START_FUNCTION; | |
940 #endif | |
941 | |
942 OrthancClient::Study* this_ = static_cast<OrthancClient::Study*>(thisObject); | |
943 *result = this_->GetSeriesCount(); | |
944 | |
945 return NULL; | |
946 } | |
947 catch (::Laaw::LaawException& e) | |
948 { | |
949 return LAAW_EXTERNC_CopyString(e.What()); | |
950 } | |
951 catch (...) | |
952 { | |
953 return LAAW_EXTERNC_CopyString("..."); | |
954 } | |
955 } | |
956 | |
957 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_04cefd138b6ea15ad909858f2a0a8f05(void* thisObject, void** result, uint32_t arg0) | |
958 { | |
959 try | |
960 { | |
961 #ifdef LAAW_EXTERNC_START_FUNCTION | |
962 LAAW_EXTERNC_START_FUNCTION; | |
963 #endif | |
964 | |
965 OrthancClient::Study* this_ = static_cast<OrthancClient::Study*>(thisObject); | |
966 *result = &this_->GetSeries(arg0); | |
967 | |
968 return NULL; | |
969 } | |
970 catch (::Laaw::LaawException& e) | |
971 { | |
972 return LAAW_EXTERNC_CopyString(e.What()); | |
973 } | |
974 catch (...) | |
975 { | |
976 return LAAW_EXTERNC_CopyString("..."); | |
977 } | |
978 } | |
979 | |
980 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_aee5b1f6f0c082f2c3b0986f9f6a18c7(const void* thisObject, const char** result) | |
981 { | |
982 try | |
983 { | |
984 #ifdef LAAW_EXTERNC_START_FUNCTION | |
985 LAAW_EXTERNC_START_FUNCTION; | |
986 #endif | |
987 | |
988 const OrthancClient::Study* this_ = static_cast<const OrthancClient::Study*>(thisObject); | |
989 *result = this_->GetId(); | |
990 | |
991 return NULL; | |
992 } | |
993 catch (::Laaw::LaawException& e) | |
994 { | |
995 return LAAW_EXTERNC_CopyString(e.What()); | |
996 } | |
997 catch (...) | |
998 { | |
999 return LAAW_EXTERNC_CopyString("..."); | |
1000 } | |
1001 } | |
1002 | |
1003 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_93965682bace75491413e1f0b8d5a654(const void* thisObject, const char** result, const char* arg0, const char* arg1) | |
1004 { | |
1005 try | |
1006 { | |
1007 #ifdef LAAW_EXTERNC_START_FUNCTION | |
1008 LAAW_EXTERNC_START_FUNCTION; | |
1009 #endif | |
1010 | |
1011 const OrthancClient::Study* this_ = static_cast<const OrthancClient::Study*>(thisObject); | |
1012 *result = this_->GetMainDicomTag(reinterpret_cast< const char* >(arg0), reinterpret_cast< const char* >(arg1)); | |
1013 | |
1014 return NULL; | |
1015 } | |
1016 catch (::Laaw::LaawException& e) | |
1017 { | |
1018 return LAAW_EXTERNC_CopyString(e.What()); | |
1019 } | |
1020 catch (...) | |
1021 { | |
1022 return LAAW_EXTERNC_CopyString("..."); | |
1023 } | |
1024 } | |
1025 | |
1026 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_6c5ad02f91b583e29cebd0bd319ce21d(void** newObject, void* arg0, const char* arg1) | |
1027 { | |
1028 try | |
1029 { | |
1030 #ifdef LAAW_EXTERNC_START_FUNCTION | |
1031 LAAW_EXTERNC_START_FUNCTION; | |
1032 #endif | |
1033 | |
1034 *newObject = new OrthancClient::Instance(*reinterpret_cast< ::OrthancClient::OrthancConnection* >(arg0), reinterpret_cast< const char* >(arg1)); | |
1035 | |
1036 return NULL; | |
1037 } | |
1038 catch (::Laaw::LaawException& e) | |
1039 { | |
1040 return LAAW_EXTERNC_CopyString(e.What()); | |
1041 } | |
1042 catch (...) | |
1043 { | |
1044 return LAAW_EXTERNC_CopyString("..."); | |
1045 } | |
1046 } | |
1047 | |
1048 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_4068241c44a9c1367fe0e57be523f207(void* thisObject) | |
1049 { | |
1050 try | |
1051 { | |
1052 #ifdef LAAW_EXTERNC_START_FUNCTION | |
1053 LAAW_EXTERNC_START_FUNCTION; | |
1054 #endif | |
1055 | |
1056 delete static_cast<OrthancClient::Instance*>(thisObject); | |
1057 | |
1058 return NULL; | |
1059 } | |
1060 catch (::Laaw::LaawException& e) | |
1061 { | |
1062 return LAAW_EXTERNC_CopyString(e.What()); | |
1063 } | |
1064 catch (...) | |
1065 { | |
1066 return LAAW_EXTERNC_CopyString("..."); | |
1067 } | |
1068 } | |
1069 | |
1070 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_236ee8b403bc99535a8a4695c0cd45cb(const void* thisObject, const char** result) | |
1071 { | |
1072 try | |
1073 { | |
1074 #ifdef LAAW_EXTERNC_START_FUNCTION | |
1075 LAAW_EXTERNC_START_FUNCTION; | |
1076 #endif | |
1077 | |
1078 const OrthancClient::Instance* this_ = static_cast<const OrthancClient::Instance*>(thisObject); | |
1079 *result = this_->GetId(); | |
1080 | |
1081 return NULL; | |
1082 } | |
1083 catch (::Laaw::LaawException& e) | |
1084 { | |
1085 return LAAW_EXTERNC_CopyString(e.What()); | |
1086 } | |
1087 catch (...) | |
1088 { | |
1089 return LAAW_EXTERNC_CopyString("..."); | |
1090 } | |
1091 } | |
1092 | |
1093 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_2a437b7aba6bb01e81113835be8f0146(void* thisObject, int32_t arg0) | |
1094 { | |
1095 try | |
1096 { | |
1097 #ifdef LAAW_EXTERNC_START_FUNCTION | |
1098 LAAW_EXTERNC_START_FUNCTION; | |
1099 #endif | |
1100 | |
1101 OrthancClient::Instance* this_ = static_cast<OrthancClient::Instance*>(thisObject); | |
1102 this_->SetImageExtractionMode(static_cast< ::Orthanc::ImageExtractionMode >(arg0)); | |
1103 | |
1104 return NULL; | |
1105 } | |
1106 catch (::Laaw::LaawException& e) | |
1107 { | |
1108 return LAAW_EXTERNC_CopyString(e.What()); | |
1109 } | |
1110 catch (...) | |
1111 { | |
1112 return LAAW_EXTERNC_CopyString("..."); | |
1113 } | |
1114 } | |
1115 | |
1116 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_2bcbcb850934ae0bb4c6f0cc940e6cda(const void* thisObject, int32_t* result) | |
1117 { | |
1118 try | |
1119 { | |
1120 #ifdef LAAW_EXTERNC_START_FUNCTION | |
1121 LAAW_EXTERNC_START_FUNCTION; | |
1122 #endif | |
1123 | |
1124 const OrthancClient::Instance* this_ = static_cast<const OrthancClient::Instance*>(thisObject); | |
1125 *result = this_->GetImageExtractionMode(); | |
1126 | |
1127 return NULL; | |
1128 } | |
1129 catch (::Laaw::LaawException& e) | |
1130 { | |
1131 return LAAW_EXTERNC_CopyString(e.What()); | |
1132 } | |
1133 catch (...) | |
1134 { | |
1135 return LAAW_EXTERNC_CopyString("..."); | |
1136 } | |
1137 } | |
1138 | |
1139 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_8d415c3a78a48e7e61d9fd24e7c79484(const void* thisObject, const char** result, const char* arg0) | |
1140 { | |
1141 try | |
1142 { | |
1143 #ifdef LAAW_EXTERNC_START_FUNCTION | |
1144 LAAW_EXTERNC_START_FUNCTION; | |
1145 #endif | |
1146 | |
1147 const OrthancClient::Instance* this_ = static_cast<const OrthancClient::Instance*>(thisObject); | |
1148 *result = this_->GetTagAsString(reinterpret_cast< const char* >(arg0)); | |
1149 | |
1150 return NULL; | |
1151 } | |
1152 catch (::Laaw::LaawException& e) | |
1153 { | |
1154 return LAAW_EXTERNC_CopyString(e.What()); | |
1155 } | |
1156 catch (...) | |
1157 { | |
1158 return LAAW_EXTERNC_CopyString("..."); | |
1159 } | |
1160 } | |
1161 | |
1162 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_70d2f8398bbc63b5f792b69b4ad5fecb(const void* thisObject, float* result, const char* arg0) | |
1163 { | |
1164 try | |
1165 { | |
1166 #ifdef LAAW_EXTERNC_START_FUNCTION | |
1167 LAAW_EXTERNC_START_FUNCTION; | |
1168 #endif | |
1169 | |
1170 const OrthancClient::Instance* this_ = static_cast<const OrthancClient::Instance*>(thisObject); | |
1171 *result = this_->GetTagAsFloat(reinterpret_cast< const char* >(arg0)); | |
1172 | |
1173 return NULL; | |
1174 } | |
1175 catch (::Laaw::LaawException& e) | |
1176 { | |
1177 return LAAW_EXTERNC_CopyString(e.What()); | |
1178 } | |
1179 catch (...) | |
1180 { | |
1181 return LAAW_EXTERNC_CopyString("..."); | |
1182 } | |
1183 } | |
1184 | |
1185 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_1729a067d902771517388eedd7346b23(const void* thisObject, int32_t* result, const char* arg0) | |
1186 { | |
1187 try | |
1188 { | |
1189 #ifdef LAAW_EXTERNC_START_FUNCTION | |
1190 LAAW_EXTERNC_START_FUNCTION; | |
1191 #endif | |
1192 | |
1193 const OrthancClient::Instance* this_ = static_cast<const OrthancClient::Instance*>(thisObject); | |
1194 *result = this_->GetTagAsInt(reinterpret_cast< const char* >(arg0)); | |
1195 | |
1196 return NULL; | |
1197 } | |
1198 catch (::Laaw::LaawException& e) | |
1199 { | |
1200 return LAAW_EXTERNC_CopyString(e.What()); | |
1201 } | |
1202 catch (...) | |
1203 { | |
1204 return LAAW_EXTERNC_CopyString("..."); | |
1205 } | |
1206 } | |
1207 | |
1208 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_72e2aeee66cd3abd8ab7e987321c3745(void* thisObject, uint32_t* result) | |
1209 { | |
1210 try | |
1211 { | |
1212 #ifdef LAAW_EXTERNC_START_FUNCTION | |
1213 LAAW_EXTERNC_START_FUNCTION; | |
1214 #endif | |
1215 | |
1216 OrthancClient::Instance* this_ = static_cast<OrthancClient::Instance*>(thisObject); | |
1217 *result = this_->GetWidth(); | |
1218 | |
1219 return NULL; | |
1220 } | |
1221 catch (::Laaw::LaawException& e) | |
1222 { | |
1223 return LAAW_EXTERNC_CopyString(e.What()); | |
1224 } | |
1225 catch (...) | |
1226 { | |
1227 return LAAW_EXTERNC_CopyString("..."); | |
1228 } | |
1229 } | |
1230 | |
1231 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_1ea3df5a1ac1a1a687fe7325adddb6f0(void* thisObject, uint32_t* result) | |
1232 { | |
1233 try | |
1234 { | |
1235 #ifdef LAAW_EXTERNC_START_FUNCTION | |
1236 LAAW_EXTERNC_START_FUNCTION; | |
1237 #endif | |
1238 | |
1239 OrthancClient::Instance* this_ = static_cast<OrthancClient::Instance*>(thisObject); | |
1240 *result = this_->GetHeight(); | |
1241 | |
1242 return NULL; | |
1243 } | |
1244 catch (::Laaw::LaawException& e) | |
1245 { | |
1246 return LAAW_EXTERNC_CopyString(e.What()); | |
1247 } | |
1248 catch (...) | |
1249 { | |
1250 return LAAW_EXTERNC_CopyString("..."); | |
1251 } | |
1252 } | |
1253 | |
1254 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_99b4f370e4f532d8b763e2cb49db92f8(void* thisObject, uint32_t* result) | |
1255 { | |
1256 try | |
1257 { | |
1258 #ifdef LAAW_EXTERNC_START_FUNCTION | |
1259 LAAW_EXTERNC_START_FUNCTION; | |
1260 #endif | |
1261 | |
1262 OrthancClient::Instance* this_ = static_cast<OrthancClient::Instance*>(thisObject); | |
1263 *result = this_->GetPitch(); | |
1264 | |
1265 return NULL; | |
1266 } | |
1267 catch (::Laaw::LaawException& e) | |
1268 { | |
1269 return LAAW_EXTERNC_CopyString(e.What()); | |
1270 } | |
1271 catch (...) | |
1272 { | |
1273 return LAAW_EXTERNC_CopyString("..."); | |
1274 } | |
1275 } | |
1276 | |
1277 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_c41c742b68617f1c0590577a0a5ebc0c(void* thisObject, int32_t* result) | |
1278 { | |
1279 try | |
1280 { | |
1281 #ifdef LAAW_EXTERNC_START_FUNCTION | |
1282 LAAW_EXTERNC_START_FUNCTION; | |
1283 #endif | |
1284 | |
1285 OrthancClient::Instance* this_ = static_cast<OrthancClient::Instance*>(thisObject); | |
1286 *result = this_->GetPixelFormat(); | |
1287 | |
1288 return NULL; | |
1289 } | |
1290 catch (::Laaw::LaawException& e) | |
1291 { | |
1292 return LAAW_EXTERNC_CopyString(e.What()); | |
1293 } | |
1294 catch (...) | |
1295 { | |
1296 return LAAW_EXTERNC_CopyString("..."); | |
1297 } | |
1298 } | |
1299 | |
1300 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_142dd2feba0fc1d262bbd0baeb441a8b(void* thisObject, const void** result) | |
1301 { | |
1302 try | |
1303 { | |
1304 #ifdef LAAW_EXTERNC_START_FUNCTION | |
1305 LAAW_EXTERNC_START_FUNCTION; | |
1306 #endif | |
1307 | |
1308 OrthancClient::Instance* this_ = static_cast<OrthancClient::Instance*>(thisObject); | |
1309 *result = this_->GetBuffer(); | |
1310 | |
1311 return NULL; | |
1312 } | |
1313 catch (::Laaw::LaawException& e) | |
1314 { | |
1315 return LAAW_EXTERNC_CopyString(e.What()); | |
1316 } | |
1317 catch (...) | |
1318 { | |
1319 return LAAW_EXTERNC_CopyString("..."); | |
1320 } | |
1321 } | |
1322 | |
1323 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_5f5c9f81a4dff8daa6c359f1d0488fef(void* thisObject, const void** result, uint32_t arg0) | |
1324 { | |
1325 try | |
1326 { | |
1327 #ifdef LAAW_EXTERNC_START_FUNCTION | |
1328 LAAW_EXTERNC_START_FUNCTION; | |
1329 #endif | |
1330 | |
1331 OrthancClient::Instance* this_ = static_cast<OrthancClient::Instance*>(thisObject); | |
1332 *result = this_->GetBuffer(arg0); | |
1333 | |
1334 return NULL; | |
1335 } | |
1336 catch (::Laaw::LaawException& e) | |
1337 { | |
1338 return LAAW_EXTERNC_CopyString(e.What()); | |
1339 } | |
1340 catch (...) | |
1341 { | |
1342 return LAAW_EXTERNC_CopyString("..."); | |
1343 } | |
1344 } | |
1345 | |
593
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
1346 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_9ca979fffd08fa256306d4e68d8b0e91(void* thisObject, uint64_t* result) |
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
1347 { |
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
1348 try |
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
1349 { |
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
1350 #ifdef LAAW_EXTERNC_START_FUNCTION |
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
1351 LAAW_EXTERNC_START_FUNCTION; |
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
1352 #endif |
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
1353 |
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
1354 OrthancClient::Instance* this_ = static_cast<OrthancClient::Instance*>(thisObject); |
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
1355 *result = this_->GetDicomSize(); |
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
1356 |
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
1357 return NULL; |
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
1358 } |
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
1359 catch (::Laaw::LaawException& e) |
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
1360 { |
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
1361 return LAAW_EXTERNC_CopyString(e.What()); |
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
1362 } |
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
1363 catch (...) |
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
1364 { |
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
1365 return LAAW_EXTERNC_CopyString("..."); |
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
1366 } |
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
1367 } |
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
1368 |
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
1369 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_6f2d77a26edc91c28d89408dbc3c271e(void* thisObject, const void** result) |
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
1370 { |
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
1371 try |
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
1372 { |
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
1373 #ifdef LAAW_EXTERNC_START_FUNCTION |
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
1374 LAAW_EXTERNC_START_FUNCTION; |
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
1375 #endif |
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
1376 |
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
1377 OrthancClient::Instance* this_ = static_cast<OrthancClient::Instance*>(thisObject); |
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
1378 *result = this_->GetDicom(); |
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
1379 |
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
1380 return NULL; |
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
1381 } |
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
1382 catch (::Laaw::LaawException& e) |
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
1383 { |
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
1384 return LAAW_EXTERNC_CopyString(e.What()); |
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
1385 } |
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
1386 catch (...) |
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
1387 { |
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
1388 return LAAW_EXTERNC_CopyString("..."); |
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
1389 } |
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
1390 } |
9d2592c08919
documentation completed
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
1391 |
528 | 1392 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_c0f494b80d4ff8b232df7a75baa0700a(void* thisObject) |
1393 { | |
1394 try | |
1395 { | |
1396 #ifdef LAAW_EXTERNC_START_FUNCTION | |
1397 LAAW_EXTERNC_START_FUNCTION; | |
1398 #endif | |
1399 | |
1400 OrthancClient::Instance* this_ = static_cast<OrthancClient::Instance*>(thisObject); | |
1401 this_->DiscardImage(); | |
1402 | |
1403 return NULL; | |
1404 } | |
1405 catch (::Laaw::LaawException& e) | |
1406 { | |
1407 return LAAW_EXTERNC_CopyString(e.What()); | |
1408 } | |
1409 catch (...) | |
1410 { | |
1411 return LAAW_EXTERNC_CopyString("..."); | |
1412 } | |
1413 } | |
1414 | |
540 | 1415 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_d604f44bd5195e082e745e9cbc164f4c(void* thisObject) |
1416 { | |
1417 try | |
1418 { | |
1419 #ifdef LAAW_EXTERNC_START_FUNCTION | |
1420 LAAW_EXTERNC_START_FUNCTION; | |
1421 #endif | |
1422 | |
1423 OrthancClient::Instance* this_ = static_cast<OrthancClient::Instance*>(thisObject); | |
1424 this_->DiscardDicom(); | |
1425 | |
1426 return NULL; | |
1427 } | |
1428 catch (::Laaw::LaawException& e) | |
1429 { | |
1430 return LAAW_EXTERNC_CopyString(e.What()); | |
1431 } | |
1432 catch (...) | |
1433 { | |
1434 return LAAW_EXTERNC_CopyString("..."); | |
1435 } | |
1436 } | |
1437 | |
728
d380222b4c2a
Load a raw tag from the DICOM file
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
719
diff
changeset
|
1438 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_1710299d1c5f3b1f2b7cf3962deebbfd(void* thisObject, const char* arg0) |
d380222b4c2a
Load a raw tag from the DICOM file
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
719
diff
changeset
|
1439 { |
d380222b4c2a
Load a raw tag from the DICOM file
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
719
diff
changeset
|
1440 try |
d380222b4c2a
Load a raw tag from the DICOM file
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
719
diff
changeset
|
1441 { |
d380222b4c2a
Load a raw tag from the DICOM file
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
719
diff
changeset
|
1442 #ifdef LAAW_EXTERNC_START_FUNCTION |
d380222b4c2a
Load a raw tag from the DICOM file
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
719
diff
changeset
|
1443 LAAW_EXTERNC_START_FUNCTION; |
d380222b4c2a
Load a raw tag from the DICOM file
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
719
diff
changeset
|
1444 #endif |
d380222b4c2a
Load a raw tag from the DICOM file
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
719
diff
changeset
|
1445 |
d380222b4c2a
Load a raw tag from the DICOM file
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
719
diff
changeset
|
1446 OrthancClient::Instance* this_ = static_cast<OrthancClient::Instance*>(thisObject); |
d380222b4c2a
Load a raw tag from the DICOM file
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
719
diff
changeset
|
1447 this_->LoadTagContent(reinterpret_cast< const char* >(arg0)); |
d380222b4c2a
Load a raw tag from the DICOM file
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
719
diff
changeset
|
1448 |
d380222b4c2a
Load a raw tag from the DICOM file
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
719
diff
changeset
|
1449 return NULL; |
d380222b4c2a
Load a raw tag from the DICOM file
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
719
diff
changeset
|
1450 } |
d380222b4c2a
Load a raw tag from the DICOM file
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
719
diff
changeset
|
1451 catch (::Laaw::LaawException& e) |
d380222b4c2a
Load a raw tag from the DICOM file
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
719
diff
changeset
|
1452 { |
d380222b4c2a
Load a raw tag from the DICOM file
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
719
diff
changeset
|
1453 return LAAW_EXTERNC_CopyString(e.What()); |
d380222b4c2a
Load a raw tag from the DICOM file
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
719
diff
changeset
|
1454 } |
d380222b4c2a
Load a raw tag from the DICOM file
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
719
diff
changeset
|
1455 catch (...) |
d380222b4c2a
Load a raw tag from the DICOM file
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
719
diff
changeset
|
1456 { |
d380222b4c2a
Load a raw tag from the DICOM file
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
719
diff
changeset
|
1457 return LAAW_EXTERNC_CopyString("..."); |
d380222b4c2a
Load a raw tag from the DICOM file
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
719
diff
changeset
|
1458 } |
d380222b4c2a
Load a raw tag from the DICOM file
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
719
diff
changeset
|
1459 } |
d380222b4c2a
Load a raw tag from the DICOM file
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
719
diff
changeset
|
1460 |
d380222b4c2a
Load a raw tag from the DICOM file
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
719
diff
changeset
|
1461 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_bb55aaf772ddceaadee36f4e54136bcb(const void* thisObject, const char** result) |
d380222b4c2a
Load a raw tag from the DICOM file
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
719
diff
changeset
|
1462 { |
d380222b4c2a
Load a raw tag from the DICOM file
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
719
diff
changeset
|
1463 try |
d380222b4c2a
Load a raw tag from the DICOM file
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
719
diff
changeset
|
1464 { |
d380222b4c2a
Load a raw tag from the DICOM file
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
719
diff
changeset
|
1465 #ifdef LAAW_EXTERNC_START_FUNCTION |
d380222b4c2a
Load a raw tag from the DICOM file
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
719
diff
changeset
|
1466 LAAW_EXTERNC_START_FUNCTION; |
d380222b4c2a
Load a raw tag from the DICOM file
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
719
diff
changeset
|
1467 #endif |
d380222b4c2a
Load a raw tag from the DICOM file
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
719
diff
changeset
|
1468 |
d380222b4c2a
Load a raw tag from the DICOM file
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
719
diff
changeset
|
1469 const OrthancClient::Instance* this_ = static_cast<const OrthancClient::Instance*>(thisObject); |
d380222b4c2a
Load a raw tag from the DICOM file
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
719
diff
changeset
|
1470 *result = this_->GetLoadedTagContent(); |
d380222b4c2a
Load a raw tag from the DICOM file
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
719
diff
changeset
|
1471 |
d380222b4c2a
Load a raw tag from the DICOM file
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
719
diff
changeset
|
1472 return NULL; |
d380222b4c2a
Load a raw tag from the DICOM file
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
719
diff
changeset
|
1473 } |
d380222b4c2a
Load a raw tag from the DICOM file
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
719
diff
changeset
|
1474 catch (::Laaw::LaawException& e) |
d380222b4c2a
Load a raw tag from the DICOM file
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
719
diff
changeset
|
1475 { |
d380222b4c2a
Load a raw tag from the DICOM file
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
719
diff
changeset
|
1476 return LAAW_EXTERNC_CopyString(e.What()); |
d380222b4c2a
Load a raw tag from the DICOM file
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
719
diff
changeset
|
1477 } |
d380222b4c2a
Load a raw tag from the DICOM file
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
719
diff
changeset
|
1478 catch (...) |
d380222b4c2a
Load a raw tag from the DICOM file
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
719
diff
changeset
|
1479 { |
d380222b4c2a
Load a raw tag from the DICOM file
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
719
diff
changeset
|
1480 return LAAW_EXTERNC_CopyString("..."); |
d380222b4c2a
Load a raw tag from the DICOM file
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
719
diff
changeset
|
1481 } |
d380222b4c2a
Load a raw tag from the DICOM file
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
719
diff
changeset
|
1482 } |
d380222b4c2a
Load a raw tag from the DICOM file
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
719
diff
changeset
|
1483 |
528 | 1484 |
1485 LAAW_EXPORT_DLL_API const char* LAAW_CALL_CONVENTION LAAW_EXTERNC_GetDescription() | |
1486 { | |
1487 return "Native client to the REST API of Orthanc"; | |
1488 } | |
1489 | |
1490 LAAW_EXPORT_DLL_API const char* LAAW_CALL_CONVENTION LAAW_EXTERNC_GetCompany() | |
1491 { | |
1492 return "CHU of Liege"; | |
1493 } | |
1494 | |
1495 LAAW_EXPORT_DLL_API const char* LAAW_CALL_CONVENTION LAAW_EXTERNC_GetProduct() | |
1496 { | |
1497 return "OrthancClient"; | |
1498 } | |
1499 | |
1500 LAAW_EXPORT_DLL_API const char* LAAW_CALL_CONVENTION LAAW_EXTERNC_GetCopyright() | |
1501 { | |
1106 | 1502 return "(c) 2012-2014, Sebastien Jodogne, University Hospital of Liege"; |
528 | 1503 } |
1504 | |
1505 LAAW_EXPORT_DLL_API const char* LAAW_CALL_CONVENTION LAAW_EXTERNC_GetVersion() | |
1506 { | |
1034 | 1507 return "0.8"; |
528 | 1508 } |
1509 | |
1510 LAAW_EXPORT_DLL_API const char* LAAW_CALL_CONVENTION LAAW_EXTERNC_GetFileVersion() | |
1511 { | |
1168 | 1512 return "0.8.0.4"; |
528 | 1513 } |
1514 | |
1515 LAAW_EXPORT_DLL_API const char* LAAW_CALL_CONVENTION LAAW_EXTERNC_GetFullVersion() | |
1516 { | |
1168 | 1517 return "0.8.4"; |
528 | 1518 } |
1519 | |
1520 LAAW_EXPORT_DLL_API void LAAW_CALL_CONVENTION LAAW_EXTERNC_FreeString(char* str) | |
1521 { | |
1522 if (str != NULL) | |
1523 free(str); | |
1524 } | |
1525 } |