source: trunk/src/STMolecules.h@ 1920

Last change on this file since 1920 was 1819, checked in by Kana Sugimoto, 14 years ago

New Development: No

JIRA Issue: No (merge alma branch to trunk)

Ready for Test: Yes

Interface Changes: No

Test Programs: regressions may work

Module(s): all single dish modules

Description:

Merged all changes in alma (r1386:1818) and newfiller (r1774:1818) branch.


File size: 2.1 KB
RevLine 
[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>
[1819]19#include <tables/Tables/ArrayColumn.h>
20#include <casa/Arrays/Array.h>
[809]21
22#include "STSubTable.h"
23
24namespace asap {
25
26/**
27The Molecules subtable of the Scantable
28
29@author Malte Marquarding
30*/
31class STMolecules : public STSubTable {
32public:
[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
[1819]41/***
[809]42 casa::uInt addEntry( casa::Double restfreq, const casa::String& name="",
43 const casa::String& formattedname="");
[1819]44***/
[809]45
[1819]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;
[1819]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;
[1819]57 std::vector<double> getRestFrequency( casa::uInt id ) const;
[856]58 const casa::String& name() const { return name_; }
[1819]59 int nrow() const;
[856]60
[809]61private:
62 void setup();
63 static const casa::String name_;
64 //casa::Table table_;
65 //casa::ScalarColumn<casa::uInt> freqidCol_;
[1819]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
Note: See TracBrowser for help on using the repository browser.