- Timestamp:
- 03/06/06 10:55:24 (19 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/STMolecules.cpp
r856 r870 95 95 } 96 96 97 void STMolecules::getEntry( Double restfreq, String& name,98 String& formattedname, uInt id ) 97 void STMolecules::getEntry( Double& restfreq, String& name, 98 String& formattedname, uInt id ) const 99 99 { 100 100 Table t = table_(table_.col("ID") == Int(id) ); … … 118 118 } 119 119 120 double asap::STMolecules::getRestFrequency( uInt id ) const 121 { 122 Table t = table_(table_.col("ID") == Int(id) ); 123 if (t.nrow() == 0 ) { 124 throw(AipsError("STMolecules::getRestFrequency - id out of range")); 125 } 126 ROTableRow row(t); 127 const TableRecord& rec = row.get(0); 128 return double(rec.asDouble("RESTFREQUENCY")); 129 } 130 120 131 121 132 }//namespace -
trunk/src/STMolecules.h
r856 r870 40 40 const casa::String& formattedname=""); 41 41 42 void getEntry( casa::Double restfreq, casa::String& name,43 casa::String& formattedname, casa::uInt id) ;42 void getEntry( casa::Double& restfreq, casa::String& name, 43 casa::String& formattedname, casa::uInt id) const; 44 44 45 45 std::vector<double> getRestFrequencies() const; 46 46 double getRestFrequency( casa::uInt id ) const; 47 47 const casa::String& name() const { return name_; } 48 48
Note:
See TracChangeset
for help on using the changeset viewer.