Changeset 50 for trunk/src/SDMemTable.h


Ignore:
Timestamp:
07/15/04 15:58:02 (20 years ago)
Author:
mmarquar
Message:

Removed name_ related fields and functions.
Changed getTime to sprint out string of MVTime.
Added range checks for setIF/Pol/Beam functions.
Added const to get type functions, where it was missing.
Removed debugging cerr from getAbscissa
Added setCoordinate to set the Frequency Table from SpectralCoordinate?.
Added nScans()
Added more info printing to summary

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/SDMemTable.h

    r39 r50  
    5454  // create a new (empty) SDMemTable
    5555  SDMemTable();
    56   // create a SDMemTable from a )aips++) table on disk
     56  // create a SDMemTable from an (aips++) table on disk
    5757  SDMemTable(const std::string& name);
    5858
     
    7878  // get spectrum,mask and tsys for the given row, at the selected
    7979  // cursor - all as stl vectors
    80   virtual std::vector<float> getSpectrum(Int whichRow);
    81   virtual std::vector<bool> getMask(Int whichRow) const;
     80  virtual std::vector<float> getSpectrum(Int whichRow=0) const;
     81  virtual std::vector<bool> getMask(Int whichRow=0) const;
    8282
    83   virtual Float getTsys(Int whichRow) const;
     83  virtual Float getTsys(Int whichRow=0) const;
    8484  // get all as aips++ Vectors
    8585  virtual void getSpectrum(Vector<Float>& spectrum, Int whichRow=0);
     
    8787
    8888  // get info for current row
    89   virtual Double getTime(Int whichRow) const ;
    90   virtual std::string getSourceName(Int whichRow) const;
    91  
     89  std::string getTime(Int whichRow=0) const ;
     90  std::string getSourceName(Int whichRow=0) const;
     91  double getInterval(Int whichRow=0) const;
     92
    9293  // set the current value
    9394  virtual bool setIF(Int whichIF=0);
     
    102103  virtual Int getPol() { return polSel_; }   
    103104 
     105  // number of scans in table
     106  virtual Int nScans() const;
     107
    104108  // print a summary to stdout
    105109  virtual void summary() const;
     
    130134
    131135  SpectralCoordinate getCoordinate(uInt whichIdx) const;
     136  Bool setCoordinate(const SpectralCoordinate& speccord, uInt whichIdx);
     137
    132138  std::vector<double> getAbscissa(int whichRow,
    133139                                  const std::string& whichUnit="GHz",
     
    139145  Int IFSel_,beamSel_,polSel_;
    140146  std::vector<bool> chanMask_; 
    141   String name_;
    142   // the unerlying memory table
     147  // the underlying memory table
    143148  Table table_;
    144149};
Note: See TracChangeset for help on using the changeset viewer.