Mercurial > hg > orthanc
comparison OrthancCppClient/SharedLibrary/AUTOGENERATED/ExternC.cpp @ 575:6f01dd71b601 laaw
rename
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 30 Sep 2013 13:50:49 +0200 |
parents | OrthancCppClient/Package/AUTOGENERATED/ExternC.cpp@ec2c2411d4db |
children | 9d2592c08919 |
comparison
equal
deleted
inserted
replaced
574:11b1eec09336 | 575:6f01dd71b601 |
---|---|
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 | |
33 #include <laaw.h> | |
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 | |
158 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_d7497fd24e4b453f2965bae9ef8330b0(void* thisObject) | |
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); | |
167 this_->Refresh(); | |
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 | |
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 | |
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_152cb1b704c053d24b0dab7461ba6ea3(void* thisObject, int32_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_->Is3DImage(); | |
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_852bf8296ca21c5fde5ec565cc10721d(void* thisObject, uint32_t* result) | |
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_->GetInstanceCount(); | |
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_efd04574e0779faa83df1f2d8f9888db(void* thisObject, void** result, uint32_t arg0) | |
592 { | |
593 try | |
594 { | |
595 #ifdef LAAW_EXTERNC_START_FUNCTION | |
596 LAAW_EXTERNC_START_FUNCTION; | |
597 #endif | |
598 | |
599 OrthancClient::Series* this_ = static_cast<OrthancClient::Series*>(thisObject); | |
600 *result = &this_->GetInstance(arg0); | |
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_736247ff5e8036dac38163da6f666ed5(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_->GetId(); | |
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 | |
637 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_d82d2598a7a73f4b6fcc0c09c25b08ca(const void* thisObject, const char** result) | |
638 { | |
639 try | |
640 { | |
641 #ifdef LAAW_EXTERNC_START_FUNCTION | |
642 LAAW_EXTERNC_START_FUNCTION; | |
643 #endif | |
644 | |
645 const OrthancClient::Series* this_ = static_cast<const OrthancClient::Series*>(thisObject); | |
646 *result = this_->GetUrl(); | |
647 | |
648 return NULL; | |
649 } | |
650 catch (::Laaw::LaawException& e) | |
651 { | |
652 return LAAW_EXTERNC_CopyString(e.What()); | |
653 } | |
654 catch (...) | |
655 { | |
656 return LAAW_EXTERNC_CopyString("..."); | |
657 } | |
658 } | |
659 | |
660 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_eee03f337ec81d9f1783cd41e5238757(void* thisObject, uint32_t* result) | |
661 { | |
662 try | |
663 { | |
664 #ifdef LAAW_EXTERNC_START_FUNCTION | |
665 LAAW_EXTERNC_START_FUNCTION; | |
666 #endif | |
667 | |
668 OrthancClient::Series* this_ = static_cast<OrthancClient::Series*>(thisObject); | |
669 *result = this_->GetWidth(); | |
670 | |
671 return NULL; | |
672 } | |
673 catch (::Laaw::LaawException& e) | |
674 { | |
675 return LAAW_EXTERNC_CopyString(e.What()); | |
676 } | |
677 catch (...) | |
678 { | |
679 return LAAW_EXTERNC_CopyString("..."); | |
680 } | |
681 } | |
682 | |
683 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_006f08237bd7611636fc721baebfb4c5(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_->GetHeight(); | |
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_b794f5cd3dad7d7b575dd1fd902afdd0(void* thisObject, float* 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_->GetVoxelSizeX(); | |
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_8ee2e50dd9df8f66a3c1766090dd03ab(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_->GetVoxelSizeY(); | |
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_046aed35bbe4751691f4c34cc249a61d(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_->GetVoxelSizeZ(); | |
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_88134b978f9acb2aecdadf54aeab3c64(const void* thisObject, const char** result, const char* arg0, const char* arg1) | |
776 { | |
777 try | |
778 { | |
779 #ifdef LAAW_EXTERNC_START_FUNCTION | |
780 LAAW_EXTERNC_START_FUNCTION; | |
781 #endif | |
782 | |
783 const OrthancClient::Series* this_ = static_cast<const OrthancClient::Series*>(thisObject); | |
784 *result = this_->GetMainDicomTag(reinterpret_cast< const char* >(arg0), reinterpret_cast< const char* >(arg1)); | |
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 | |
798 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_4dcc7a0fd025efba251ac6e9b701c2c5(void* thisObject, void* arg0, int32_t arg1, int64_t arg2, int64_t arg3) | |
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 this_->Load3DImage(reinterpret_cast< void* >(arg0), static_cast< ::Orthanc::PixelFormat >(arg1), arg2, arg3); | |
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 | |
821 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) | |
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, reinterpret_cast< float* >(arg4)); | |
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 | |
844 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_b01c6003238eb46c8db5dc823d7ca678(void** newObject, void* arg0, const char* arg1) | |
845 { | |
846 try | |
847 { | |
848 #ifdef LAAW_EXTERNC_START_FUNCTION | |
849 LAAW_EXTERNC_START_FUNCTION; | |
850 #endif | |
851 | |
852 *newObject = new OrthancClient::Study(*reinterpret_cast< ::OrthancClient::OrthancConnection* >(arg0), reinterpret_cast< const char* >(arg1)); | |
853 | |
854 return NULL; | |
855 } | |
856 catch (::Laaw::LaawException& e) | |
857 { | |
858 return LAAW_EXTERNC_CopyString(e.What()); | |
859 } | |
860 catch (...) | |
861 { | |
862 return LAAW_EXTERNC_CopyString("..."); | |
863 } | |
864 } | |
865 | |
866 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_0147007fb99bad8cd95a139ec8795376(void* thisObject) | |
867 { | |
868 try | |
869 { | |
870 #ifdef LAAW_EXTERNC_START_FUNCTION | |
871 LAAW_EXTERNC_START_FUNCTION; | |
872 #endif | |
873 | |
874 delete static_cast<OrthancClient::Study*>(thisObject); | |
875 | |
876 return NULL; | |
877 } | |
878 catch (::Laaw::LaawException& e) | |
879 { | |
880 return LAAW_EXTERNC_CopyString(e.What()); | |
881 } | |
882 catch (...) | |
883 { | |
884 return LAAW_EXTERNC_CopyString("..."); | |
885 } | |
886 } | |
887 | |
888 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_e65b20b7e0170b67544cd6664a4639b7(void* thisObject) | |
889 { | |
890 try | |
891 { | |
892 #ifdef LAAW_EXTERNC_START_FUNCTION | |
893 LAAW_EXTERNC_START_FUNCTION; | |
894 #endif | |
895 | |
896 OrthancClient::Study* this_ = static_cast<OrthancClient::Study*>(thisObject); | |
897 this_->Reload(); | |
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_470e981b0e41f17231ba0ae6f3033321(void* thisObject, uint32_t* result) | |
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 *result = this_->GetSeriesCount(); | |
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_04cefd138b6ea15ad909858f2a0a8f05(void* thisObject, void** result, uint32_t arg0) | |
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_->GetSeries(arg0); | |
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_aee5b1f6f0c082f2c3b0986f9f6a18c7(const void* thisObject, const char** result) | |
958 { | |
959 try | |
960 { | |
961 #ifdef LAAW_EXTERNC_START_FUNCTION | |
962 LAAW_EXTERNC_START_FUNCTION; | |
963 #endif | |
964 | |
965 const OrthancClient::Study* this_ = static_cast<const OrthancClient::Study*>(thisObject); | |
966 *result = this_->GetId(); | |
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_93965682bace75491413e1f0b8d5a654(const void* thisObject, const char** result, const char* arg0, const char* arg1) | |
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_->GetMainDicomTag(reinterpret_cast< const char* >(arg0), reinterpret_cast< const char* >(arg1)); | |
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_6c5ad02f91b583e29cebd0bd319ce21d(void** newObject, void* arg0, const char* arg1) | |
1004 { | |
1005 try | |
1006 { | |
1007 #ifdef LAAW_EXTERNC_START_FUNCTION | |
1008 LAAW_EXTERNC_START_FUNCTION; | |
1009 #endif | |
1010 | |
1011 *newObject = new OrthancClient::Instance(*reinterpret_cast< ::OrthancClient::OrthancConnection* >(arg0), reinterpret_cast< const char* >(arg1)); | |
1012 | |
1013 return NULL; | |
1014 } | |
1015 catch (::Laaw::LaawException& e) | |
1016 { | |
1017 return LAAW_EXTERNC_CopyString(e.What()); | |
1018 } | |
1019 catch (...) | |
1020 { | |
1021 return LAAW_EXTERNC_CopyString("..."); | |
1022 } | |
1023 } | |
1024 | |
1025 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_4068241c44a9c1367fe0e57be523f207(void* thisObject) | |
1026 { | |
1027 try | |
1028 { | |
1029 #ifdef LAAW_EXTERNC_START_FUNCTION | |
1030 LAAW_EXTERNC_START_FUNCTION; | |
1031 #endif | |
1032 | |
1033 delete static_cast<OrthancClient::Instance*>(thisObject); | |
1034 | |
1035 return NULL; | |
1036 } | |
1037 catch (::Laaw::LaawException& e) | |
1038 { | |
1039 return LAAW_EXTERNC_CopyString(e.What()); | |
1040 } | |
1041 catch (...) | |
1042 { | |
1043 return LAAW_EXTERNC_CopyString("..."); | |
1044 } | |
1045 } | |
1046 | |
1047 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_236ee8b403bc99535a8a4695c0cd45cb(const void* thisObject, const char** result) | |
1048 { | |
1049 try | |
1050 { | |
1051 #ifdef LAAW_EXTERNC_START_FUNCTION | |
1052 LAAW_EXTERNC_START_FUNCTION; | |
1053 #endif | |
1054 | |
1055 const OrthancClient::Instance* this_ = static_cast<const OrthancClient::Instance*>(thisObject); | |
1056 *result = this_->GetId(); | |
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_2a437b7aba6bb01e81113835be8f0146(void* thisObject, int32_t arg0) | |
1071 { | |
1072 try | |
1073 { | |
1074 #ifdef LAAW_EXTERNC_START_FUNCTION | |
1075 LAAW_EXTERNC_START_FUNCTION; | |
1076 #endif | |
1077 | |
1078 OrthancClient::Instance* this_ = static_cast<OrthancClient::Instance*>(thisObject); | |
1079 this_->SetImageExtractionMode(static_cast< ::Orthanc::ImageExtractionMode >(arg0)); | |
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_2bcbcb850934ae0bb4c6f0cc940e6cda(const void* thisObject, int32_t* result) | |
1094 { | |
1095 try | |
1096 { | |
1097 #ifdef LAAW_EXTERNC_START_FUNCTION | |
1098 LAAW_EXTERNC_START_FUNCTION; | |
1099 #endif | |
1100 | |
1101 const OrthancClient::Instance* this_ = static_cast<const OrthancClient::Instance*>(thisObject); | |
1102 *result = this_->GetImageExtractionMode(); | |
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_8d415c3a78a48e7e61d9fd24e7c79484(const void* thisObject, const char** result, const char* arg0) | |
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_->GetTagAsString(reinterpret_cast< const char* >(arg0)); | |
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_70d2f8398bbc63b5f792b69b4ad5fecb(const void* thisObject, float* 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_->GetTagAsFloat(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_1729a067d902771517388eedd7346b23(const void* thisObject, int32_t* 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_->GetTagAsInt(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_72e2aeee66cd3abd8ab7e987321c3745(void* thisObject, uint32_t* result) | |
1186 { | |
1187 try | |
1188 { | |
1189 #ifdef LAAW_EXTERNC_START_FUNCTION | |
1190 LAAW_EXTERNC_START_FUNCTION; | |
1191 #endif | |
1192 | |
1193 OrthancClient::Instance* this_ = static_cast<OrthancClient::Instance*>(thisObject); | |
1194 *result = this_->GetWidth(); | |
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_1ea3df5a1ac1a1a687fe7325adddb6f0(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_->GetHeight(); | |
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_99b4f370e4f532d8b763e2cb49db92f8(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_->GetPitch(); | |
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_c41c742b68617f1c0590577a0a5ebc0c(void* thisObject, int32_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_->GetPixelFormat(); | |
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_142dd2feba0fc1d262bbd0baeb441a8b(void* thisObject, const void** 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_->GetBuffer(); | |
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_5f5c9f81a4dff8daa6c359f1d0488fef(void* thisObject, const void** result, uint32_t arg0) | |
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(arg0); | |
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_c0f494b80d4ff8b232df7a75baa0700a(void* thisObject) | |
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 this_->DiscardImage(); | |
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 | |
1346 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_d604f44bd5195e082e745e9cbc164f4c(void* thisObject) | |
1347 { | |
1348 try | |
1349 { | |
1350 #ifdef LAAW_EXTERNC_START_FUNCTION | |
1351 LAAW_EXTERNC_START_FUNCTION; | |
1352 #endif | |
1353 | |
1354 OrthancClient::Instance* this_ = static_cast<OrthancClient::Instance*>(thisObject); | |
1355 this_->DiscardDicom(); | |
1356 | |
1357 return NULL; | |
1358 } | |
1359 catch (::Laaw::LaawException& e) | |
1360 { | |
1361 return LAAW_EXTERNC_CopyString(e.What()); | |
1362 } | |
1363 catch (...) | |
1364 { | |
1365 return LAAW_EXTERNC_CopyString("..."); | |
1366 } | |
1367 } | |
1368 | |
1369 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_9ca979fffd08fa256306d4e68d8b0e91(void* thisObject, uint64_t* result) | |
1370 { | |
1371 try | |
1372 { | |
1373 #ifdef LAAW_EXTERNC_START_FUNCTION | |
1374 LAAW_EXTERNC_START_FUNCTION; | |
1375 #endif | |
1376 | |
1377 OrthancClient::Instance* this_ = static_cast<OrthancClient::Instance*>(thisObject); | |
1378 *result = this_->GetDicomSize(); | |
1379 | |
1380 return NULL; | |
1381 } | |
1382 catch (::Laaw::LaawException& e) | |
1383 { | |
1384 return LAAW_EXTERNC_CopyString(e.What()); | |
1385 } | |
1386 catch (...) | |
1387 { | |
1388 return LAAW_EXTERNC_CopyString("..."); | |
1389 } | |
1390 } | |
1391 | |
1392 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_6f2d77a26edc91c28d89408dbc3c271e(void* thisObject, const void** result) | |
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 *result = this_->GetDicom(); | |
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 | |
1415 | |
1416 LAAW_EXPORT_DLL_API const char* LAAW_CALL_CONVENTION LAAW_EXTERNC_GetDescription() | |
1417 { | |
1418 return "Native client to the REST API of Orthanc"; | |
1419 } | |
1420 | |
1421 LAAW_EXPORT_DLL_API const char* LAAW_CALL_CONVENTION LAAW_EXTERNC_GetCompany() | |
1422 { | |
1423 return "CHU of Liege"; | |
1424 } | |
1425 | |
1426 LAAW_EXPORT_DLL_API const char* LAAW_CALL_CONVENTION LAAW_EXTERNC_GetProduct() | |
1427 { | |
1428 return "OrthancClient"; | |
1429 } | |
1430 | |
1431 LAAW_EXPORT_DLL_API const char* LAAW_CALL_CONVENTION LAAW_EXTERNC_GetCopyright() | |
1432 { | |
1433 return "(c) 2012-2013, Sebastien Jodogne, CHU of Liege"; | |
1434 } | |
1435 | |
1436 LAAW_EXPORT_DLL_API const char* LAAW_CALL_CONVENTION LAAW_EXTERNC_GetVersion() | |
1437 { | |
1438 return "0.6"; | |
1439 } | |
1440 | |
1441 LAAW_EXPORT_DLL_API const char* LAAW_CALL_CONVENTION LAAW_EXTERNC_GetFileVersion() | |
1442 { | |
1443 return "0.6.0.1"; | |
1444 } | |
1445 | |
1446 LAAW_EXPORT_DLL_API const char* LAAW_CALL_CONVENTION LAAW_EXTERNC_GetFullVersion() | |
1447 { | |
1448 return "0.6.1"; | |
1449 } | |
1450 | |
1451 LAAW_EXPORT_DLL_API void LAAW_CALL_CONVENTION LAAW_EXTERNC_FreeString(char* str) | |
1452 { | |
1453 if (str != NULL) | |
1454 free(str); | |
1455 } | |
1456 } |