Index: tools/dom/scripts/databasebuilder.py |
diff --git a/tools/dom/scripts/databasebuilder.py b/tools/dom/scripts/databasebuilder.py |
index 458f570ae888ed06fe73aba728d79a56ef0f13c8..38575171ca0f9a4253ee2c95ca0ffd601aa699ef 100755 |
--- a/tools/dom/scripts/databasebuilder.py |
+++ b/tools/dom/scripts/databasebuilder.py |
@@ -817,6 +817,15 @@ class DatabaseBuilder(object): |
print ' (GET/SET) - attribute has relationship' |
print ' RETURN - operation\'s returned value has relationship' |
print ' (ARGUMENT) - operation\'s argument(s) has relationship' |
+ print '' |
+ print ' (New) - After dictionary name if constructor(s) exist' |
+ print ' (Ops,Props,New) after a NoInterfaceObject name is defined as:' |
+ print ' Ops - number of operations for a NoInterfaceObject' |
+ print ' Props - number of properties for a NoInterfaceObject' |
+ print ' New - T(#) number constructors for a NoInterfaceObject' |
+ print ' F no constructors for a NoInterfaceObject' |
+ print ' e.g., an interface 5 operations, 3 properties and 2' |
+ print ' constructors would display (5,3,T(2))' |
print '\n\nExamination Complete\n' |
@@ -825,11 +834,26 @@ class DatabaseBuilder(object): |
# | Dictionary | Used In Interface | Usage Operation/Attribute | |
print '\n\n' |
title_bar = ['Dictionary', 'Used In Interface', 'Usage Operation/Attribute'] if check_dictionaries \ |
- else ['NoInterfaceObject', 'Used In Interface', 'Usage Operation/Attribute'] |
+ else ['NoInterfaceObject (Ops,Props,New)', 'Used In Interface', 'Usage Operation/Attribute'] |
self._tabulate_title(title_bar) |
diags = self._diag_dictionaries if check_dictionaries else self._diag_no_interfaces |
for diag in diags: |
- self._tabluate([diag['dictionary' if check_dictionaries else 'no_interface_object'].id, '', '']) |
+ if not(check_dictionaries): |
+ interface = diag['no_interface_object'] |
+ ops_count = len(interface.operations) |
+ properties_count = len(interface.attributes) |
+ any_constructors = 'Constructor' in interface.ext_attrs |
+ constructors = 'T(%s)' % len(interface.ext_attrs['Constructor']) if any_constructors else 'F' |
+ interface_detail = '%s (%s,%s,%s)' % \ |
+ (diag['no_interface_object'].id, |
+ ops_count, |
+ properties_count, |
+ constructors) |
+ self._tabluate([interface_detail, '', '']) |
+ else: |
+ dictionary = diag['dictionary'] |
+ any_constructors = 'Constructor' in dictionary.ext_attrs |
+ self._tabluate(['%s%s' % (dictionary.id, ' (New)' if any_constructors else ''), '', '']) |
Alan Knight
2015/03/18 19:13:03
typo?
terry
2015/03/18 19:22:36
Yep, fixed.
|
for usage in diag['usages']: |
detail = '' |
if 'attribute' in usage: |