casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PlotMSExportParam.h
Go to the documentation of this file.
1 //# PlotMSExportParam.h: Export parameters container
2 //# Copyright (C) 2009
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 #ifndef PLOTMSEXPORTPARAM_H_
28 #define PLOTMSEXPORTPARAM_H_
29 
31 
32 namespace casa {
33 
34 // Specifies export parameters for plotms
36 public:
37 
38  // Constructor, which uses default values.
40 
41  // Destructor.
43 
44 
45  // Converts this object to/from a record. Each field will have a key that
46  // is its enum name
47  // <group>
48  void fromRecord(const casacore::RecordInterface& record);
49  casacore::Record toRecord() const;
50  // </group>
51 
52 
53  // Convenience methods for returning the standard field values.
54  // <group>
55  PMS::ExportRange getExportRange() const { return exportRange_; };
56  // </group>
57 
58 
59  // Convenience methods for setting the standard field values.
60  // <group>
61  void setExportRange(PMS::ExportRange exportRange) {
62  exportRange_ = exportRange;
63  };
64  void setExportRange(casacore::String exportRangeStr);
65  // </group>
66 
67 
68  // Equality operators.
69  // <group>
70  bool operator==(const PlotMSExportParam& other) const;
71  bool operator!=(const PlotMSExportParam& other) const {
72  return !(operator==(other)); }
73  // </group>
74 
75  // Print out a summary
76  casacore::String summary() const;
77 
78  // Sets the default values.
79  void setDefaults();
80 
81 private:
82 
83  // The export range
84  PMS::ExportRange exportRange_;
86 };
87 
88 }
89 
90 #endif /* PLOTMSEXPORTPARAM_H_ */
void setExportRange(PMS::ExportRange exportRange)
Convenience methods for setting the standard field values.
bool operator!=(const PlotMSExportParam &other) const
casacore::String summary() const
Print out a summary.
PlotMSExportParam()
Constructor, which uses default values.
void fromRecord(const casacore::RecordInterface &record)
Converts this object to/from a record.
static const casacore::String EXPORT_RANGE
PMS::ExportRange exportRange_
The export range.
A hierarchical collection of named fields of various types.
Definition: Record.h:180
PMS::ExportRange getExportRange() const
Convenience methods for returning the standard field values.
Specifies export parameters for plotms.
~PlotMSExportParam()
Destructor.
bool operator==(const PlotMSExportParam &other) const
Equality operators.
String: the storage and methods of handling collections of characters.
Definition: String.h:223
Abstract base class for Record classes.
void setDefaults()
Sets the default values.
casacore::Record toRecord() const