diff CodeAnalysis/GenerateOrthancSDK.py @ 205:234681297600

documented orthanc.LookupDictionary()
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 03 Jul 2024 12:35:13 +0200
parents 65ad095c25d8
children 4e6079e27965
line wrap: on
line diff
--- a/CodeAnalysis/GenerateOrthancSDK.py	Wed Jul 03 12:21:32 2024 +0200
+++ b/CodeAnalysis/GenerateOrthancSDK.py	Wed Jul 03 12:35:13 2024 +0200
@@ -180,6 +180,7 @@
         elif a['sdk_type'] in [ 'int32_t', 'uint32_t', 'uint8_t', 'uint16_t', 'uint64_t' ]:
             arg_type = 'int'
         elif a['sdk_type'] == 'Callable':
+            # This is only used to generate the documentation file "orthanc.pyi"
             arg_type = a['callable_type']
         else:
             raise Exception('Argument type not implemented: %s' % a['sdk_type'])
@@ -212,6 +213,9 @@
         documentation['return_type'] = 'str'
     elif f['return_sdk_type'] in [ 'int32_t', 'uint32_t', 'uint16_t', 'int64_t' ]:
         documentation['return_type'] = 'int'
+    elif f['return_sdk_type'] == 'Dictionary':
+        # This is only used to generate the documentation file "orthanc.pyi"
+        documentation['return_type'] = 'dict'
     else:
         raise Exception('Return type not implemented: %s' % f['return_sdk_type'])