Changeset 4310

Show
Ignore:
Timestamp:
07/11/07 13:44:11 (6 years ago)
Author:
DrewCormier
Message:

methods have been tested

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • WaveDev/trunk/WaveDev/wavedev/generate/templates/py_comp/genStructure.py

    r4308 r4310  
    3838    ''' 
    3939 
    40     #TODO:  make sure the destination path is correct 
    4140    #copy over the readme file 
    4241    shutil.copy('generate/templates/py_comp/README', compPath) 
     
    4544        compPath = compPath + '/' 
    4645             
    47     #TODO:  make sure these lines are being written correctly 
    4846    output = open(compPath + 'setup.py','w') 
    4947    ts = "\ 
     
    166164 
    167165      for line in input_wm.readlines(): 
    168          #TODO: do find and replace based on component class instance 
    169166         l_out = line.replace('__CLASS_NAME__',comp.name) 
    170167         output_wm.write(l_out) 
     
    183180    """ This function writes the corba declarations of the ports to the init method""" 
    184181 
    185     #TODO: test this method 
    186182    inCount = 0 
    187183    for p in comp.ports: 
     
    204200  #------------------------------------------------------------------------------------- 
    205201  def writeGetPort(self,output,comp): 
    206     #TODO: comment this method 
    207     #TODO: test this method 
    208202    inCount = 0 
    209203    for p in comp.ports: 
     
    299293            ts = ts + " "*4 + "def pushPacket(self, I, Q):\n" 
    300294            ts = ts + " "*8 + "self.parent.work_mod.AddData(I, Q)\n" 
    301             #TODO: write in timing port support 
    302295            ts = ts + "\n" 
    303296            output.write(ts) 
     
    310303  def writeDataOutClassDefs(self,output,comp): 
    311304    '''generates the code for the out port class definitions''' 
    312     #TODO: test this method 
    313305    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 
    314306    out_port_count = -1 
     
    384376            output.write(ts) 
    385377 
    386             #TODO: add code for timing support     
    387378                     
    388379            def_types_written = def_types_written + p.interface.name      
     
    436427  #------------------------------------------------------------------------------------ 
    437428  def writeTimingMessageDef(self, output,c): 
    438     # TODO: test this method 
    439429    if c.timing == True: 
    440430        ts = "\n#------------------------------------------------------------------\n"