ConfigTreeNode.py
changeset 883 235a9ec83b95
parent 842 3c4c1e076a34
child 967 8a339cd61cb4
--- a/ConfigTreeNode.py	Thu Nov 15 22:57:55 2012 +0100
+++ b/ConfigTreeNode.py	Thu Nov 15 23:00:53 2012 +0100
@@ -195,6 +195,18 @@
         shutil.copytree(src_CTNPath, self.CTNPath)
         return True
 
+    def CTNGlobalInstances(self):
+        """
+        @return: [(instance_name, instance_type),...]
+        """
+        return []
+    
+    def _GlobalInstances(self):
+        instances = self.CTNGlobalInstances()
+        for CTNChild in self.IECSortedChildren():
+            instances.extend(CTNChild._GlobalInstances())
+        return instances
+    
     def CTNGenerate_C(self, buildpath, locations):
         """
         Generate C code