Changeset 320


Ignore:
Timestamp:
01/28/05 19:12:28 (19 years ago)
Author:
kil064
Message:

document SDFreqTable functions a bit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/SDContainer.h

    r314 r320  
    7070  SDFrequencyTable() : nFreq_(0) {;}
    7171  virtual ~SDFrequencyTable() {;}
    72  
    73   casa::Int length() const { return nFreq_;};// # of stored Frequencies
    74   void setLength(casa::Int length) {nFreq_ = length;};
     72
     73// Add a new entry or match an existing one. Returns the index into the table
     74  casa::Int addFrequency(casa::Double refPix, casa::Double refVal,
     75                         casa::Double inc);
     76// 
     77  casa::Int length() const { return nFreq_;}          // # of stored Frequencies
     78  void setLength(casa::Int length) {nFreq_ = length;}
     79
     80// Get attributes
    7581  casa::Double referencePixel(casa::uInt which) const { return refPix_[which];}
    7682  casa::Double referenceValue(casa::uInt which) const { return refVal_[which];}
     
    8187                       casa::String& rfunit ) const ;
    8288
    83   // returns the index into the table
    84   // this creates a new one or returns an existing one
    85   casa::Int addFrequency(casa::Double refPix, casa::Double refVal,
    86                          casa::Double inc);
     89// Set attributes
    8790  void setEquinox(casa::Float eq) { equinox_ = eq; }
    8891  void setRefFrame(const casa::String& reff) { refFrame_ = reff; }
    8992  void addRestFrequency(casa::Double);
    90   void setRestFrequencyUnit(const casa::String& theunit) {
    91     restFreqUnit_ = theunit;
    92   };
     93  void setRestFrequencyUnit(const casa::String& theunit) {restFreqUnit_ = theunit;}
    9394
    9495private:
Note: See TracChangeset for help on using the changeset viewer.