Changeset 2720 for trunk/src/STApplyTable.h
- Timestamp:
- 01/09/13 19:27:23 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/STApplyTable.h
r2703 r2720 22 22 #include "Scantable.h" 23 23 #include "STSelector.h" 24 #include "STCalEnum.h" 24 25 25 26 namespace asap { … … 36 37 STApplyTable() {;} 37 38 STApplyTable(const Scantable& parent, const casa::String& name); 39 STApplyTable(const casa::String &name); 38 40 39 41 virtual ~STApplyTable(); … … 55 57 virtual void attachOptionalColumns() = 0; 56 58 57 casa:: Int nrow() {return table_.nrow();}59 casa::uInt nrow() {return table_.nrow();} 58 60 59 61 casa::Vector<casa::uInt> getScan() {return scanCol_.getColumn();} … … 64 66 casa::Vector<casa::Double> getTime() {return timeCol_.getColumn();} 65 67 66 void setSelection(STSelector &sel );68 void setSelection(STSelector &sel, bool sortByTime=false); 67 69 void unsetSelection(); 70 casa::String caltype(); 68 71 69 72 void save(const casa::String &name); 73 74 virtual casa::uInt nchan(casa::uInt ifno) = 0; 75 76 // static methods 77 static STCalEnum::CalType getCalType(const casa::String &name); 78 static STCalEnum::CalType getCalType(casa::CountedPtr<STApplyTable> tab); 79 static STCalEnum::CalType getCalType(STApplyTable *tab); 70 80 71 81 protected: 72 82 void setbasedata(casa::uInt irow, casa::uInt scanno, casa::uInt cycleno, 73 83 casa::uInt beamno, casa::uInt ifno, casa::uInt polno, 74 casa::Double time); 84 casa::uInt freqid, casa::Double time); 85 casa::Block<casa::Double> getFrequenciesRow(casa::uInt id); 75 86 76 87 casa::Table table_, originaltable_; 77 casa::ScalarColumn<casa::uInt> scanCol_, cycleCol_, beamCol_, ifCol_, polCol_ ;88 casa::ScalarColumn<casa::uInt> scanCol_, cycleCol_, beamCol_, ifCol_, polCol_, freqidCol_; 78 89 casa::ScalarColumn<casa::Double> timeCol_; 79 90 casa::MEpoch::ScalarColumn timeMeasCol_; … … 82 93 83 94 private: 95 static STCalEnum::CalType stringToType(const casa::String &caltype); 84 96 }; 85 97
Note: See TracChangeset
for help on using the changeset viewer.