Changeset 745 for trunk/src/SDMemTableWrapper.h
- Timestamp:
- 11/28/05 15:25:18 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/SDMemTableWrapper.h
r717 r745 86 86 } 87 87 88 std::vector<float> getStokesSpectrum(int whichRow=0, 89 88 std::vector<float> getStokesSpectrum(int whichRow=0, 89 bool linPol=false) const { 90 90 return table_->getStokesSpectrum(whichRow, linPol); 91 91 } 92 92 93 93 std::vector<float> stokesToPolSpectrum(int whichRow=0, bool linear=false, 94 94 int polIdx=-1) const { 95 95 return table_->stokesToPolSpectrum(whichRow, linear, polIdx); 96 96 } … … 98 98 // std::string getPolarizationLabel(bool linear, bool stokes, bool linPol, int polIdx) const { 99 99 // Boost fails with 4 arguments. 100 std::string getPolarizationLabel(bool linear, bool stokes, 101 100 std::string getPolarizationLabel(bool linear, bool stokes, 101 bool linPol) const { 102 102 int polIdx = -1; 103 103 return table_->getPolarizationLabel(linear, stokes, linPol, polIdx); … … 130 130 return table_->getMask(whichRow); 131 131 } 132 bool setMask(const std::vector<int> mvals) const {133 return table_->setMask(mvals);134 }135 132 136 133 void flag(int whichRow=-1) { … … 169 166 } 170 167 171 bool setRestFreqs(const std::vector<double>& restfreqs, 172 const std::string& unit, 168 bool setRestFreqs(const std::vector<double>& restfreqs, 169 const std::string& unit, 173 170 const std::vector<std::string>& lines, 174 171 const std::string& source, int whichIF) { … … 178 175 casa::Int(whichIF)); 179 176 } 180 181 std::string spectralLines() const { table_->spectralLines();}177 178 std::string spectralLines() const {return table_->spectralLines();} 182 179 183 180 std::vector<double> getRestFreqs() { … … 195 192 SDMemTable* getPtr() {return &(*table_);} 196 193 197 std::string summary(bool verbose=false) const { 198 return table_->summary(verbose); 199 } 200 201 std::vector<std::string> getHistory() { 202 return table_->getHistory(); 203 } 204 void addHistory(const std::string& hist) { 205 table_->addHistory(hist); 194 std::string summary(bool verbose=false) const { 195 return table_->summary(verbose); 196 } 197 198 std::vector<std::string> getHistory() { 199 return table_->getHistory(); 200 } 201 void addHistory(const std::string& hist) { 202 table_->addHistory(hist); 206 203 } 207 204 208 205 void addFit(int whichRow, const std::vector<double>& p, 209 210 211 206 const std::vector<bool>& m, const std::vector<string>& f, 207 const std::vector<int>& c) { 208 212 209 casa::Vector<casa::Double> p2(p); 213 casa::Vector<casa::Bool> m2(m); 210 casa::Vector<casa::Bool> m2(m); 214 211 casa::Vector<casa::String> f2 = mathutil::toVectorString(f); 215 212 casa::Vector<casa::Int> c2(c);
Note: See TracChangeset
for help on using the changeset viewer.