Changeset 6208
- Timestamp:
- 01/21/08 18:35:34 (5 years ago)
- Location:
- components/WFMDemod/trunk/WFMDemod
- Files:
-
- 2 modified
-
WFMdemod.cpp (modified) (4 diffs)
-
WFMdemod.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
components/WFMDemod/trunk/WFMDemod/WFMdemod.cpp
r6197 r6208 29 29 Resource_impl(uuid), component_running(condition) 30 30 { 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"); 33 33 34 34 //Create the thread for the writer's processing function … … 42 42 WFMDemod_i::~WFMDemod_i(void) 43 43 { 44 delete dataIn _0;45 delete dataOut _0;44 delete dataIn; 45 delete dataOut; 46 46 } 47 47 … … 59 59 CORBA::Object_var p; 60 60 61 p = dataIn _0->getPort(portName);61 p = dataIn->getPort(portName); 62 62 63 63 if (!CORBA::is_nil(p)) 64 64 return p._retn(); 65 65 66 p = dataOut _0->getPort(portName);66 p = dataOut->getPort(portName); 67 67 68 68 if (!CORBA::is_nil(p)) … … 133 133 DEBUG(3, WFMDemod, "ProcessData() invoked") 134 134 135 PortTypes::ShortSequence I_out _0, Q_out_0;135 PortTypes::ShortSequence I_out, Q_out; 136 136 137 137 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); 140 139 141 140 while(1) 142 141 { 143 dataIn _0->getData(I_in_0, Q_in_0);142 dataIn->getData(I_in, Q_in); 144 143 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; 147 146 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); 160 149 } 161 150 } -
components/WFMDemod/trunk/WFMDemod/WFMdemod.h
r6197 r6208 95 95 96 96 // 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; 99 99 100 100 };