comparison CodeAnalysis/GenerateOrthancSDK.py @ 190:0cb98433a382 java-code-model

print statistics
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 02 Jul 2024 17:27:44 +0200
parents 7e8085f80df5
children b0f096d2339e
comparison
equal deleted inserted replaced
188:87e546600cbe 190:0cb98433a382
436 h.write(renderer.render(f.read(), { 436 h.write(renderer.render(f.read(), {
437 'classes' : sortedClasses, 437 'classes' : sortedClasses,
438 'enumerations' : sortedEnumerations, 438 'enumerations' : sortedEnumerations,
439 'global_functions' : sortedGlobalFunctions, 439 'global_functions' : sortedGlobalFunctions,
440 })) 440 }))
441
442
443 countMethods = 0
444 for c in sortedClasses:
445 countMethods += len(c['methods'])
446
447 print('\nNumber of wrapped global functions: %d' % len(sortedGlobalFunctions))
448 print('Number of wrapped methods: %d\n' % countMethods)
449 print('Total number of wrapped global functions or methods: %d\n' % (len(sortedGlobalFunctions) + countMethods))