casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SplatalogueTable.h
Go to the documentation of this file.
1 //# MSContinuumSubtractor.h: Fit & subtract continuum from spectral line data
2 //# Copyright (C) 2004
3 //# Associated Universities, Inc. Washington DC, USA.
4 //#
5 //# This library is free software; you can redistribute it and/or modify it
6 //# under the terms of the GNU Library General Public License as published by
7 //# the Free Software Foundation; either version 2 of the License, or (at your
8 //# option) any later version.
9 //#
10 //# This library is distributed in the hope that it will be useful, but WITHOUT
11 //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 //# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
13 //# License for more details.
14 //#
15 //# You should have received a copy of the GNU Library General Public License
16 //# along with this library; if not, write to the Free Software Foundation,
17 //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
18 //#
19 //# Correspondence concerning AIPS++ should be addressed as follows:
20 //# Internet email: aips2-request@nrao.edu.
21 //# Postal address: AIPS++ Project Office
22 //# National Radio Astronomy Observatory
23 //# 520 Edgemont Road
24 //# Charlottesville, VA 22903-2475 USA
25 //#
26 //# $Id$
27 //#
28 #ifndef SPLAT_SPLATALOGUETABLE_H
29 #define SPLAT_SPLATALOGUETABLE_H
30 
31 #include <casa/aips.h>
32 
33 #include <casa/Arrays/Vector.h>
34 #include <casa/Containers/Record.h>
35 #include <tables/Tables/Table.h>
36 
37 namespace casa {
38 
39 // <summary>Representation of a Splatalogue casacore::Table</summary>
40 // <use visibility=export>
41 //
42 // <reviewed reviewer="" date="yyyy/mm/dd" tests="" demos="">
43 // </reviewed>
44 //
45 
46 // <etymology>
47 // Splatalogue Table
48 // </etymology>
49 //
50 // <synopsis>
51 // A table containing Splatalogue fields and metadata which holds Splatalogue data.
52 // </synopsis>
53 //
54 // <example>
55 // <srcBlock>
56 
57 // </srcBlock>
58 // </example>
59 //
60 // <motivation>
61 //
62 // </motivation>
63 //
64 // <todo asof="">
65 // </todo>
66 
68 public:
69 
70  const static casacore::String SPECIES;
76  const static casacore::String SMU2;
77  const static casacore::String LOGA;
78  const static casacore::String EL;
79  const static casacore::String EU;
80  const static casacore::String LINELIST;
81  const static casacore::String ISSPLAT;
82 
96 
99  const casacore::String& freqUnit, const casacore::String& smu2Unit,
100  const casacore::String& elUnit, const casacore::String& euUnit
101  );
102 
103  // open an existing splatalogue table. Checks are done to ensure the table
104  // is indeed a SplatalogueTable and not just a generic table. If
105 
106  SplatalogueTable(const casacore::String& tablename);
107 
108  // copy semantics. Tests are done to insure the input table is a splatalogue table.
109  SplatalogueTable(const casacore::Table& table);
110 
112 
113  // Pretty print table contents to a String.
114  casacore::String list() const;
115 
116  casacore::Record toRecord() const;
117 
118 private:
120 
122  //void _defineTable(const casacore::String& tablename, const casacore::uInt nrow);
123  void _construct(const casacore::Bool setup);
124 
125  void _addKeywords();
126 
127 
128 };
129 
130 
131 } //# NAMESPACE CASA - END
132 
133 #endif
static const casacore::String INTENSITY
Create a new table - define shapes, data managers, etc.
Definition: SetupNewTab.h:346
void _construct(const casacore::Bool setup)
void _defineTable(const casacore::String&amp; tablename, const casacore::uInt nrow);
Main interface class to a read/write table.
Definition: Table.h:153
static const casacore::String RECORD_SMU2
static const casacore::String RECORD_QNS
static const casacore::String RECORD_LOGA
static const casacore::String LOGA
static const casacore::String RECORD_EL
static const casacore::String FREQUENCY
static const casacore::String ISSPLAT
static const casacore::String RECORD_CHEMNAME
casacore::Record toRecord() const
casacore::String _elUnit
static const casacore::String SMU2
static const casacore::String RECORD_INTENSITY
static const casacore::String EL
casacore::String _freqUnit
static const casacore::String RECORD_SPECIES
A hierarchical collection of named fields of various types.
Definition: Record.h:180
bool Bool
Define the standard types used by Casacore.
Definition: aipstype.h:42
casacore::String _euUnit
static const casacore::String RECOMMENDED
static const casacore::String RECORD_RECOMMENDED
uInt nrow() const
Get the number of rows.
Definition: Table.h:1201
static const casacore::String QUANTUM_NUMBERS
static const casacore::String RECORD_FREQUENCY
static const casacore::String RECORD_EU
Representation of a Splatalogue casacore::Table.
static const casacore::String RECORD_UNIT
static const casacore::String LINELIST
static const casacore::String EU
static const casacore::String CHEMICAL_NAME
String: the storage and methods of handling collections of characters.
Definition: String.h:223
static const casacore::String RECORD_VALUE
static const casacore::String SPECIES
casacore::String _smu2Unit
casacore::String getFrequencyUnit() const
casacore::String list() const
Pretty print table contents to a String.
unsigned int uInt
Definition: aipstype.h:51
static const casacore::String RECORD_LINE_LIST