var ns = NameSpace.ns(ns_name); // fetch all the elements in namespace...
// as a type => list of them..
+
+
- var actions = {
- 'objects' : 'Class',
- 'interfaces' : 'Interface',
- //'structs' : 'Struct',
- //'unions' : 'Union',
- //'enums' : 'Enum'
-
- };
- for (var i in actions) {
- // we flag GLib as a GObject lib...
+
- ns[i].forEach( function(n) {
-
- print('NameSpace.factory(' + actions[i] +','+ns_name+','+n);
- var odata = NameSpace.factory(actions[i], ns_name, n);
- print(JSON.stringify(odata,null,4));
- seed.quit();
- });
- }
+ ns['objects'].forEach( function(n) {
+
+ print('NameSpace.factory(Class,'+ns_name+'.'+n+')');
+ var odata = NameSpace.factory('Class', ns_name, n);
+ print(JSON.stringify(odata.childClasses,null,4));
+ });
+ ns['interfaces'].forEach( function(n) {
+
+ print('NameSpace.factory(Interface,'+ns_name+'.'+n+')');
+ var odata = NameSpace.factory('Interface', ns_name, n);
+ print(JSON.stringify(odata.implementedBy,null,4));
+ });
+ // what we are interested in..
+
+
});