Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/SDMemTable.h

    r19 r22  
    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;
     
    95103  virtual void summary() const;
    96104 
    97   // the (irrelevant) name
    98   std::string name() const;
    99 
    100105  // write to disk as aips++ table
    101106  void makePersistent(const std::string& filename);
     
    104109  SDMemTable getScan(Int scanID);
    105110
    106   const TableRecord& getHeader() const {;}
     111  const TableRecord& getHeader() const {return table_.keywordSet();}
    107112  // get a handle to the "raw" aips++ table
    108113  const Table& table() { return table_; }
     
    114119  Int nChan() const;
    115120
     121  // return the number of rows (integrations) in the table
     122  Int nRows() const { return table_.nrow(); }
     123
    116124  // return a row as a Masked array, internally converting uChar flags
    117125  // to bool mask
     
    120128
    121129private:
    122   // set up tabel structure
     130  // set up table structure
    123131  void setup();
    124132  // the current cursor into the array
Note: See TracChangeset for help on using the changeset viewer.