ConfigTreeNode.py
changeset 883 235a9ec83b95
parent 842 3c4c1e076a34
child 967 8a339cd61cb4
equal deleted inserted replaced
882:3c6ce0a5ab2c 883:235a9ec83b95
   193     
   193     
   194     def CTNImport(self, src_CTNPath):
   194     def CTNImport(self, src_CTNPath):
   195         shutil.copytree(src_CTNPath, self.CTNPath)
   195         shutil.copytree(src_CTNPath, self.CTNPath)
   196         return True
   196         return True
   197 
   197 
       
   198     def CTNGlobalInstances(self):
       
   199         """
       
   200         @return: [(instance_name, instance_type),...]
       
   201         """
       
   202         return []
       
   203     
       
   204     def _GlobalInstances(self):
       
   205         instances = self.CTNGlobalInstances()
       
   206         for CTNChild in self.IECSortedChildren():
       
   207             instances.extend(CTNChild._GlobalInstances())
       
   208         return instances
       
   209     
   198     def CTNGenerate_C(self, buildpath, locations):
   210     def CTNGenerate_C(self, buildpath, locations):
   199         """
   211         """
   200         Generate C code
   212         Generate C code
   201         @param locations: List of complete variables locations \
   213         @param locations: List of complete variables locations \
   202             [{"IEC_TYPE" : the IEC type (i.e. "INT", "STRING", ...)
   214             [{"IEC_TYPE" : the IEC type (i.e. "INT", "STRING", ...)