Changes in trunk/src/SDMemTable.h [19:22]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/SDMemTable.h
r19 r22 69 69 virtual bool putSDHeader(const SDHeader& sdh); 70 70 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; 71 75 72 76 // 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); 75 79 virtual std::vector<bool> getMask(Int whichRow) const; 80 76 81 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; 77 85 78 // get info f rocurrent row86 // get info for current row 79 87 virtual Double getTime(Int whichRow) const ; 80 88 virtual std::string getSourceName(Int whichRow) const; … … 95 103 virtual void summary() const; 96 104 97 // the (irrelevant) name98 std::string name() const;99 100 105 // write to disk as aips++ table 101 106 void makePersistent(const std::string& filename); … … 104 109 SDMemTable getScan(Int scanID); 105 110 106 const TableRecord& getHeader() const { ;}111 const TableRecord& getHeader() const {return table_.keywordSet();} 107 112 // get a handle to the "raw" aips++ table 108 113 const Table& table() { return table_; } … … 114 119 Int nChan() const; 115 120 121 // return the number of rows (integrations) in the table 122 Int nRows() const { return table_.nrow(); } 123 116 124 // return a row as a Masked array, internally converting uChar flags 117 125 // to bool mask … … 120 128 121 129 private: 122 // set up tab elstructure130 // set up table structure 123 131 void setup(); 124 132 // the current cursor into the array
Note: See TracChangeset
for help on using the changeset viewer.