diff CodeAnalysis/ParseOrthancSDK.py @ 170:b49eeb36cd0d

removed generation of code model, now part of orthanc-java
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 27 Jun 2024 14:26:59 +0200
parents 6fada29b6759
children 46a81ed6e843
line wrap: on
line diff
--- a/CodeAnalysis/ParseOrthancSDK.py	Thu Jun 27 14:14:53 2024 +0200
+++ b/CodeAnalysis/ParseOrthancSDK.py	Thu Jun 27 14:26:59 2024 +0200
@@ -552,7 +552,7 @@
 with open(os.path.join(ROOT, 'GlobalFunctions.mustache'), 'r') as f:
     with open(os.path.join(TARGET, 'sdk_GlobalFunctions.impl.h'), 'w') as h:
         h.write(renderer.render(f.read(), {
-            'global_functions' : globalFunctions,
+            'global_functions' : sortedGlobalFunctions,
         }))
             
 with open(os.path.join(ROOT, 'sdk.cpp.mustache'), 'r') as f:
@@ -560,7 +560,7 @@
         h.write(renderer.render(f.read(), {
             'classes' : sortedClasses,
             'enumerations' : sortedEnumerations,
-            'global_functions' : globalFunctions,
+            'global_functions' : sortedGlobalFunctions,
         }))
             
 with open(os.path.join(ROOT, 'sdk.h.mustache'), 'r') as f:
@@ -570,14 +570,6 @@
         }))
 
 
-with open(os.path.join(TARGET, 'CodeModel.json'), 'w') as f:
-    f.write(json.dumps({
-        'global_functions' : globalFunctions,
-        'classes' : sortedClasses,
-        'enumerations' : sortedEnumerations,
-    }, ensure_ascii = True, indent = 4, sort_keys = True))
-
-
 print('')
 print('Total functions in the SDK: %d' % countAllFunctions)
 print('Total supported functions: %d' % countSupportedFunctions)