Changeset 68
- Timestamp:
- 07/19/04 10:59:31 (20 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/SDMemTable.cc
r50 r68 172 172 } 173 173 174 bool SDMemTable::setMask( const std::vector<int>&whichChans) {174 bool SDMemTable::setMask(std::vector<int> whichChans) { 175 175 ROArrayColumn<uChar> spec(table_, "FLAGTRA"); 176 176 … … 279 279 } 280 280 281 void SDMemTable::getSpectrum(Vector<Float>& spectrum, Int whichRow =0) {281 void SDMemTable::getSpectrum(Vector<Float>& spectrum, Int whichRow) { 282 282 ROArrayColumn<Float> spec(table_, "SPECTRA"); 283 283 Array<Float> arr; … … 298 298 } 299 299 300 void SDMemTable::getMask(Vector<Bool>& mask, Int whichRow =0) const {300 void SDMemTable::getMask(Vector<Bool>& mask, Int whichRow) const { 301 301 ROArrayColumn<uChar> spec(table_, "FLAGTRA"); 302 302 Array<uChar> arr; … … 392 392 if (whichIdx > t.nrow() ) { 393 393 cerr << "SDMemTable::getCoordinate - whichIdx out of range" << endl; 394 return ;394 return SpectralCoordinate(); 395 395 } 396 396 Double rp,rv,inc; … … 420 420 if (whichIdx > t.nrow() ) { 421 421 cerr << "SDMemTable::setCoordinate - whichIdx out of range" << endl; 422 return ;422 return False; 423 423 } 424 424 ScalarColumn<Double> rpc(t, "REFPIX"); -
trunk/src/SDMemTable.h
r50 r68 96 96 virtual bool setPol(Int whichPol=0); 97 97 //sets the user mask 98 virtual bool setMask( const std::vector<int>&whichChans);98 virtual bool setMask(std::vector<int> whichChans); 99 99 100 100 // return the currently selected values
Note:
See TracChangeset
for help on using the changeset viewer.