[809] | 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>
|
---|
[1789] | 19 | #include <tables/Tables/ArrayColumn.h>
|
---|
| 20 | #include <casa/Arrays/Array.h>
|
---|
[809] | 21 |
|
---|
| 22 | #include "STSubTable.h"
|
---|
| 23 |
|
---|
| 24 | namespace asap {
|
---|
| 25 |
|
---|
| 26 | /**
|
---|
| 27 | The Molecules subtable of the Scantable
|
---|
| 28 |
|
---|
| 29 | @author Malte Marquarding
|
---|
| 30 | */
|
---|
| 31 | class STMolecules : public STSubTable {
|
---|
| 32 | public:
|
---|
[849] | 33 | STMolecules() {;}
|
---|
[1353] | 34 | explicit STMolecules(casa::Table tab);
|
---|
| 35 | explicit STMolecules( const Scantable& parent);
|
---|
[809] | 36 |
|
---|
| 37 | virtual ~STMolecules();
|
---|
| 38 |
|
---|
[849] | 39 | STMolecules& operator=(const STMolecules& other);
|
---|
| 40 |
|
---|
[1789] | 41 | /***
|
---|
[809] | 42 | casa::uInt addEntry( casa::Double restfreq, const casa::String& name="",
|
---|
| 43 | const casa::String& formattedname="");
|
---|
[1789] | 44 | ***/
|
---|
[809] | 45 |
|
---|
[1789] | 46 | casa::uInt addEntry( casa::Vector<casa::Double> restfreq, const casa::Vector<casa::String>& name=casa::Vector<casa::String>(0),
|
---|
| 47 | const casa::Vector<casa::String>& formattedname=casa::Vector<casa::String>(0));
|
---|
| 48 |
|
---|
| 49 | /***
|
---|
[870] | 50 | void getEntry( casa::Double& restfreq, casa::String& name,
|
---|
| 51 | casa::String& formattedname, casa::uInt id) const;
|
---|
[1789] | 52 | ***/
|
---|
| 53 | void getEntry( casa::Vector<casa::Double>& restfreq, casa::Vector<casa::String>& name,
|
---|
| 54 | casa::Vector<casa::String>& formattedname, casa::uInt id) const;
|
---|
[830] | 55 |
|
---|
[847] | 56 | std::vector<double> getRestFrequencies() const;
|
---|
[1789] | 57 | std::vector<double> getRestFrequency( casa::uInt id ) const;
|
---|
[856] | 58 | const casa::String& name() const { return name_; }
|
---|
[1789] | 59 | int nrow() const;
|
---|
[856] | 60 |
|
---|
[809] | 61 | private:
|
---|
| 62 | void setup();
|
---|
| 63 | static const casa::String name_;
|
---|
| 64 | //casa::Table table_;
|
---|
| 65 | //casa::ScalarColumn<casa::uInt> freqidCol_;
|
---|
[1789] | 66 | //casa::ScalarColumn<casa::Double> restfreqCol_;
|
---|
| 67 | casa::ArrayColumn<casa::Double> restfreqCol_;
|
---|
| 68 | //casa::ScalarColumn<casa::String> nameCol_;
|
---|
| 69 | casa::ArrayColumn<casa::String> nameCol_;
|
---|
| 70 | //casa::ScalarColumn<casa::String> formattednameCol_; // e.g. latex
|
---|
| 71 | casa::ArrayColumn<casa::String> formattednameCol_; // e.g. latex
|
---|
[809] | 72 |
|
---|
| 73 | };
|
---|
| 74 |
|
---|
| 75 | }
|
---|
| 76 |
|
---|
| 77 | #endif
|
---|