casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ListConverter.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_LISTCONVERTER_H
29 #define SPLAT_LISTCONVERTER_H
30 
31 #include <casa/aips.h>
32 
33 #include <casa/Arrays/Vector.h>
34 #include <casa/BasicSL/String.h>
35 #include <casa/Logging/LogIO.h>
36 #include <casa/OS/RegularFile.h>
38 
39 namespace casa {
40 
41 // <summary>Converts a list or lists dumped from the splatalogue web interface to a casa table.</summary>
42 // <use visibility=export>
43 //
44 // <reviewed reviewer="" date="yyyy/mm/dd" tests="" demos="">
45 // </reviewed>
46 //
47 
48 // <etymology>
49 // Converts a splatalogue line list to a CASA table.
50 // </etymology>
51 //
52 // <synopsis>
53 // It is a requirement that users be able to convert splatalogue line
54 // lists to CASA tables for manipulation of these data within CASA.
55 // </synopsis>
56 //
57 // <example>
58 // <srcBlock>
59 // casacore::Vector<casacore::String> files(2);
60 // files[0] = "myfile1";
61 // files[1] = "myfile2";
62 // Converter converter(files, "mytable");
63 // converter.convert();
64 // </srcBlock>
65 // </example>
66 //
67 // <motivation>
68 // A class to for splatalogue list conversion.
69 // </motivation>
70 //
71 // <todo asof="">
72 // </todo>
73 
74 
76 public:
77  // Constructor
79 
80  //destuctor
82 
83  // load the lists into the table. It is the caller's responsibility to
84  // delete the returned pointer.
86 
87 private:
89  ListConverter();
96 
97  void _parseLists();
99  void _addData(const SplatalogueTable* table) const;
100 };
101 
102 
103 } //# NAMESPACE CASA - END
104 
105 #endif
casacore::String _tableName
Definition: ListConverter.h:91
casacore::Vector< casacore::Bool > _recommended
Definition: ListConverter.h:93
casacore::Vector< casacore::RegularFile > _listFiles
Definition: ListConverter.h:90
SplatalogueTable * _defineTable(const casacore::uInt nrows)
casacore::String _euUnit
Definition: ListConverter.h:91
casacore::Vector< casacore::String > _chemName
Definition: ListConverter.h:92
casacore::String _freqUnit
Definition: ListConverter.h:91
casacore::Vector< casacore::Float > _logA
Definition: ListConverter.h:95
ostream-like interface to creating log messages.
Definition: LogIO.h:167
casacore::Vector< casacore::Float > _smu2
Definition: ListConverter.h:95
casacore::Vector< casacore::Float > _intensity
Definition: ListConverter.h:95
SplatalogueTable * load()
load the lists into the table.
~ListConverter()
destuctor
casacore::LogIO * _log
Definition: ListConverter.h:88
casacore::Vector< casacore::Float > _eU
Definition: ListConverter.h:95
casacore::Vector< casacore::String > _lineList
Definition: ListConverter.h:92
void _addData(const SplatalogueTable *table) const
Representation of a Splatalogue casacore::Table.
Converts a list or lists dumped from the splatalogue web interface to a casa table.
Definition: ListConverter.h:75
casacore::String _smu2Unit
Definition: ListConverter.h:91
casacore::Vector< casacore::Float > _eL
Definition: ListConverter.h:95
casacore::Vector< casacore::String > _species
Definition: ListConverter.h:92
String: the storage and methods of handling collections of characters.
Definition: String.h:223
casacore::Vector< casacore::Double > _frequency
Definition: ListConverter.h:94
casacore::String _elUnit
Definition: ListConverter.h:91
casacore::Vector< casacore::String > _qns
Definition: ListConverter.h:92
unsigned int uInt
Definition: aipstype.h:51