Changeset 164 for trunk/src/SDMemTable.cc
- Timestamp:
- 12/27/04 20:10:59 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/SDMemTable.cc
r158 r164 104 104 } 105 105 106 SDMemTable SDMemTable::getScan(Int scanID) {106 SDMemTable SDMemTable::getScan(Int scanID) const { 107 107 String cond("SELECT * from $1 WHERE SCANID == "); 108 108 cond += String::toString(scanID); … … 122 122 } 123 123 124 SDMemTable SDMemTable::getSource(const std::string& source) {124 SDMemTable SDMemTable::getSource(const std::string& source) const { 125 125 String cond("SELECT * from $1 WHERE SRCNAME == "); 126 126 cond += source; … … 321 321 } 322 322 323 std::vector<double> SDMemTable::getAbcissa(Int whichRow) {323 std::vector<double> SDMemTable::getAbcissa(Int whichRow) const { 324 324 std::vector<double> absc(nChan()); 325 325 Vector<Double> absc1(nChan()); … … 416 416 } 417 417 418 std::string SDMemTable::getAbcissaString(Int whichRow) 418 std::string SDMemTable::getAbcissaString(Int whichRow) const 419 419 { 420 420 ROArrayColumn<uInt> fid(table_, "FREQID"); … … 471 471 } 472 472 473 void SDMemTable::getSpectrum(Vector<Float>& spectrum, Int whichRow) {473 void SDMemTable::getSpectrum(Vector<Float>& spectrum, Int whichRow) const { 474 474 ROArrayColumn<Float> spec(table_, "SPECTRA"); 475 475 Array<Float> arr; … … 524 524 */ 525 525 MaskedArray<Float> SDMemTable::rowAsMaskedArray(uInt whichRow, 526 Bool useSelection) { 526 Bool useSelection) const 527 { 527 528 ROArrayColumn<Float> spec(table_, "SPECTRA"); 528 529 Array<Float> arr; … … 832 833 }; 833 834 834 std::string SDMemTable::summary() {835 std::string SDMemTable::summary() { 835 836 ROScalarColumn<Int> scans(table_, "SCANID"); 836 837 ROScalarColumn<String> srcs(table_, "SRCNAME");
Note: See TracChangeset
for help on using the changeset viewer.