Changeset 6208

Show
Ignore:
Timestamp:
01/21/08 18:35:34 (5 years ago)
Author:
balister
Message:

Clean up auotgenerated code, and pass data through for testing.

Location:
components/WFMDemod/trunk/WFMDemod
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • components/WFMDemod/trunk/WFMDemod/WFMdemod.cpp

    r6197 r6208  
    2929    Resource_impl(uuid), component_running(condition)  
    3030{ 
    31     dataIn_0 = new standardInterfaces_i::complexShort_p("dataIn"); 
    32     dataOut_0 = new standardInterfaces_i::complexShort_u("dataOut"); 
     31    dataIn = new standardInterfaces_i::complexShort_p("dataIn"); 
     32    dataOut = new standardInterfaces_i::complexShort_u("dataOut"); 
    3333 
    3434    //Create the thread for the writer's processing function  
     
    4242WFMDemod_i::~WFMDemod_i(void) 
    4343{    
    44     delete dataIn_0; 
    45     delete dataOut_0; 
     44    delete dataIn; 
     45    delete dataOut; 
    4646} 
    4747 
     
    5959    CORBA::Object_var p; 
    6060 
    61     p = dataIn_0->getPort(portName); 
     61    p = dataIn->getPort(portName); 
    6262 
    6363    if (!CORBA::is_nil(p)) 
    6464        return p._retn(); 
    6565 
    66     p = dataOut_0->getPort(portName); 
     66    p = dataOut->getPort(portName); 
    6767 
    6868    if (!CORBA::is_nil(p)) 
     
    133133    DEBUG(3, WFMDemod, "ProcessData() invoked") 
    134134 
    135     PortTypes::ShortSequence I_out_0, Q_out_0; 
     135    PortTypes::ShortSequence I_out, Q_out; 
    136136 
    137137 
    138     PortTypes::ShortSequence *I_in_0(NULL), *Q_in_0(NULL); 
    139     CORBA::UShort I_in_0_length, Q_in_0_length; 
     138    PortTypes::ShortSequence *I_in(NULL), *Q_in(NULL); 
    140139 
    141140    while(1) 
    142141    { 
    143         dataIn_0->getData(I_in_0, Q_in_0); 
     142        dataIn->getData(I_in, Q_in); 
    144143 
    145         I_in_0_length = I_in_0->length(); 
    146         Q_in_0_length = Q_in_0->length(); 
     144        I_out = *I_in; 
     145        Q_out = *Q_in; 
    147146 
    148         I_out_0.length(); //must define length of output 
    149         Q_out_0.length(); //must define length of output 
    150  
    151         /*insert code here to do work*/ 
    152  
    153  
    154  
    155  
    156  
    157  
    158         dataIn_0->bufferEmptied(); 
    159         dataOut_0->pushPacket(I_out_0, Q_out_0); 
     147        dataIn->bufferEmptied(); 
     148        dataOut->pushPacket(I_out, Q_out); 
    160149    } 
    161150} 
  • components/WFMDemod/trunk/WFMDemod/WFMdemod.h

    r6197 r6208  
    9595     
    9696    // list components provides and uses ports 
    97         standardInterfaces_i::complexShort_p *dataIn_0; 
    98         standardInterfaces_i::complexShort_u *dataOut_0; 
     97        standardInterfaces_i::complexShort_p *dataIn; 
     98        standardInterfaces_i::complexShort_u *dataOut; 
    9999     
    100100};