Mercurial > hg > orthanc
comparison OrthancCppClient/Package/AUTOGENERATED/OrthancCppClient.h @ 548:ffedcc8f0938 laaw
progress
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 20 Sep 2013 17:47:59 +0200 |
parents | eaca3d38b2aa |
children | ec2c2411d4db |
comparison
equal
deleted
inserted
replaced
546:0e510ea3de31 | 548:ffedcc8f0938 |
---|---|
201 **/ | 201 **/ |
202 class Library | 202 class Library |
203 { | 203 { |
204 private: | 204 private: |
205 LAAW_ORTHANC_CLIENT_HANDLE_TYPE handle_; | 205 LAAW_ORTHANC_CLIENT_HANDLE_TYPE handle_; |
206 LAAW_ORTHANC_CLIENT_FUNCTION_TYPE functionsIndex_[59 + 1]; | 206 LAAW_ORTHANC_CLIENT_FUNCTION_TYPE functionsIndex_[60 + 1]; |
207 | 207 |
208 | 208 |
209 | 209 |
210 void Load(const char* sharedLibraryPath) | 210 void Load(const char* sharedLibraryPath) |
211 { | 211 { |
237 inline void LoadFunctions(); | 237 inline void LoadFunctions(); |
238 | 238 |
239 void FreeString(char* str) | 239 void FreeString(char* str) |
240 { | 240 { |
241 typedef void (LAAW_ORTHANC_CLIENT_CALL_CONV* Function) (char*); | 241 typedef void (LAAW_ORTHANC_CLIENT_CALL_CONV* Function) (char*); |
242 Function function = (Function) GetFunction(59); | 242 Function function = (Function) GetFunction(60); |
243 function(str); | 243 function(str); |
244 } | 244 } |
245 | 245 |
246 Library() | 246 Library() |
247 { | 247 { |
384 if (strcmp(getVersion(), "1.0")) | 384 if (strcmp(getVersion(), "1.0")) |
385 { | 385 { |
386 throw ::OrthancClient::OrthancClientException("Mismatch between the C++ header and the library version"); | 386 throw ::OrthancClient::OrthancClientException("Mismatch between the C++ header and the library version"); |
387 } | 387 } |
388 | 388 |
389 functionsIndex_[59] = LAAW_ORTHANC_CLIENT_GET_FUNCTION(handle_, "LAAW_EXTERNC_FreeString", "4"); | 389 functionsIndex_[60] = LAAW_ORTHANC_CLIENT_GET_FUNCTION(handle_, "LAAW_EXTERNC_FreeString", "4"); |
390 functionsIndex_[3] = LAAW_ORTHANC_CLIENT_GET_FUNCTION(handle_, "LAAW_EXTERNC_557aee7b61817292a0f31269d3c35db7", "8"); | 390 functionsIndex_[3] = LAAW_ORTHANC_CLIENT_GET_FUNCTION(handle_, "LAAW_EXTERNC_557aee7b61817292a0f31269d3c35db7", "8"); |
391 functionsIndex_[4] = LAAW_ORTHANC_CLIENT_GET_FUNCTION(handle_, "LAAW_EXTERNC_0b8dff0ce67f10954a49b059e348837e", "8"); | 391 functionsIndex_[4] = LAAW_ORTHANC_CLIENT_GET_FUNCTION(handle_, "LAAW_EXTERNC_0b8dff0ce67f10954a49b059e348837e", "8"); |
392 functionsIndex_[5] = LAAW_ORTHANC_CLIENT_GET_FUNCTION(handle_, "LAAW_EXTERNC_d7497fd24e4b453f2965bae9ef8330b0", "4"); | 392 functionsIndex_[5] = LAAW_ORTHANC_CLIENT_GET_FUNCTION(handle_, "LAAW_EXTERNC_d7497fd24e4b453f2965bae9ef8330b0", "4"); |
393 functionsIndex_[6] = LAAW_ORTHANC_CLIENT_GET_FUNCTION(handle_, "LAAW_EXTERNC_e840242bf58d17d3c1d722da09ce88e0", "8"); | 393 functionsIndex_[6] = LAAW_ORTHANC_CLIENT_GET_FUNCTION(handle_, "LAAW_EXTERNC_e840242bf58d17d3c1d722da09ce88e0", "8"); |
394 functionsIndex_[7] = LAAW_ORTHANC_CLIENT_GET_FUNCTION(handle_, "LAAW_EXTERNC_c9af31433001b5dfc012a552dc6d0050", "8"); | 394 functionsIndex_[7] = LAAW_ORTHANC_CLIENT_GET_FUNCTION(handle_, "LAAW_EXTERNC_c9af31433001b5dfc012a552dc6d0050", "8"); |
417 functionsIndex_[29] = LAAW_ORTHANC_CLIENT_GET_FUNCTION(handle_, "LAAW_EXTERNC_b794f5cd3dad7d7b575dd1fd902afdd0", "8"); | 417 functionsIndex_[29] = LAAW_ORTHANC_CLIENT_GET_FUNCTION(handle_, "LAAW_EXTERNC_b794f5cd3dad7d7b575dd1fd902afdd0", "8"); |
418 functionsIndex_[30] = LAAW_ORTHANC_CLIENT_GET_FUNCTION(handle_, "LAAW_EXTERNC_8ee2e50dd9df8f66a3c1766090dd03ab", "8"); | 418 functionsIndex_[30] = LAAW_ORTHANC_CLIENT_GET_FUNCTION(handle_, "LAAW_EXTERNC_8ee2e50dd9df8f66a3c1766090dd03ab", "8"); |
419 functionsIndex_[31] = LAAW_ORTHANC_CLIENT_GET_FUNCTION(handle_, "LAAW_EXTERNC_046aed35bbe4751691f4c34cc249a61d", "8"); | 419 functionsIndex_[31] = LAAW_ORTHANC_CLIENT_GET_FUNCTION(handle_, "LAAW_EXTERNC_046aed35bbe4751691f4c34cc249a61d", "8"); |
420 functionsIndex_[32] = LAAW_ORTHANC_CLIENT_GET_FUNCTION(handle_, "LAAW_EXTERNC_88134b978f9acb2aecdadf54aeab3c64", "16"); | 420 functionsIndex_[32] = LAAW_ORTHANC_CLIENT_GET_FUNCTION(handle_, "LAAW_EXTERNC_88134b978f9acb2aecdadf54aeab3c64", "16"); |
421 functionsIndex_[33] = LAAW_ORTHANC_CLIENT_GET_FUNCTION(handle_, "LAAW_EXTERNC_4dcc7a0fd025efba251ac6e9b701c2c5", "28"); | 421 functionsIndex_[33] = LAAW_ORTHANC_CLIENT_GET_FUNCTION(handle_, "LAAW_EXTERNC_4dcc7a0fd025efba251ac6e9b701c2c5", "28"); |
422 functionsIndex_[34] = LAAW_ORTHANC_CLIENT_GET_FUNCTION(handle_, "LAAW_EXTERNC_b2601a161c24ad0a1d3586246f87452c", "32"); | |
422 functionsIndex_[19] = LAAW_ORTHANC_CLIENT_GET_FUNCTION(handle_, "LAAW_EXTERNC_193599b9e345384fcdfcd47c29c55342", "12"); | 423 functionsIndex_[19] = LAAW_ORTHANC_CLIENT_GET_FUNCTION(handle_, "LAAW_EXTERNC_193599b9e345384fcdfcd47c29c55342", "12"); |
423 functionsIndex_[20] = LAAW_ORTHANC_CLIENT_GET_FUNCTION(handle_, "LAAW_EXTERNC_7c97f17063a357d38c5fab1136ad12a0", "4"); | 424 functionsIndex_[20] = LAAW_ORTHANC_CLIENT_GET_FUNCTION(handle_, "LAAW_EXTERNC_7c97f17063a357d38c5fab1136ad12a0", "4"); |
424 functionsIndex_[36] = LAAW_ORTHANC_CLIENT_GET_FUNCTION(handle_, "LAAW_EXTERNC_e65b20b7e0170b67544cd6664a4639b7", "4"); | 425 functionsIndex_[37] = LAAW_ORTHANC_CLIENT_GET_FUNCTION(handle_, "LAAW_EXTERNC_e65b20b7e0170b67544cd6664a4639b7", "4"); |
425 functionsIndex_[37] = LAAW_ORTHANC_CLIENT_GET_FUNCTION(handle_, "LAAW_EXTERNC_470e981b0e41f17231ba0ae6f3033321", "8"); | 426 functionsIndex_[38] = LAAW_ORTHANC_CLIENT_GET_FUNCTION(handle_, "LAAW_EXTERNC_470e981b0e41f17231ba0ae6f3033321", "8"); |
426 functionsIndex_[38] = LAAW_ORTHANC_CLIENT_GET_FUNCTION(handle_, "LAAW_EXTERNC_04cefd138b6ea15ad909858f2a0a8f05", "12"); | 427 functionsIndex_[39] = LAAW_ORTHANC_CLIENT_GET_FUNCTION(handle_, "LAAW_EXTERNC_04cefd138b6ea15ad909858f2a0a8f05", "12"); |
427 functionsIndex_[39] = LAAW_ORTHANC_CLIENT_GET_FUNCTION(handle_, "LAAW_EXTERNC_aee5b1f6f0c082f2c3b0986f9f6a18c7", "8"); | 428 functionsIndex_[40] = LAAW_ORTHANC_CLIENT_GET_FUNCTION(handle_, "LAAW_EXTERNC_aee5b1f6f0c082f2c3b0986f9f6a18c7", "8"); |
428 functionsIndex_[40] = LAAW_ORTHANC_CLIENT_GET_FUNCTION(handle_, "LAAW_EXTERNC_93965682bace75491413e1f0b8d5a654", "16"); | 429 functionsIndex_[41] = LAAW_ORTHANC_CLIENT_GET_FUNCTION(handle_, "LAAW_EXTERNC_93965682bace75491413e1f0b8d5a654", "16"); |
429 functionsIndex_[34] = LAAW_ORTHANC_CLIENT_GET_FUNCTION(handle_, "LAAW_EXTERNC_b01c6003238eb46c8db5dc823d7ca678", "12"); | 430 functionsIndex_[35] = LAAW_ORTHANC_CLIENT_GET_FUNCTION(handle_, "LAAW_EXTERNC_b01c6003238eb46c8db5dc823d7ca678", "12"); |
430 functionsIndex_[35] = LAAW_ORTHANC_CLIENT_GET_FUNCTION(handle_, "LAAW_EXTERNC_0147007fb99bad8cd95a139ec8795376", "4"); | 431 functionsIndex_[36] = LAAW_ORTHANC_CLIENT_GET_FUNCTION(handle_, "LAAW_EXTERNC_0147007fb99bad8cd95a139ec8795376", "4"); |
431 functionsIndex_[43] = LAAW_ORTHANC_CLIENT_GET_FUNCTION(handle_, "LAAW_EXTERNC_236ee8b403bc99535a8a4695c0cd45cb", "8"); | 432 functionsIndex_[44] = LAAW_ORTHANC_CLIENT_GET_FUNCTION(handle_, "LAAW_EXTERNC_236ee8b403bc99535a8a4695c0cd45cb", "8"); |
432 functionsIndex_[44] = LAAW_ORTHANC_CLIENT_GET_FUNCTION(handle_, "LAAW_EXTERNC_2a437b7aba6bb01e81113835be8f0146", "8"); | 433 functionsIndex_[45] = LAAW_ORTHANC_CLIENT_GET_FUNCTION(handle_, "LAAW_EXTERNC_2a437b7aba6bb01e81113835be8f0146", "8"); |
433 functionsIndex_[45] = LAAW_ORTHANC_CLIENT_GET_FUNCTION(handle_, "LAAW_EXTERNC_2bcbcb850934ae0bb4c6f0cc940e6cda", "8"); | 434 functionsIndex_[46] = LAAW_ORTHANC_CLIENT_GET_FUNCTION(handle_, "LAAW_EXTERNC_2bcbcb850934ae0bb4c6f0cc940e6cda", "8"); |
434 functionsIndex_[46] = LAAW_ORTHANC_CLIENT_GET_FUNCTION(handle_, "LAAW_EXTERNC_8d415c3a78a48e7e61d9fd24e7c79484", "12"); | 435 functionsIndex_[47] = LAAW_ORTHANC_CLIENT_GET_FUNCTION(handle_, "LAAW_EXTERNC_8d415c3a78a48e7e61d9fd24e7c79484", "12"); |
435 functionsIndex_[47] = LAAW_ORTHANC_CLIENT_GET_FUNCTION(handle_, "LAAW_EXTERNC_70d2f8398bbc63b5f792b69b4ad5fecb", "12"); | 436 functionsIndex_[48] = LAAW_ORTHANC_CLIENT_GET_FUNCTION(handle_, "LAAW_EXTERNC_70d2f8398bbc63b5f792b69b4ad5fecb", "12"); |
436 functionsIndex_[48] = LAAW_ORTHANC_CLIENT_GET_FUNCTION(handle_, "LAAW_EXTERNC_1729a067d902771517388eedd7346b23", "12"); | 437 functionsIndex_[49] = LAAW_ORTHANC_CLIENT_GET_FUNCTION(handle_, "LAAW_EXTERNC_1729a067d902771517388eedd7346b23", "12"); |
437 functionsIndex_[49] = LAAW_ORTHANC_CLIENT_GET_FUNCTION(handle_, "LAAW_EXTERNC_72e2aeee66cd3abd8ab7e987321c3745", "8"); | 438 functionsIndex_[50] = LAAW_ORTHANC_CLIENT_GET_FUNCTION(handle_, "LAAW_EXTERNC_72e2aeee66cd3abd8ab7e987321c3745", "8"); |
438 functionsIndex_[50] = LAAW_ORTHANC_CLIENT_GET_FUNCTION(handle_, "LAAW_EXTERNC_1ea3df5a1ac1a1a687fe7325adddb6f0", "8"); | 439 functionsIndex_[51] = LAAW_ORTHANC_CLIENT_GET_FUNCTION(handle_, "LAAW_EXTERNC_1ea3df5a1ac1a1a687fe7325adddb6f0", "8"); |
439 functionsIndex_[51] = LAAW_ORTHANC_CLIENT_GET_FUNCTION(handle_, "LAAW_EXTERNC_99b4f370e4f532d8b763e2cb49db92f8", "8"); | 440 functionsIndex_[52] = LAAW_ORTHANC_CLIENT_GET_FUNCTION(handle_, "LAAW_EXTERNC_99b4f370e4f532d8b763e2cb49db92f8", "8"); |
440 functionsIndex_[52] = LAAW_ORTHANC_CLIENT_GET_FUNCTION(handle_, "LAAW_EXTERNC_c41c742b68617f1c0590577a0a5ebc0c", "8"); | 441 functionsIndex_[53] = LAAW_ORTHANC_CLIENT_GET_FUNCTION(handle_, "LAAW_EXTERNC_c41c742b68617f1c0590577a0a5ebc0c", "8"); |
441 functionsIndex_[53] = LAAW_ORTHANC_CLIENT_GET_FUNCTION(handle_, "LAAW_EXTERNC_142dd2feba0fc1d262bbd0baeb441a8b", "8"); | 442 functionsIndex_[54] = LAAW_ORTHANC_CLIENT_GET_FUNCTION(handle_, "LAAW_EXTERNC_142dd2feba0fc1d262bbd0baeb441a8b", "8"); |
442 functionsIndex_[54] = LAAW_ORTHANC_CLIENT_GET_FUNCTION(handle_, "LAAW_EXTERNC_5f5c9f81a4dff8daa6c359f1d0488fef", "12"); | 443 functionsIndex_[55] = LAAW_ORTHANC_CLIENT_GET_FUNCTION(handle_, "LAAW_EXTERNC_5f5c9f81a4dff8daa6c359f1d0488fef", "12"); |
443 functionsIndex_[55] = LAAW_ORTHANC_CLIENT_GET_FUNCTION(handle_, "LAAW_EXTERNC_c0f494b80d4ff8b232df7a75baa0700a", "4"); | 444 functionsIndex_[56] = LAAW_ORTHANC_CLIENT_GET_FUNCTION(handle_, "LAAW_EXTERNC_c0f494b80d4ff8b232df7a75baa0700a", "4"); |
444 functionsIndex_[56] = LAAW_ORTHANC_CLIENT_GET_FUNCTION(handle_, "LAAW_EXTERNC_d604f44bd5195e082e745e9cbc164f4c", "4"); | 445 functionsIndex_[57] = LAAW_ORTHANC_CLIENT_GET_FUNCTION(handle_, "LAAW_EXTERNC_d604f44bd5195e082e745e9cbc164f4c", "4"); |
445 functionsIndex_[57] = LAAW_ORTHANC_CLIENT_GET_FUNCTION(handle_, "LAAW_EXTERNC_9ca979fffd08fa256306d4e68d8b0e91", "8"); | 446 functionsIndex_[58] = LAAW_ORTHANC_CLIENT_GET_FUNCTION(handle_, "LAAW_EXTERNC_9ca979fffd08fa256306d4e68d8b0e91", "8"); |
446 functionsIndex_[58] = LAAW_ORTHANC_CLIENT_GET_FUNCTION(handle_, "LAAW_EXTERNC_6f2d77a26edc91c28d89408dbc3c271e", "8"); | 447 functionsIndex_[59] = LAAW_ORTHANC_CLIENT_GET_FUNCTION(handle_, "LAAW_EXTERNC_6f2d77a26edc91c28d89408dbc3c271e", "8"); |
447 functionsIndex_[41] = LAAW_ORTHANC_CLIENT_GET_FUNCTION(handle_, "LAAW_EXTERNC_6c5ad02f91b583e29cebd0bd319ce21d", "12"); | 448 functionsIndex_[42] = LAAW_ORTHANC_CLIENT_GET_FUNCTION(handle_, "LAAW_EXTERNC_6c5ad02f91b583e29cebd0bd319ce21d", "12"); |
448 functionsIndex_[42] = LAAW_ORTHANC_CLIENT_GET_FUNCTION(handle_, "LAAW_EXTERNC_4068241c44a9c1367fe0e57be523f207", "4"); | 449 functionsIndex_[43] = LAAW_ORTHANC_CLIENT_GET_FUNCTION(handle_, "LAAW_EXTERNC_4068241c44a9c1367fe0e57be523f207", "4"); |
449 | 450 |
450 /* Check whether the functions were properly loaded */ | 451 /* Check whether the functions were properly loaded */ |
451 for (unsigned int i = 0; i <= 59; i++) | 452 for (unsigned int i = 0; i <= 60; i++) |
452 { | 453 { |
453 if (functionsIndex_[i] == (LAAW_ORTHANC_CLIENT_FUNCTION_TYPE) NULL) | 454 if (functionsIndex_[i] == (LAAW_ORTHANC_CLIENT_FUNCTION_TYPE) NULL) |
454 { | 455 { |
455 throw ::OrthancClient::OrthancClientException("Unable to load the functions of the shared library"); | 456 throw ::OrthancClient::OrthancClientException("Unable to load the functions of the shared library"); |
456 } | 457 } |
574 inline float GetVoxelSizeX(); | 575 inline float GetVoxelSizeX(); |
575 inline float GetVoxelSizeY(); | 576 inline float GetVoxelSizeY(); |
576 inline float GetVoxelSizeZ(); | 577 inline float GetVoxelSizeZ(); |
577 inline ::std::string GetMainDicomTag(const ::std::string& tag, const ::std::string& defaultValue) const; | 578 inline ::std::string GetMainDicomTag(const ::std::string& tag, const ::std::string& defaultValue) const; |
578 inline void Load3DImage(void* target, ::Orthanc::PixelFormat format, LAAW_INT64 lineStride, LAAW_INT64 stackStride); | 579 inline void Load3DImage(void* target, ::Orthanc::PixelFormat format, LAAW_INT64 lineStride, LAAW_INT64 stackStride); |
580 inline void Load3DImage(void* target, ::Orthanc::PixelFormat format, LAAW_INT64 lineStride, LAAW_INT64 stackStride, float progress[]); | |
579 }; | 581 }; |
580 } | 582 } |
581 | 583 |
582 namespace OrthancClient | 584 namespace OrthancClient |
583 { | 585 { |
941 typedef char* (LAAW_ORTHANC_CLIENT_CALL_CONV* Function) (void*, void*, LAAW_INT32, LAAW_INT64, LAAW_INT64); | 943 typedef char* (LAAW_ORTHANC_CLIENT_CALL_CONV* Function) (void*, void*, LAAW_INT32, LAAW_INT64, LAAW_INT64); |
942 Function function = (Function) ::OrthancClient::Internals::Library::GetInstance().GetFunction(33); | 944 Function function = (Function) ::OrthancClient::Internals::Library::GetInstance().GetFunction(33); |
943 char* error = function(pimpl_, target, format, lineStride, stackStride); | 945 char* error = function(pimpl_, target, format, lineStride, stackStride); |
944 ::OrthancClient::Internals::Library::GetInstance().ThrowExceptionIfNeeded(error); | 946 ::OrthancClient::Internals::Library::GetInstance().ThrowExceptionIfNeeded(error); |
945 } | 947 } |
948 inline void Series::Load3DImage(void* target, ::Orthanc::PixelFormat format, LAAW_INT64 lineStride, LAAW_INT64 stackStride, float progress[]) | |
949 { | |
950 typedef char* (LAAW_ORTHANC_CLIENT_CALL_CONV* Function) (void*, void*, LAAW_INT32, LAAW_INT64, LAAW_INT64, float*); | |
951 Function function = (Function) ::OrthancClient::Internals::Library::GetInstance().GetFunction(34); | |
952 char* error = function(pimpl_, target, format, lineStride, stackStride, progress); | |
953 ::OrthancClient::Internals::Library::GetInstance().ThrowExceptionIfNeeded(error); | |
954 } | |
946 } | 955 } |
947 | 956 |
948 namespace OrthancClient | 957 namespace OrthancClient |
949 { | 958 { |
950 inline Study::Study(::OrthancClient::OrthancConnection& connection, const ::std::string& id) | 959 inline Study::Study(::OrthancClient::OrthancConnection& connection, const ::std::string& id) |
951 { | 960 { |
952 isReference_ = false; | 961 isReference_ = false; |
953 typedef char* (LAAW_ORTHANC_CLIENT_CALL_CONV* Function) (void**, void*, const char*); | 962 typedef char* (LAAW_ORTHANC_CLIENT_CALL_CONV* Function) (void**, void*, const char*); |
954 Function function = (Function) ::OrthancClient::Internals::Library::GetInstance().GetFunction(34); | 963 Function function = (Function) ::OrthancClient::Internals::Library::GetInstance().GetFunction(35); |
955 char* error = function(&pimpl_, connection.pimpl_, id.c_str()); | 964 char* error = function(&pimpl_, connection.pimpl_, id.c_str()); |
956 ::OrthancClient::Internals::Library::GetInstance().ThrowExceptionIfNeeded(error); | 965 ::OrthancClient::Internals::Library::GetInstance().ThrowExceptionIfNeeded(error); |
957 } | 966 } |
958 /** | 967 /** |
959 * @brief Destructs the object. | 968 * @brief Destructs the object. |
963 **/ | 972 **/ |
964 inline Study::~Study() | 973 inline Study::~Study() |
965 { | 974 { |
966 if (isReference_) return; | 975 if (isReference_) return; |
967 typedef char* (LAAW_ORTHANC_CLIENT_CALL_CONV* Function) (void*); | 976 typedef char* (LAAW_ORTHANC_CLIENT_CALL_CONV* Function) (void*); |
968 Function function = (Function) ::OrthancClient::Internals::Library::GetInstance().GetFunction(35); | |
969 char* error = function(pimpl_); | |
970 ::OrthancClient::Internals::Library::GetInstance().ThrowExceptionIfNeeded(error); | |
971 } | |
972 inline void Study::Reload() | |
973 { | |
974 typedef char* (LAAW_ORTHANC_CLIENT_CALL_CONV* Function) (void*); | |
975 Function function = (Function) ::OrthancClient::Internals::Library::GetInstance().GetFunction(36); | 977 Function function = (Function) ::OrthancClient::Internals::Library::GetInstance().GetFunction(36); |
976 char* error = function(pimpl_); | 978 char* error = function(pimpl_); |
977 ::OrthancClient::Internals::Library::GetInstance().ThrowExceptionIfNeeded(error); | 979 ::OrthancClient::Internals::Library::GetInstance().ThrowExceptionIfNeeded(error); |
978 } | 980 } |
981 inline void Study::Reload() | |
982 { | |
983 typedef char* (LAAW_ORTHANC_CLIENT_CALL_CONV* Function) (void*); | |
984 Function function = (Function) ::OrthancClient::Internals::Library::GetInstance().GetFunction(37); | |
985 char* error = function(pimpl_); | |
986 ::OrthancClient::Internals::Library::GetInstance().ThrowExceptionIfNeeded(error); | |
987 } | |
979 inline LAAW_UINT32 Study::GetSeriesCount() | 988 inline LAAW_UINT32 Study::GetSeriesCount() |
980 { | 989 { |
981 LAAW_UINT32 result_; | 990 LAAW_UINT32 result_; |
982 typedef char* (LAAW_ORTHANC_CLIENT_CALL_CONV* Function) (void*, LAAW_UINT32*); | 991 typedef char* (LAAW_ORTHANC_CLIENT_CALL_CONV* Function) (void*, LAAW_UINT32*); |
983 Function function = (Function) ::OrthancClient::Internals::Library::GetInstance().GetFunction(37); | 992 Function function = (Function) ::OrthancClient::Internals::Library::GetInstance().GetFunction(38); |
984 char* error = function(pimpl_, &result_); | 993 char* error = function(pimpl_, &result_); |
985 ::OrthancClient::Internals::Library::GetInstance().ThrowExceptionIfNeeded(error); | 994 ::OrthancClient::Internals::Library::GetInstance().ThrowExceptionIfNeeded(error); |
986 return result_; | 995 return result_; |
987 } | 996 } |
988 inline ::OrthancClient::Series Study::GetSeries(LAAW_UINT32 index) | 997 inline ::OrthancClient::Series Study::GetSeries(LAAW_UINT32 index) |
989 { | 998 { |
990 void* result_; | 999 void* result_; |
991 typedef char* (LAAW_ORTHANC_CLIENT_CALL_CONV* Function) (void*, void**, LAAW_UINT32); | 1000 typedef char* (LAAW_ORTHANC_CLIENT_CALL_CONV* Function) (void*, void**, LAAW_UINT32); |
992 Function function = (Function) ::OrthancClient::Internals::Library::GetInstance().GetFunction(38); | 1001 Function function = (Function) ::OrthancClient::Internals::Library::GetInstance().GetFunction(39); |
993 char* error = function(pimpl_, &result_, index); | 1002 char* error = function(pimpl_, &result_, index); |
994 ::OrthancClient::Internals::Library::GetInstance().ThrowExceptionIfNeeded(error); | 1003 ::OrthancClient::Internals::Library::GetInstance().ThrowExceptionIfNeeded(error); |
995 return ::OrthancClient::Series(result_); | 1004 return ::OrthancClient::Series(result_); |
996 } | 1005 } |
997 inline ::std::string Study::GetId() const | 1006 inline ::std::string Study::GetId() const |
998 { | 1007 { |
999 const char* result_; | 1008 const char* result_; |
1000 typedef char* (LAAW_ORTHANC_CLIENT_CALL_CONV* Function) (const void*, const char**); | 1009 typedef char* (LAAW_ORTHANC_CLIENT_CALL_CONV* Function) (const void*, const char**); |
1001 Function function = (Function) ::OrthancClient::Internals::Library::GetInstance().GetFunction(39); | 1010 Function function = (Function) ::OrthancClient::Internals::Library::GetInstance().GetFunction(40); |
1002 char* error = function(pimpl_, &result_); | 1011 char* error = function(pimpl_, &result_); |
1003 ::OrthancClient::Internals::Library::GetInstance().ThrowExceptionIfNeeded(error); | 1012 ::OrthancClient::Internals::Library::GetInstance().ThrowExceptionIfNeeded(error); |
1004 return std::string(result_); | 1013 return std::string(result_); |
1005 } | 1014 } |
1006 inline ::std::string Study::GetMainDicomTag(const ::std::string& tag, const ::std::string& defaultValue) const | 1015 inline ::std::string Study::GetMainDicomTag(const ::std::string& tag, const ::std::string& defaultValue) const |
1007 { | 1016 { |
1008 const char* result_; | 1017 const char* result_; |
1009 typedef char* (LAAW_ORTHANC_CLIENT_CALL_CONV* Function) (const void*, const char**, const char*, const char*); | 1018 typedef char* (LAAW_ORTHANC_CLIENT_CALL_CONV* Function) (const void*, const char**, const char*, const char*); |
1010 Function function = (Function) ::OrthancClient::Internals::Library::GetInstance().GetFunction(40); | 1019 Function function = (Function) ::OrthancClient::Internals::Library::GetInstance().GetFunction(41); |
1011 char* error = function(pimpl_, &result_, tag.c_str(), defaultValue.c_str()); | 1020 char* error = function(pimpl_, &result_, tag.c_str(), defaultValue.c_str()); |
1012 ::OrthancClient::Internals::Library::GetInstance().ThrowExceptionIfNeeded(error); | 1021 ::OrthancClient::Internals::Library::GetInstance().ThrowExceptionIfNeeded(error); |
1013 return std::string(result_); | 1022 return std::string(result_); |
1014 } | 1023 } |
1015 } | 1024 } |
1018 { | 1027 { |
1019 inline Instance::Instance(::OrthancClient::OrthancConnection& connection, const ::std::string& id) | 1028 inline Instance::Instance(::OrthancClient::OrthancConnection& connection, const ::std::string& id) |
1020 { | 1029 { |
1021 isReference_ = false; | 1030 isReference_ = false; |
1022 typedef char* (LAAW_ORTHANC_CLIENT_CALL_CONV* Function) (void**, void*, const char*); | 1031 typedef char* (LAAW_ORTHANC_CLIENT_CALL_CONV* Function) (void**, void*, const char*); |
1023 Function function = (Function) ::OrthancClient::Internals::Library::GetInstance().GetFunction(41); | 1032 Function function = (Function) ::OrthancClient::Internals::Library::GetInstance().GetFunction(42); |
1024 char* error = function(&pimpl_, connection.pimpl_, id.c_str()); | 1033 char* error = function(&pimpl_, connection.pimpl_, id.c_str()); |
1025 ::OrthancClient::Internals::Library::GetInstance().ThrowExceptionIfNeeded(error); | 1034 ::OrthancClient::Internals::Library::GetInstance().ThrowExceptionIfNeeded(error); |
1026 } | 1035 } |
1027 /** | 1036 /** |
1028 * @brief Destructs the object. | 1037 * @brief Destructs the object. |
1032 **/ | 1041 **/ |
1033 inline Instance::~Instance() | 1042 inline Instance::~Instance() |
1034 { | 1043 { |
1035 if (isReference_) return; | 1044 if (isReference_) return; |
1036 typedef char* (LAAW_ORTHANC_CLIENT_CALL_CONV* Function) (void*); | 1045 typedef char* (LAAW_ORTHANC_CLIENT_CALL_CONV* Function) (void*); |
1037 Function function = (Function) ::OrthancClient::Internals::Library::GetInstance().GetFunction(42); | 1046 Function function = (Function) ::OrthancClient::Internals::Library::GetInstance().GetFunction(43); |
1038 char* error = function(pimpl_); | 1047 char* error = function(pimpl_); |
1039 ::OrthancClient::Internals::Library::GetInstance().ThrowExceptionIfNeeded(error); | 1048 ::OrthancClient::Internals::Library::GetInstance().ThrowExceptionIfNeeded(error); |
1040 } | 1049 } |
1041 inline ::std::string Instance::GetId() const | 1050 inline ::std::string Instance::GetId() const |
1042 { | 1051 { |
1043 const char* result_; | 1052 const char* result_; |
1044 typedef char* (LAAW_ORTHANC_CLIENT_CALL_CONV* Function) (const void*, const char**); | 1053 typedef char* (LAAW_ORTHANC_CLIENT_CALL_CONV* Function) (const void*, const char**); |
1045 Function function = (Function) ::OrthancClient::Internals::Library::GetInstance().GetFunction(43); | 1054 Function function = (Function) ::OrthancClient::Internals::Library::GetInstance().GetFunction(44); |
1046 char* error = function(pimpl_, &result_); | 1055 char* error = function(pimpl_, &result_); |
1047 ::OrthancClient::Internals::Library::GetInstance().ThrowExceptionIfNeeded(error); | 1056 ::OrthancClient::Internals::Library::GetInstance().ThrowExceptionIfNeeded(error); |
1048 return std::string(result_); | 1057 return std::string(result_); |
1049 } | 1058 } |
1050 inline void Instance::SetImageExtractionMode(::Orthanc::ImageExtractionMode mode) | 1059 inline void Instance::SetImageExtractionMode(::Orthanc::ImageExtractionMode mode) |
1051 { | 1060 { |
1052 typedef char* (LAAW_ORTHANC_CLIENT_CALL_CONV* Function) (void*, LAAW_INT32); | 1061 typedef char* (LAAW_ORTHANC_CLIENT_CALL_CONV* Function) (void*, LAAW_INT32); |
1053 Function function = (Function) ::OrthancClient::Internals::Library::GetInstance().GetFunction(44); | 1062 Function function = (Function) ::OrthancClient::Internals::Library::GetInstance().GetFunction(45); |
1054 char* error = function(pimpl_, mode); | 1063 char* error = function(pimpl_, mode); |
1055 ::OrthancClient::Internals::Library::GetInstance().ThrowExceptionIfNeeded(error); | 1064 ::OrthancClient::Internals::Library::GetInstance().ThrowExceptionIfNeeded(error); |
1056 } | 1065 } |
1057 inline ::Orthanc::ImageExtractionMode Instance::GetImageExtractionMode() const | 1066 inline ::Orthanc::ImageExtractionMode Instance::GetImageExtractionMode() const |
1058 { | 1067 { |
1059 LAAW_INT32 result_; | 1068 LAAW_INT32 result_; |
1060 typedef char* (LAAW_ORTHANC_CLIENT_CALL_CONV* Function) (const void*, LAAW_INT32*); | 1069 typedef char* (LAAW_ORTHANC_CLIENT_CALL_CONV* Function) (const void*, LAAW_INT32*); |
1061 Function function = (Function) ::OrthancClient::Internals::Library::GetInstance().GetFunction(45); | 1070 Function function = (Function) ::OrthancClient::Internals::Library::GetInstance().GetFunction(46); |
1062 char* error = function(pimpl_, &result_); | 1071 char* error = function(pimpl_, &result_); |
1063 ::OrthancClient::Internals::Library::GetInstance().ThrowExceptionIfNeeded(error); | 1072 ::OrthancClient::Internals::Library::GetInstance().ThrowExceptionIfNeeded(error); |
1064 return static_cast< ::Orthanc::ImageExtractionMode >(result_); | 1073 return static_cast< ::Orthanc::ImageExtractionMode >(result_); |
1065 } | 1074 } |
1066 inline ::std::string Instance::GetTagAsString(const ::std::string& tag) const | 1075 inline ::std::string Instance::GetTagAsString(const ::std::string& tag) const |
1067 { | 1076 { |
1068 const char* result_; | 1077 const char* result_; |
1069 typedef char* (LAAW_ORTHANC_CLIENT_CALL_CONV* Function) (const void*, const char**, const char*); | 1078 typedef char* (LAAW_ORTHANC_CLIENT_CALL_CONV* Function) (const void*, const char**, const char*); |
1070 Function function = (Function) ::OrthancClient::Internals::Library::GetInstance().GetFunction(46); | 1079 Function function = (Function) ::OrthancClient::Internals::Library::GetInstance().GetFunction(47); |
1071 char* error = function(pimpl_, &result_, tag.c_str()); | 1080 char* error = function(pimpl_, &result_, tag.c_str()); |
1072 ::OrthancClient::Internals::Library::GetInstance().ThrowExceptionIfNeeded(error); | 1081 ::OrthancClient::Internals::Library::GetInstance().ThrowExceptionIfNeeded(error); |
1073 return std::string(result_); | 1082 return std::string(result_); |
1074 } | 1083 } |
1075 inline float Instance::GetTagAsFloat(const ::std::string& tag) const | 1084 inline float Instance::GetTagAsFloat(const ::std::string& tag) const |
1076 { | 1085 { |
1077 float result_; | 1086 float result_; |
1078 typedef char* (LAAW_ORTHANC_CLIENT_CALL_CONV* Function) (const void*, float*, const char*); | 1087 typedef char* (LAAW_ORTHANC_CLIENT_CALL_CONV* Function) (const void*, float*, const char*); |
1079 Function function = (Function) ::OrthancClient::Internals::Library::GetInstance().GetFunction(47); | 1088 Function function = (Function) ::OrthancClient::Internals::Library::GetInstance().GetFunction(48); |
1080 char* error = function(pimpl_, &result_, tag.c_str()); | 1089 char* error = function(pimpl_, &result_, tag.c_str()); |
1081 ::OrthancClient::Internals::Library::GetInstance().ThrowExceptionIfNeeded(error); | 1090 ::OrthancClient::Internals::Library::GetInstance().ThrowExceptionIfNeeded(error); |
1082 return result_; | 1091 return result_; |
1083 } | 1092 } |
1084 inline LAAW_INT32 Instance::GetTagAsInt(const ::std::string& tag) const | 1093 inline LAAW_INT32 Instance::GetTagAsInt(const ::std::string& tag) const |
1085 { | 1094 { |
1086 LAAW_INT32 result_; | 1095 LAAW_INT32 result_; |
1087 typedef char* (LAAW_ORTHANC_CLIENT_CALL_CONV* Function) (const void*, LAAW_INT32*, const char*); | 1096 typedef char* (LAAW_ORTHANC_CLIENT_CALL_CONV* Function) (const void*, LAAW_INT32*, const char*); |
1088 Function function = (Function) ::OrthancClient::Internals::Library::GetInstance().GetFunction(48); | 1097 Function function = (Function) ::OrthancClient::Internals::Library::GetInstance().GetFunction(49); |
1089 char* error = function(pimpl_, &result_, tag.c_str()); | 1098 char* error = function(pimpl_, &result_, tag.c_str()); |
1090 ::OrthancClient::Internals::Library::GetInstance().ThrowExceptionIfNeeded(error); | 1099 ::OrthancClient::Internals::Library::GetInstance().ThrowExceptionIfNeeded(error); |
1091 return result_; | 1100 return result_; |
1092 } | 1101 } |
1093 inline LAAW_UINT32 Instance::GetWidth() | 1102 inline LAAW_UINT32 Instance::GetWidth() |
1094 { | |
1095 LAAW_UINT32 result_; | |
1096 typedef char* (LAAW_ORTHANC_CLIENT_CALL_CONV* Function) (void*, LAAW_UINT32*); | |
1097 Function function = (Function) ::OrthancClient::Internals::Library::GetInstance().GetFunction(49); | |
1098 char* error = function(pimpl_, &result_); | |
1099 ::OrthancClient::Internals::Library::GetInstance().ThrowExceptionIfNeeded(error); | |
1100 return result_; | |
1101 } | |
1102 inline LAAW_UINT32 Instance::GetHeight() | |
1103 { | 1103 { |
1104 LAAW_UINT32 result_; | 1104 LAAW_UINT32 result_; |
1105 typedef char* (LAAW_ORTHANC_CLIENT_CALL_CONV* Function) (void*, LAAW_UINT32*); | 1105 typedef char* (LAAW_ORTHANC_CLIENT_CALL_CONV* Function) (void*, LAAW_UINT32*); |
1106 Function function = (Function) ::OrthancClient::Internals::Library::GetInstance().GetFunction(50); | 1106 Function function = (Function) ::OrthancClient::Internals::Library::GetInstance().GetFunction(50); |
1107 char* error = function(pimpl_, &result_); | 1107 char* error = function(pimpl_, &result_); |
1108 ::OrthancClient::Internals::Library::GetInstance().ThrowExceptionIfNeeded(error); | 1108 ::OrthancClient::Internals::Library::GetInstance().ThrowExceptionIfNeeded(error); |
1109 return result_; | 1109 return result_; |
1110 } | 1110 } |
1111 inline LAAW_UINT32 Instance::GetPitch() | 1111 inline LAAW_UINT32 Instance::GetHeight() |
1112 { | 1112 { |
1113 LAAW_UINT32 result_; | 1113 LAAW_UINT32 result_; |
1114 typedef char* (LAAW_ORTHANC_CLIENT_CALL_CONV* Function) (void*, LAAW_UINT32*); | 1114 typedef char* (LAAW_ORTHANC_CLIENT_CALL_CONV* Function) (void*, LAAW_UINT32*); |
1115 Function function = (Function) ::OrthancClient::Internals::Library::GetInstance().GetFunction(51); | 1115 Function function = (Function) ::OrthancClient::Internals::Library::GetInstance().GetFunction(51); |
1116 char* error = function(pimpl_, &result_); | 1116 char* error = function(pimpl_, &result_); |
1117 ::OrthancClient::Internals::Library::GetInstance().ThrowExceptionIfNeeded(error); | 1117 ::OrthancClient::Internals::Library::GetInstance().ThrowExceptionIfNeeded(error); |
1118 return result_; | 1118 return result_; |
1119 } | 1119 } |
1120 inline LAAW_UINT32 Instance::GetPitch() | |
1121 { | |
1122 LAAW_UINT32 result_; | |
1123 typedef char* (LAAW_ORTHANC_CLIENT_CALL_CONV* Function) (void*, LAAW_UINT32*); | |
1124 Function function = (Function) ::OrthancClient::Internals::Library::GetInstance().GetFunction(52); | |
1125 char* error = function(pimpl_, &result_); | |
1126 ::OrthancClient::Internals::Library::GetInstance().ThrowExceptionIfNeeded(error); | |
1127 return result_; | |
1128 } | |
1120 inline ::Orthanc::PixelFormat Instance::GetPixelFormat() | 1129 inline ::Orthanc::PixelFormat Instance::GetPixelFormat() |
1121 { | 1130 { |
1122 LAAW_INT32 result_; | 1131 LAAW_INT32 result_; |
1123 typedef char* (LAAW_ORTHANC_CLIENT_CALL_CONV* Function) (void*, LAAW_INT32*); | 1132 typedef char* (LAAW_ORTHANC_CLIENT_CALL_CONV* Function) (void*, LAAW_INT32*); |
1124 Function function = (Function) ::OrthancClient::Internals::Library::GetInstance().GetFunction(52); | 1133 Function function = (Function) ::OrthancClient::Internals::Library::GetInstance().GetFunction(53); |
1125 char* error = function(pimpl_, &result_); | 1134 char* error = function(pimpl_, &result_); |
1126 ::OrthancClient::Internals::Library::GetInstance().ThrowExceptionIfNeeded(error); | 1135 ::OrthancClient::Internals::Library::GetInstance().ThrowExceptionIfNeeded(error); |
1127 return static_cast< ::Orthanc::PixelFormat >(result_); | 1136 return static_cast< ::Orthanc::PixelFormat >(result_); |
1128 } | 1137 } |
1129 inline const void* Instance::GetBuffer() | 1138 inline const void* Instance::GetBuffer() |
1130 { | 1139 { |
1131 const void* result_; | 1140 const void* result_; |
1132 typedef char* (LAAW_ORTHANC_CLIENT_CALL_CONV* Function) (void*, const void**); | 1141 typedef char* (LAAW_ORTHANC_CLIENT_CALL_CONV* Function) (void*, const void**); |
1133 Function function = (Function) ::OrthancClient::Internals::Library::GetInstance().GetFunction(53); | 1142 Function function = (Function) ::OrthancClient::Internals::Library::GetInstance().GetFunction(54); |
1134 char* error = function(pimpl_, &result_); | 1143 char* error = function(pimpl_, &result_); |
1135 ::OrthancClient::Internals::Library::GetInstance().ThrowExceptionIfNeeded(error); | 1144 ::OrthancClient::Internals::Library::GetInstance().ThrowExceptionIfNeeded(error); |
1136 return reinterpret_cast< const void* >(result_); | 1145 return reinterpret_cast< const void* >(result_); |
1137 } | 1146 } |
1138 inline const void* Instance::GetBuffer(LAAW_UINT32 y) | 1147 inline const void* Instance::GetBuffer(LAAW_UINT32 y) |
1139 { | 1148 { |
1140 const void* result_; | 1149 const void* result_; |
1141 typedef char* (LAAW_ORTHANC_CLIENT_CALL_CONV* Function) (void*, const void**, LAAW_UINT32); | 1150 typedef char* (LAAW_ORTHANC_CLIENT_CALL_CONV* Function) (void*, const void**, LAAW_UINT32); |
1142 Function function = (Function) ::OrthancClient::Internals::Library::GetInstance().GetFunction(54); | 1151 Function function = (Function) ::OrthancClient::Internals::Library::GetInstance().GetFunction(55); |
1143 char* error = function(pimpl_, &result_, y); | 1152 char* error = function(pimpl_, &result_, y); |
1144 ::OrthancClient::Internals::Library::GetInstance().ThrowExceptionIfNeeded(error); | 1153 ::OrthancClient::Internals::Library::GetInstance().ThrowExceptionIfNeeded(error); |
1145 return reinterpret_cast< const void* >(result_); | 1154 return reinterpret_cast< const void* >(result_); |
1146 } | 1155 } |
1147 inline void Instance::DiscardImage() | 1156 inline void Instance::DiscardImage() |
1148 { | |
1149 typedef char* (LAAW_ORTHANC_CLIENT_CALL_CONV* Function) (void*); | |
1150 Function function = (Function) ::OrthancClient::Internals::Library::GetInstance().GetFunction(55); | |
1151 char* error = function(pimpl_); | |
1152 ::OrthancClient::Internals::Library::GetInstance().ThrowExceptionIfNeeded(error); | |
1153 } | |
1154 inline void Instance::DiscardDicom() | |
1155 { | 1157 { |
1156 typedef char* (LAAW_ORTHANC_CLIENT_CALL_CONV* Function) (void*); | 1158 typedef char* (LAAW_ORTHANC_CLIENT_CALL_CONV* Function) (void*); |
1157 Function function = (Function) ::OrthancClient::Internals::Library::GetInstance().GetFunction(56); | 1159 Function function = (Function) ::OrthancClient::Internals::Library::GetInstance().GetFunction(56); |
1158 char* error = function(pimpl_); | 1160 char* error = function(pimpl_); |
1159 ::OrthancClient::Internals::Library::GetInstance().ThrowExceptionIfNeeded(error); | 1161 ::OrthancClient::Internals::Library::GetInstance().ThrowExceptionIfNeeded(error); |
1160 } | 1162 } |
1163 inline void Instance::DiscardDicom() | |
1164 { | |
1165 typedef char* (LAAW_ORTHANC_CLIENT_CALL_CONV* Function) (void*); | |
1166 Function function = (Function) ::OrthancClient::Internals::Library::GetInstance().GetFunction(57); | |
1167 char* error = function(pimpl_); | |
1168 ::OrthancClient::Internals::Library::GetInstance().ThrowExceptionIfNeeded(error); | |
1169 } | |
1161 inline LAAW_UINT64 Instance::GetDicomSize() | 1170 inline LAAW_UINT64 Instance::GetDicomSize() |
1162 { | 1171 { |
1163 LAAW_UINT64 result_; | 1172 LAAW_UINT64 result_; |
1164 typedef char* (LAAW_ORTHANC_CLIENT_CALL_CONV* Function) (void*, LAAW_UINT64*); | 1173 typedef char* (LAAW_ORTHANC_CLIENT_CALL_CONV* Function) (void*, LAAW_UINT64*); |
1165 Function function = (Function) ::OrthancClient::Internals::Library::GetInstance().GetFunction(57); | 1174 Function function = (Function) ::OrthancClient::Internals::Library::GetInstance().GetFunction(58); |
1166 char* error = function(pimpl_, &result_); | 1175 char* error = function(pimpl_, &result_); |
1167 ::OrthancClient::Internals::Library::GetInstance().ThrowExceptionIfNeeded(error); | 1176 ::OrthancClient::Internals::Library::GetInstance().ThrowExceptionIfNeeded(error); |
1168 return result_; | 1177 return result_; |
1169 } | 1178 } |
1170 inline const void* Instance::GetDicom() | 1179 inline const void* Instance::GetDicom() |
1171 { | 1180 { |
1172 const void* result_; | 1181 const void* result_; |
1173 typedef char* (LAAW_ORTHANC_CLIENT_CALL_CONV* Function) (void*, const void**); | 1182 typedef char* (LAAW_ORTHANC_CLIENT_CALL_CONV* Function) (void*, const void**); |
1174 Function function = (Function) ::OrthancClient::Internals::Library::GetInstance().GetFunction(58); | 1183 Function function = (Function) ::OrthancClient::Internals::Library::GetInstance().GetFunction(59); |
1175 char* error = function(pimpl_, &result_); | 1184 char* error = function(pimpl_, &result_); |
1176 ::OrthancClient::Internals::Library::GetInstance().ThrowExceptionIfNeeded(error); | 1185 ::OrthancClient::Internals::Library::GetInstance().ThrowExceptionIfNeeded(error); |
1177 return reinterpret_cast< const void* >(result_); | 1186 return reinterpret_cast< const void* >(result_); |
1178 } | 1187 } |
1179 } | 1188 } |