source: trunk/src/STMolecules.h@ 3117

Last change on this file since 3117 was 3106, checked in by Takeshi Nakazato, 8 years ago

New Development: No

JIRA Issue: No

Ready for Test: Yes/No

Interface Changes: Yes/No

What Interface Changed: Please list interface changes

Test Programs: List test programs

Put in Release Notes: Yes/No

Module(s): Module Names change impacts.

Description: Describe your changes here...


Check-in asap modifications from Jim regarding casacore namespace conversion.

File size: 2.3 KB
Line 
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#include <tables/Tables/ArrayColumn.h>
20#include <casa/Arrays/Array.h>
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:
33 STMolecules() {;}
34 explicit STMolecules(casacore::Table tab);
35 explicit STMolecules( const Scantable& parent);
36
37 virtual ~STMolecules();
38
39 STMolecules& operator=(const STMolecules& other);
40
41/***
42 casacore::uInt addEntry( casacore::Double restfreq, const casacore::String& name="",
43 const casacore::String& formattedname="");
44***/
45
46 casacore::uInt addEntry( casacore::Vector<casacore::Double> restfreq,
47 const casacore::Vector<casacore::String>& name=casacore::Vector<casacore::String>(0),
48 const casacore::Vector<casacore::String>& formattedname=casacore::Vector<casacore::String>(0));
49
50/***
51 void getEntry( casacore::Double& restfreq, casacore::String& name,
52 casacore::String& formattedname, casacore::uInt id) const;
53***/
54 void getEntry( casacore::Vector<casacore::Double>& restfreq,
55 casacore::Vector<casacore::String>& name,
56 casacore::Vector<casacore::String>& formattedname,
57 casacore::uInt id) const;
58
59 std::vector<double> getRestFrequencies() const;
60 std::vector<double> getRestFrequency( casacore::uInt id ) const;
61 const casacore::String& name() const { return name_; }
62 int nrow() const;
63
64private:
65 void setup();
66 static const casacore::String name_;
67 //casacore::Table table_;
68 //casacore::ScalarColumn<casacore::uInt> freqidCol_;
69 //casacore::ScalarColumn<casacore::Double> restfreqCol_;
70 casacore::ArrayColumn<casacore::Double> restfreqCol_;
71 //casacore::ScalarColumn<casacore::String> nameCol_;
72 casacore::ArrayColumn<casacore::String> nameCol_;
73 //casacore::ScalarColumn<casacore::String> formattednameCol_; // e.g. latex
74 casacore::ArrayColumn<casacore::String> formattednameCol_; // e.g. latex
75
76};
77
78}
79
80#endif
Note: See TracBrowser for help on using the repository browser.