| 1 | //
 | 
|---|
| 2 | // C++ Interface: STMolecules
 | 
|---|
| 3 | //
 | 
|---|
| 4 | // Description:
 | 
|---|
| 5 | //
 | 
|---|
| 6 | //
 | 
|---|
| 7 | // Author: Malte Marquarding <asap@atnf.csiro.au>, (C) 2006
 | 
|---|
| 8 | //
 | 
|---|
| 9 | // Copyright: See COPYING file that comes with this distribution
 | 
|---|
| 10 | //
 | 
|---|
| 11 | //
 | 
|---|
| 12 | #ifndef ASAPSTMOLECULES_H
 | 
|---|
| 13 | #define ASAPSTMOLECULES_H
 | 
|---|
| 14 | 
 | 
|---|
| 15 | #include <casa/aips.h>
 | 
|---|
| 16 | #include <casa/BasicSL/String.h>
 | 
|---|
| 17 | #include <tables/Tables/Table.h>
 | 
|---|
| 18 | #include <tables/Tables/ScalarColumn.h>
 | 
|---|
| 19 | 
 | 
|---|
| 20 | #include "STSubTable.h"
 | 
|---|
| 21 | 
 | 
|---|
| 22 | namespace asap {
 | 
|---|
| 23 | 
 | 
|---|
| 24 | /**
 | 
|---|
| 25 | The Molecules subtable of the Scantable
 | 
|---|
| 26 | 
 | 
|---|
| 27 | @author Malte Marquarding
 | 
|---|
| 28 | */
 | 
|---|
| 29 | class STMolecules : public STSubTable {
 | 
|---|
| 30 | public:
 | 
|---|
| 31 |   STMolecules() {;}
 | 
|---|
| 32 |   explicit STMolecules(casa::Table tab);
 | 
|---|
| 33 |   explicit STMolecules( const Scantable& parent);
 | 
|---|
| 34 | 
 | 
|---|
| 35 |   virtual ~STMolecules();
 | 
|---|
| 36 | 
 | 
|---|
| 37 |   STMolecules& operator=(const STMolecules& other);
 | 
|---|
| 38 | 
 | 
|---|
| 39 |   casa::uInt addEntry( casa::Double restfreq, const casa::String& name="",
 | 
|---|
| 40 |                        const casa::String& formattedname="");
 | 
|---|
| 41 | 
 | 
|---|
| 42 |   void getEntry( casa::Double& restfreq, casa::String& name,
 | 
|---|
| 43 |                  casa::String& formattedname, casa::uInt id) const;
 | 
|---|
| 44 | 
 | 
|---|
| 45 |   std::vector<double> getRestFrequencies() const;
 | 
|---|
| 46 |   double getRestFrequency( casa::uInt id ) const;
 | 
|---|
| 47 |   const casa::String& name() const { return name_; }
 | 
|---|
| 48 | 
 | 
|---|
| 49 | private:
 | 
|---|
| 50 |   void setup();
 | 
|---|
| 51 |   static const casa::String name_;
 | 
|---|
| 52 |   //casa::Table table_;
 | 
|---|
| 53 |   //casa::ScalarColumn<casa::uInt> freqidCol_;
 | 
|---|
| 54 |   casa::ScalarColumn<casa::Double> restfreqCol_;
 | 
|---|
| 55 |   casa::ScalarColumn<casa::String> nameCol_;
 | 
|---|
| 56 |   casa::ScalarColumn<casa::String> formattednameCol_; // e.g. latex
 | 
|---|
| 57 | 
 | 
|---|
| 58 | };
 | 
|---|
| 59 | 
 | 
|---|
| 60 | }
 | 
|---|
| 61 | 
 | 
|---|
| 62 | #endif
 | 
|---|