Changeset 18 for trunk/src/SDMemTable.h


Ignore:
Timestamp:
06/30/04 16:34:24 (20 years ago)
Author:
mmarquar
Message:

Moved SDHeader from SDReader to SDConatiner. Added header to SDMemTable. Added access funtions to nif,nbema,npol,nchan

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/SDMemTable.h

    r16 r18  
    5050class SDMemTable {
    5151public:
    52   SDMemTable(const std::string& name= "SDInputTable.tbl");
     52  SDMemTable();
     53  SDMemTable(const std::string& name);
    5354  SDMemTable(const SDMemTable& other, Bool clear=False);
    5455
     
    5657  virtual ~SDMemTable();
    5758  virtual bool putSDContainer(const SDContainer& sdc);
    58   virtual bool putSDHeader(const SDHeader& sdh) {;}
     59  virtual bool putSDHeader(const SDHeader& sdh);
    5960  virtual bool putSDFreqTable(const SDFrequencyTable& sdft) {;}
    6061 
     
    7273  virtual bool setBeam(Int whichBeam=0);
    7374  virtual bool setPol(Int whichPol=0);   
     75  //sets the user mask
     76  virtual bool setMask(const std::vector<int>& whichChans);
     77 
    7478
    7579  virtual Int getIF() { return IFSel_; }
    7680  virtual Int getBeam() { return beamSel_; }
    7781  virtual Int getPol() { return polSel_; }   
    78 
    79   //sets the mask
    80   virtual bool setMask(const std::vector<int>& whichChans);
    81  
     82 
    8283  virtual void summary() const;
    8384 
     
    8586  void makePersistent(const std::string& filename);
    8687  SDMemTable getScan(Int scanID);
     88
     89  const TableRecord& getHeader() const {;}
    8790  const Table& table() { return table_; }
     91
     92  Int nBeam() const;
     93  Int nIF() const;
     94  Int nPol() const;
     95  Int nChan() const;
    8896
    8997private:
    9098  void setup();
    91   //Int nBeam_,nIF_,nChan_,nPol_;
     99
    92100  Int IFSel_,beamSel_,polSel_;
    93101  std::vector<bool> chanMask_;
Note: See TracChangeset for help on using the changeset viewer.