Mercurial > hg > orthanc
comparison OrthancCppClient/Package/AUTOGENERATED/ExternC.cpp @ 528:a65f808de5bd laaw
packaging
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 19 Jul 2013 16:58:42 +0200 |
parents | |
children | eaca3d38b2aa |
comparison
equal
deleted
inserted
replaced
525:ff8bee6459cd | 528:a65f808de5bd |
---|---|
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_e05097c153f676e5a5ee54dcfc78256f(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_->Reload(); | |
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_6cf0d7268667f9b0aa4511bacf184919(void** newObject, void* arg0, const char* arg1) | |
251 { | |
252 try | |
253 { | |
254 #ifdef LAAW_EXTERNC_START_FUNCTION | |
255 LAAW_EXTERNC_START_FUNCTION; | |
256 #endif | |
257 | |
258 *newObject = new OrthancClient::Patient(*reinterpret_cast< ::OrthancClient::OrthancConnection* >(arg0), reinterpret_cast< const char* >(arg1)); | |
259 | |
260 return NULL; | |
261 } | |
262 catch (::Laaw::LaawException& e) | |
263 { | |
264 return LAAW_EXTERNC_CopyString(e.What()); | |
265 } | |
266 catch (...) | |
267 { | |
268 return LAAW_EXTERNC_CopyString("..."); | |
269 } | |
270 } | |
271 | |
272 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_7d81cd502ee27e859735d0ea7112b5a1(void* thisObject) | |
273 { | |
274 try | |
275 { | |
276 #ifdef LAAW_EXTERNC_START_FUNCTION | |
277 LAAW_EXTERNC_START_FUNCTION; | |
278 #endif | |
279 | |
280 delete static_cast<OrthancClient::Patient*>(thisObject); | |
281 | |
282 return NULL; | |
283 } | |
284 catch (::Laaw::LaawException& e) | |
285 { | |
286 return LAAW_EXTERNC_CopyString(e.What()); | |
287 } | |
288 catch (...) | |
289 { | |
290 return LAAW_EXTERNC_CopyString("..."); | |
291 } | |
292 } | |
293 | |
294 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_f756172daf04516eec3a566adabb4335(void* thisObject) | |
295 { | |
296 try | |
297 { | |
298 #ifdef LAAW_EXTERNC_START_FUNCTION | |
299 LAAW_EXTERNC_START_FUNCTION; | |
300 #endif | |
301 | |
302 OrthancClient::Patient* this_ = static_cast<OrthancClient::Patient*>(thisObject); | |
303 this_->Reload(); | |
304 | |
305 return NULL; | |
306 } | |
307 catch (::Laaw::LaawException& e) | |
308 { | |
309 return LAAW_EXTERNC_CopyString(e.What()); | |
310 } | |
311 catch (...) | |
312 { | |
313 return LAAW_EXTERNC_CopyString("..."); | |
314 } | |
315 } | |
316 | |
317 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_ddb68763ec902a97d579666a73a20118(void* thisObject, uint32_t* result) | |
318 { | |
319 try | |
320 { | |
321 #ifdef LAAW_EXTERNC_START_FUNCTION | |
322 LAAW_EXTERNC_START_FUNCTION; | |
323 #endif | |
324 | |
325 OrthancClient::Patient* this_ = static_cast<OrthancClient::Patient*>(thisObject); | |
326 *result = this_->GetStudyCount(); | |
327 | |
328 return NULL; | |
329 } | |
330 catch (::Laaw::LaawException& e) | |
331 { | |
332 return LAAW_EXTERNC_CopyString(e.What()); | |
333 } | |
334 catch (...) | |
335 { | |
336 return LAAW_EXTERNC_CopyString("..."); | |
337 } | |
338 } | |
339 | |
340 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_fba3c68b4be7558dbc65f7ce1ab57d63(void* thisObject, void** result, uint32_t arg0) | |
341 { | |
342 try | |
343 { | |
344 #ifdef LAAW_EXTERNC_START_FUNCTION | |
345 LAAW_EXTERNC_START_FUNCTION; | |
346 #endif | |
347 | |
348 OrthancClient::Patient* this_ = static_cast<OrthancClient::Patient*>(thisObject); | |
349 *result = &this_->GetStudy(arg0); | |
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_b4ca99d958f843493e58d1ef967340e1(const void* thisObject, const char** result) | |
364 { | |
365 try | |
366 { | |
367 #ifdef LAAW_EXTERNC_START_FUNCTION | |
368 LAAW_EXTERNC_START_FUNCTION; | |
369 #endif | |
370 | |
371 const OrthancClient::Patient* this_ = static_cast<const OrthancClient::Patient*>(thisObject); | |
372 *result = this_->GetId(); | |
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_78d5cc76d282437b6f93ec3b82c35701(const void* thisObject, const char** result, const char* arg0, const char* arg1) | |
387 { | |
388 try | |
389 { | |
390 #ifdef LAAW_EXTERNC_START_FUNCTION | |
391 LAAW_EXTERNC_START_FUNCTION; | |
392 #endif | |
393 | |
394 const OrthancClient::Patient* this_ = static_cast<const OrthancClient::Patient*>(thisObject); | |
395 *result = this_->GetMainDicomTag(reinterpret_cast< const char* >(arg0), reinterpret_cast< const char* >(arg1)); | |
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_193599b9e345384fcdfcd47c29c55342(void** newObject, void* arg0, const char* arg1) | |
410 { | |
411 try | |
412 { | |
413 #ifdef LAAW_EXTERNC_START_FUNCTION | |
414 LAAW_EXTERNC_START_FUNCTION; | |
415 #endif | |
416 | |
417 *newObject = new OrthancClient::Series(*reinterpret_cast< ::OrthancClient::OrthancConnection* >(arg0), reinterpret_cast< const char* >(arg1)); | |
418 | |
419 return NULL; | |
420 } | |
421 catch (::Laaw::LaawException& e) | |
422 { | |
423 return LAAW_EXTERNC_CopyString(e.What()); | |
424 } | |
425 catch (...) | |
426 { | |
427 return LAAW_EXTERNC_CopyString("..."); | |
428 } | |
429 } | |
430 | |
431 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_7c97f17063a357d38c5fab1136ad12a0(void* thisObject) | |
432 { | |
433 try | |
434 { | |
435 #ifdef LAAW_EXTERNC_START_FUNCTION | |
436 LAAW_EXTERNC_START_FUNCTION; | |
437 #endif | |
438 | |
439 delete static_cast<OrthancClient::Series*>(thisObject); | |
440 | |
441 return NULL; | |
442 } | |
443 catch (::Laaw::LaawException& e) | |
444 { | |
445 return LAAW_EXTERNC_CopyString(e.What()); | |
446 } | |
447 catch (...) | |
448 { | |
449 return LAAW_EXTERNC_CopyString("..."); | |
450 } | |
451 } | |
452 | |
453 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_48a2a1a9d68c047e22bfba23014643d2(void* thisObject) | |
454 { | |
455 try | |
456 { | |
457 #ifdef LAAW_EXTERNC_START_FUNCTION | |
458 LAAW_EXTERNC_START_FUNCTION; | |
459 #endif | |
460 | |
461 OrthancClient::Series* this_ = static_cast<OrthancClient::Series*>(thisObject); | |
462 this_->Reload(); | |
463 | |
464 return NULL; | |
465 } | |
466 catch (::Laaw::LaawException& e) | |
467 { | |
468 return LAAW_EXTERNC_CopyString(e.What()); | |
469 } | |
470 catch (...) | |
471 { | |
472 return LAAW_EXTERNC_CopyString("..."); | |
473 } | |
474 } | |
475 | |
476 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_152cb1b704c053d24b0dab7461ba6ea3(void* thisObject, int32_t* result) | |
477 { | |
478 try | |
479 { | |
480 #ifdef LAAW_EXTERNC_START_FUNCTION | |
481 LAAW_EXTERNC_START_FUNCTION; | |
482 #endif | |
483 | |
484 OrthancClient::Series* this_ = static_cast<OrthancClient::Series*>(thisObject); | |
485 *result = this_->Is3DImage(); | |
486 | |
487 return NULL; | |
488 } | |
489 catch (::Laaw::LaawException& e) | |
490 { | |
491 return LAAW_EXTERNC_CopyString(e.What()); | |
492 } | |
493 catch (...) | |
494 { | |
495 return LAAW_EXTERNC_CopyString("..."); | |
496 } | |
497 } | |
498 | |
499 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_852bf8296ca21c5fde5ec565cc10721d(void* thisObject, uint32_t* result) | |
500 { | |
501 try | |
502 { | |
503 #ifdef LAAW_EXTERNC_START_FUNCTION | |
504 LAAW_EXTERNC_START_FUNCTION; | |
505 #endif | |
506 | |
507 OrthancClient::Series* this_ = static_cast<OrthancClient::Series*>(thisObject); | |
508 *result = this_->GetInstanceCount(); | |
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_efd04574e0779faa83df1f2d8f9888db(void* thisObject, void** result, uint32_t arg0) | |
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 *result = &this_->GetInstance(arg0); | |
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_736247ff5e8036dac38163da6f666ed5(const void* thisObject, const char** result) | |
546 { | |
547 try | |
548 { | |
549 #ifdef LAAW_EXTERNC_START_FUNCTION | |
550 LAAW_EXTERNC_START_FUNCTION; | |
551 #endif | |
552 | |
553 const OrthancClient::Series* this_ = static_cast<const OrthancClient::Series*>(thisObject); | |
554 *result = this_->GetId(); | |
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_d82d2598a7a73f4b6fcc0c09c25b08ca(const void* thisObject, const char** result) | |
569 { | |
570 try | |
571 { | |
572 #ifdef LAAW_EXTERNC_START_FUNCTION | |
573 LAAW_EXTERNC_START_FUNCTION; | |
574 #endif | |
575 | |
576 const OrthancClient::Series* this_ = static_cast<const OrthancClient::Series*>(thisObject); | |
577 *result = this_->GetUrl(); | |
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_eee03f337ec81d9f1783cd41e5238757(void* thisObject, uint32_t* result) | |
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_->GetWidth(); | |
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_006f08237bd7611636fc721baebfb4c5(void* thisObject, uint32_t* result) | |
615 { | |
616 try | |
617 { | |
618 #ifdef LAAW_EXTERNC_START_FUNCTION | |
619 LAAW_EXTERNC_START_FUNCTION; | |
620 #endif | |
621 | |
622 OrthancClient::Series* this_ = static_cast<OrthancClient::Series*>(thisObject); | |
623 *result = this_->GetHeight(); | |
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_b794f5cd3dad7d7b575dd1fd902afdd0(void* thisObject, float* result) | |
638 { | |
639 try | |
640 { | |
641 #ifdef LAAW_EXTERNC_START_FUNCTION | |
642 LAAW_EXTERNC_START_FUNCTION; | |
643 #endif | |
644 | |
645 OrthancClient::Series* this_ = static_cast<OrthancClient::Series*>(thisObject); | |
646 *result = this_->GetVoxelSizeX(); | |
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_8ee2e50dd9df8f66a3c1766090dd03ab(void* thisObject, float* 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_->GetVoxelSizeY(); | |
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_046aed35bbe4751691f4c34cc249a61d(void* thisObject, float* 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_->GetVoxelSizeZ(); | |
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_88134b978f9acb2aecdadf54aeab3c64(const void* thisObject, const char** result, const char* arg0, const char* arg1) | |
707 { | |
708 try | |
709 { | |
710 #ifdef LAAW_EXTERNC_START_FUNCTION | |
711 LAAW_EXTERNC_START_FUNCTION; | |
712 #endif | |
713 | |
714 const OrthancClient::Series* this_ = static_cast<const OrthancClient::Series*>(thisObject); | |
715 *result = this_->GetMainDicomTag(reinterpret_cast< const char* >(arg0), reinterpret_cast< const char* >(arg1)); | |
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_4dcc7a0fd025efba251ac6e9b701c2c5(void* thisObject, void* arg0, int32_t arg1, int64_t arg2, int64_t arg3) | |
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 this_->Load3DImage(reinterpret_cast< void* >(arg0), static_cast< ::Orthanc::PixelFormat >(arg1), arg2, arg3); | |
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_b01c6003238eb46c8db5dc823d7ca678(void** newObject, void* arg0, const char* arg1) | |
753 { | |
754 try | |
755 { | |
756 #ifdef LAAW_EXTERNC_START_FUNCTION | |
757 LAAW_EXTERNC_START_FUNCTION; | |
758 #endif | |
759 | |
760 *newObject = new OrthancClient::Study(*reinterpret_cast< ::OrthancClient::OrthancConnection* >(arg0), reinterpret_cast< const char* >(arg1)); | |
761 | |
762 return NULL; | |
763 } | |
764 catch (::Laaw::LaawException& e) | |
765 { | |
766 return LAAW_EXTERNC_CopyString(e.What()); | |
767 } | |
768 catch (...) | |
769 { | |
770 return LAAW_EXTERNC_CopyString("..."); | |
771 } | |
772 } | |
773 | |
774 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_0147007fb99bad8cd95a139ec8795376(void* thisObject) | |
775 { | |
776 try | |
777 { | |
778 #ifdef LAAW_EXTERNC_START_FUNCTION | |
779 LAAW_EXTERNC_START_FUNCTION; | |
780 #endif | |
781 | |
782 delete static_cast<OrthancClient::Study*>(thisObject); | |
783 | |
784 return NULL; | |
785 } | |
786 catch (::Laaw::LaawException& e) | |
787 { | |
788 return LAAW_EXTERNC_CopyString(e.What()); | |
789 } | |
790 catch (...) | |
791 { | |
792 return LAAW_EXTERNC_CopyString("..."); | |
793 } | |
794 } | |
795 | |
796 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_e65b20b7e0170b67544cd6664a4639b7(void* thisObject) | |
797 { | |
798 try | |
799 { | |
800 #ifdef LAAW_EXTERNC_START_FUNCTION | |
801 LAAW_EXTERNC_START_FUNCTION; | |
802 #endif | |
803 | |
804 OrthancClient::Study* this_ = static_cast<OrthancClient::Study*>(thisObject); | |
805 this_->Reload(); | |
806 | |
807 return NULL; | |
808 } | |
809 catch (::Laaw::LaawException& e) | |
810 { | |
811 return LAAW_EXTERNC_CopyString(e.What()); | |
812 } | |
813 catch (...) | |
814 { | |
815 return LAAW_EXTERNC_CopyString("..."); | |
816 } | |
817 } | |
818 | |
819 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_470e981b0e41f17231ba0ae6f3033321(void* thisObject, uint32_t* result) | |
820 { | |
821 try | |
822 { | |
823 #ifdef LAAW_EXTERNC_START_FUNCTION | |
824 LAAW_EXTERNC_START_FUNCTION; | |
825 #endif | |
826 | |
827 OrthancClient::Study* this_ = static_cast<OrthancClient::Study*>(thisObject); | |
828 *result = this_->GetSeriesCount(); | |
829 | |
830 return NULL; | |
831 } | |
832 catch (::Laaw::LaawException& e) | |
833 { | |
834 return LAAW_EXTERNC_CopyString(e.What()); | |
835 } | |
836 catch (...) | |
837 { | |
838 return LAAW_EXTERNC_CopyString("..."); | |
839 } | |
840 } | |
841 | |
842 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_04cefd138b6ea15ad909858f2a0a8f05(void* thisObject, void** result, uint32_t arg0) | |
843 { | |
844 try | |
845 { | |
846 #ifdef LAAW_EXTERNC_START_FUNCTION | |
847 LAAW_EXTERNC_START_FUNCTION; | |
848 #endif | |
849 | |
850 OrthancClient::Study* this_ = static_cast<OrthancClient::Study*>(thisObject); | |
851 *result = &this_->GetSeries(arg0); | |
852 | |
853 return NULL; | |
854 } | |
855 catch (::Laaw::LaawException& e) | |
856 { | |
857 return LAAW_EXTERNC_CopyString(e.What()); | |
858 } | |
859 catch (...) | |
860 { | |
861 return LAAW_EXTERNC_CopyString("..."); | |
862 } | |
863 } | |
864 | |
865 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_aee5b1f6f0c082f2c3b0986f9f6a18c7(const void* thisObject, const char** result) | |
866 { | |
867 try | |
868 { | |
869 #ifdef LAAW_EXTERNC_START_FUNCTION | |
870 LAAW_EXTERNC_START_FUNCTION; | |
871 #endif | |
872 | |
873 const OrthancClient::Study* this_ = static_cast<const OrthancClient::Study*>(thisObject); | |
874 *result = this_->GetId(); | |
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_93965682bace75491413e1f0b8d5a654(const void* thisObject, const char** result, const char* arg0, const char* arg1) | |
889 { | |
890 try | |
891 { | |
892 #ifdef LAAW_EXTERNC_START_FUNCTION | |
893 LAAW_EXTERNC_START_FUNCTION; | |
894 #endif | |
895 | |
896 const OrthancClient::Study* this_ = static_cast<const OrthancClient::Study*>(thisObject); | |
897 *result = this_->GetMainDicomTag(reinterpret_cast< const char* >(arg0), reinterpret_cast< const char* >(arg1)); | |
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_6c5ad02f91b583e29cebd0bd319ce21d(void** newObject, void* arg0, const char* arg1) | |
912 { | |
913 try | |
914 { | |
915 #ifdef LAAW_EXTERNC_START_FUNCTION | |
916 LAAW_EXTERNC_START_FUNCTION; | |
917 #endif | |
918 | |
919 *newObject = new OrthancClient::Instance(*reinterpret_cast< ::OrthancClient::OrthancConnection* >(arg0), reinterpret_cast< const char* >(arg1)); | |
920 | |
921 return NULL; | |
922 } | |
923 catch (::Laaw::LaawException& e) | |
924 { | |
925 return LAAW_EXTERNC_CopyString(e.What()); | |
926 } | |
927 catch (...) | |
928 { | |
929 return LAAW_EXTERNC_CopyString("..."); | |
930 } | |
931 } | |
932 | |
933 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_4068241c44a9c1367fe0e57be523f207(void* thisObject) | |
934 { | |
935 try | |
936 { | |
937 #ifdef LAAW_EXTERNC_START_FUNCTION | |
938 LAAW_EXTERNC_START_FUNCTION; | |
939 #endif | |
940 | |
941 delete static_cast<OrthancClient::Instance*>(thisObject); | |
942 | |
943 return NULL; | |
944 } | |
945 catch (::Laaw::LaawException& e) | |
946 { | |
947 return LAAW_EXTERNC_CopyString(e.What()); | |
948 } | |
949 catch (...) | |
950 { | |
951 return LAAW_EXTERNC_CopyString("..."); | |
952 } | |
953 } | |
954 | |
955 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_236ee8b403bc99535a8a4695c0cd45cb(const void* thisObject, const char** result) | |
956 { | |
957 try | |
958 { | |
959 #ifdef LAAW_EXTERNC_START_FUNCTION | |
960 LAAW_EXTERNC_START_FUNCTION; | |
961 #endif | |
962 | |
963 const OrthancClient::Instance* this_ = static_cast<const OrthancClient::Instance*>(thisObject); | |
964 *result = this_->GetId(); | |
965 | |
966 return NULL; | |
967 } | |
968 catch (::Laaw::LaawException& e) | |
969 { | |
970 return LAAW_EXTERNC_CopyString(e.What()); | |
971 } | |
972 catch (...) | |
973 { | |
974 return LAAW_EXTERNC_CopyString("..."); | |
975 } | |
976 } | |
977 | |
978 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_2a437b7aba6bb01e81113835be8f0146(void* thisObject, int32_t arg0) | |
979 { | |
980 try | |
981 { | |
982 #ifdef LAAW_EXTERNC_START_FUNCTION | |
983 LAAW_EXTERNC_START_FUNCTION; | |
984 #endif | |
985 | |
986 OrthancClient::Instance* this_ = static_cast<OrthancClient::Instance*>(thisObject); | |
987 this_->SetImageExtractionMode(static_cast< ::Orthanc::ImageExtractionMode >(arg0)); | |
988 | |
989 return NULL; | |
990 } | |
991 catch (::Laaw::LaawException& e) | |
992 { | |
993 return LAAW_EXTERNC_CopyString(e.What()); | |
994 } | |
995 catch (...) | |
996 { | |
997 return LAAW_EXTERNC_CopyString("..."); | |
998 } | |
999 } | |
1000 | |
1001 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_2bcbcb850934ae0bb4c6f0cc940e6cda(const void* thisObject, int32_t* result) | |
1002 { | |
1003 try | |
1004 { | |
1005 #ifdef LAAW_EXTERNC_START_FUNCTION | |
1006 LAAW_EXTERNC_START_FUNCTION; | |
1007 #endif | |
1008 | |
1009 const OrthancClient::Instance* this_ = static_cast<const OrthancClient::Instance*>(thisObject); | |
1010 *result = this_->GetImageExtractionMode(); | |
1011 | |
1012 return NULL; | |
1013 } | |
1014 catch (::Laaw::LaawException& e) | |
1015 { | |
1016 return LAAW_EXTERNC_CopyString(e.What()); | |
1017 } | |
1018 catch (...) | |
1019 { | |
1020 return LAAW_EXTERNC_CopyString("..."); | |
1021 } | |
1022 } | |
1023 | |
1024 LAAW_EXPORT_DLL_API char* LAAW_CALL_CONVENTION LAAW_EXTERNC_8d415c3a78a48e7e61d9fd24e7c79484(const void* thisObject, const char** result, const char* arg0) | |
1025 { | |
1026 try | |
1027 { | |
1028 #ifdef LAAW_EXTERNC_START_FUNCTION | |
1029 LAAW_EXTERNC_START_FUNCTION; | |
1030 #endif | |
1031 | |
1032 const OrthancClient::Instance* this_ = static_cast<const OrthancClient::Instance*>(thisObject); | |
1033 *result = this_->GetTagAsString(reinterpret_cast< const char* >(arg0)); | |
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_70d2f8398bbc63b5f792b69b4ad5fecb(const void* thisObject, float* result, const char* arg0) | |
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_->GetTagAsFloat(reinterpret_cast< const char* >(arg0)); | |
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_1729a067d902771517388eedd7346b23(const void* thisObject, int32_t* result, const char* arg0) | |
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_->GetTagAsInt(reinterpret_cast< const char* >(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_72e2aeee66cd3abd8ab7e987321c3745(void* thisObject, uint32_t* result) | |
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 *result = this_->GetWidth(); | |
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_1ea3df5a1ac1a1a687fe7325adddb6f0(void* thisObject, uint32_t* result) | |
1117 { | |
1118 try | |
1119 { | |
1120 #ifdef LAAW_EXTERNC_START_FUNCTION | |
1121 LAAW_EXTERNC_START_FUNCTION; | |
1122 #endif | |
1123 | |
1124 OrthancClient::Instance* this_ = static_cast<OrthancClient::Instance*>(thisObject); | |
1125 *result = this_->GetHeight(); | |
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_99b4f370e4f532d8b763e2cb49db92f8(void* thisObject, uint32_t* result) | |
1140 { | |
1141 try | |
1142 { | |
1143 #ifdef LAAW_EXTERNC_START_FUNCTION | |
1144 LAAW_EXTERNC_START_FUNCTION; | |
1145 #endif | |
1146 | |
1147 OrthancClient::Instance* this_ = static_cast<OrthancClient::Instance*>(thisObject); | |
1148 *result = this_->GetPitch(); | |
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_c41c742b68617f1c0590577a0a5ebc0c(void* thisObject, int32_t* result) | |
1163 { | |
1164 try | |
1165 { | |
1166 #ifdef LAAW_EXTERNC_START_FUNCTION | |
1167 LAAW_EXTERNC_START_FUNCTION; | |
1168 #endif | |
1169 | |
1170 OrthancClient::Instance* this_ = static_cast<OrthancClient::Instance*>(thisObject); | |
1171 *result = this_->GetPixelFormat(); | |
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_142dd2feba0fc1d262bbd0baeb441a8b(void* thisObject, const void** 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_->GetBuffer(); | |
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_5f5c9f81a4dff8daa6c359f1d0488fef(void* thisObject, const void** result, uint32_t arg0) | |
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_->GetBuffer(arg0); | |
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_c0f494b80d4ff8b232df7a75baa0700a(void* thisObject) | |
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 this_->DiscardImage(); | |
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 | |
1255 LAAW_EXPORT_DLL_API const char* LAAW_CALL_CONVENTION LAAW_EXTERNC_GetDescription() | |
1256 { | |
1257 return "Native client to the REST API of Orthanc"; | |
1258 } | |
1259 | |
1260 LAAW_EXPORT_DLL_API const char* LAAW_CALL_CONVENTION LAAW_EXTERNC_GetCompany() | |
1261 { | |
1262 return "CHU of Liege"; | |
1263 } | |
1264 | |
1265 LAAW_EXPORT_DLL_API const char* LAAW_CALL_CONVENTION LAAW_EXTERNC_GetProduct() | |
1266 { | |
1267 return "OrthancClient"; | |
1268 } | |
1269 | |
1270 LAAW_EXPORT_DLL_API const char* LAAW_CALL_CONVENTION LAAW_EXTERNC_GetCopyright() | |
1271 { | |
1272 return "(c) 2012-2013 CHU of Liege"; | |
1273 } | |
1274 | |
1275 LAAW_EXPORT_DLL_API const char* LAAW_CALL_CONVENTION LAAW_EXTERNC_GetVersion() | |
1276 { | |
1277 return "1.0"; | |
1278 } | |
1279 | |
1280 LAAW_EXPORT_DLL_API const char* LAAW_CALL_CONVENTION LAAW_EXTERNC_GetFileVersion() | |
1281 { | |
1282 return "1.0.0.1"; | |
1283 } | |
1284 | |
1285 LAAW_EXPORT_DLL_API const char* LAAW_CALL_CONVENTION LAAW_EXTERNC_GetFullVersion() | |
1286 { | |
1287 return "1.0.1"; | |
1288 } | |
1289 | |
1290 LAAW_EXPORT_DLL_API void LAAW_CALL_CONVENTION LAAW_EXTERNC_FreeString(char* str) | |
1291 { | |
1292 if (str != NULL) | |
1293 free(str); | |
1294 } | |
1295 } |