Changeset 21 for trunk/src/SDMemTable.h


Ignore:
Timestamp:
07/05/04 18:09:31 (20 years ago)
Author:
mmarquar
Message:

Added retrieval functions for SDHeader and SDContainer.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/SDMemTable.h

    r19 r21  
    6969  virtual bool putSDHeader(const SDHeader& sdh);
    7070  virtual bool putSDFreqTable(const SDFrequencyTable& sdft) {;}
     71
     72  //get the dat wrapped up in a meta container
     73  virtual SDContainer getSDContainer(uInt whichRow=0) const;
     74  virtual SDHeader getSDHeader() const;
    7175 
    7276  // get spectrum,mask and tsys for the given row, at the selected
    73   // cursor
    74   virtual std::vector<float> getSpectrum(Int whichRow) const;
     77  // cursor - all as stl vectors
     78  virtual std::vector<float> getSpectrum(Int whichRow);
    7579  virtual std::vector<bool> getMask(Int whichRow) const;
     80
    7681  virtual Float getTsys(Int whichRow) const;
     82  // get all as aips++ Vectors
     83  virtual void getSpectrum(Vector<Float>& spectrum, Int whichRow=0);
     84  virtual void getMask(Vector<Bool>& mask,Int whichRow=0) const;
    7785
    78   // get info fro current row
     86  // get info for current row
    7987  virtual Double getTime(Int whichRow) const ;
    8088  virtual std::string getSourceName(Int whichRow) const;
     
    104112  SDMemTable getScan(Int scanID);
    105113
    106   const TableRecord& getHeader() const {;}
     114  const TableRecord& getHeader() const {return table_.keywordSet();}
    107115  // get a handle to the "raw" aips++ table
    108116  const Table& table() { return table_; }
Note: See TracChangeset for help on using the changeset viewer.