Changeset 4310
- Timestamp:
- 07/11/07 13:44:11 (6 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
WaveDev/trunk/WaveDev/wavedev/generate/templates/py_comp/genStructure.py
r4308 r4310 38 38 ''' 39 39 40 #TODO: make sure the destination path is correct41 40 #copy over the readme file 42 41 shutil.copy('generate/templates/py_comp/README', compPath) … … 45 44 compPath = compPath + '/' 46 45 47 #TODO: make sure these lines are being written correctly48 46 output = open(compPath + 'setup.py','w') 49 47 ts = "\ … … 166 164 167 165 for line in input_wm.readlines(): 168 #TODO: do find and replace based on component class instance169 166 l_out = line.replace('__CLASS_NAME__',comp.name) 170 167 output_wm.write(l_out) … … 183 180 """ This function writes the corba declarations of the ports to the init method""" 184 181 185 #TODO: test this method186 182 inCount = 0 187 183 for p in comp.ports: … … 204 200 #------------------------------------------------------------------------------------- 205 201 def writeGetPort(self,output,comp): 206 #TODO: comment this method207 #TODO: test this method208 202 inCount = 0 209 203 for p in comp.ports: … … 299 293 ts = ts + " "*4 + "def pushPacket(self, I, Q):\n" 300 294 ts = ts + " "*8 + "self.parent.work_mod.AddData(I, Q)\n" 301 #TODO: write in timing port support302 295 ts = ts + "\n" 303 296 output.write(ts) … … 310 303 def writeDataOutClassDefs(self,output,comp): 311 304 '''generates the code for the out port class definitions''' 312 #TODO: test this method313 305 def_types_written = " " #keeps track of the interface names that have been written already so that a certain interface (e.g., complexShort) does not get defined more than once 314 306 out_port_count = -1 … … 384 376 output.write(ts) 385 377 386 #TODO: add code for timing support387 378 388 379 def_types_written = def_types_written + p.interface.name … … 436 427 #------------------------------------------------------------------------------------ 437 428 def writeTimingMessageDef(self, output,c): 438 # TODO: test this method439 429 if c.timing == True: 440 430 ts = "\n#------------------------------------------------------------------\n"