Changeset 67


Ignore:
Timestamp:
07/19/04 10:58:42 (20 years ago)
Author:
mmarquar
Message:

Fixed various errors arising when compiled without warning suppression.

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/SDContainer.cc

    r47 r67  
    187187}
    188188
    189 const Array<Float>& SDContainer::getSpectrum(uInt whichBeam, uInt whichIF) const {
     189Array<Float> SDContainer::getSpectrum(uInt whichBeam, uInt whichIF) const {
    190190  Matrix<Float> spectra(nChan_, nPol_);
    191191
     
    218218  }
    219219
    220   return spectra;
    221 }
    222 
    223 const Array<uChar>& SDContainer::getFlags(uInt whichBeam, uInt whichIF) const
     220  return spectra.copy();
     221}
     222
     223Array<uChar> SDContainer::getFlags(uInt whichBeam, uInt whichIF) const
    224224{
    225225  Matrix<uChar> flagtra(nChan_, nPol_);
     
    253253  }
    254254
    255   return flagtra;
    256 }
    257 
    258 const Array<Float>& SDContainer::getTsys(uInt whichBeam, uInt whichIF) const
     255  return flagtra.copy();
     256}
     257
     258Array<Float> SDContainer::getTsys(uInt whichBeam, uInt whichIF) const
    259259{
    260260  Vector<Float> tsys(nPol_);
     
    281281    o0++;
    282282  }
    283   return tsys;
     283  return tsys.copy();
    284284}
    285285
  • trunk/src/SDContainer.h

    r47 r67  
    120120  Bool putFreqMap(const Vector<uInt>& freqs);
    121121 
    122   const Array<Float>& getSpectrum(uInt whichBeam, uInt whichIF) const;
    123   const Array<uChar>& getFlags(uInt whichBeam, uInt whichIF) const;
    124   const Array<Float>& getTsys(uInt whichBeam, uInt whichIF) const;
     122  Array<Float> getSpectrum(uInt whichBeam, uInt whichIF) const;
     123  Array<uChar> getFlags(uInt whichBeam, uInt whichIF) const;
     124  Array<Float> getTsys(uInt whichBeam, uInt whichIF) const;
    125125
    126126  const Array<Float>& getSpectrum() const { return spectrum_; }
Note: See TracChangeset for help on using the changeset viewer.