casacore
Loading...
Searching...
No Matches
AipsIOReaderWriter.h
Go to the documentation of this file.
1// # AipsIOReaderWriter.h: Implementation for reading/writing CASA AipsIO region files produced by
2// the viewer. # Copyright (C) 2008 # Associated Universities, Inc. Washington DC, USA.
3// #
4// # This library is free software; you can redistribute it and/or modify it
5// # under the terms of the GNU Library General Public License as published by
6// # the Free Software Foundation; either version 2 of the License, or (at your
7// # option) any later version.
8// #
9// # This library is distributed in the hope that it will be useful, but WITHOUT
10// # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11// # FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
12// # License for more details.
13// #
14// # You should have received a copy of the GNU Library General Public License
15// # along with this library; if not, write to the Free Software Foundation,
16// # Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
17// #
18// # Correspondence concerning AIPS++ should be addressed as follows:
19// # Internet email: casa-feedback@nrao.edu.
20// # Postal address: AIPS++ Project Office
21// # National Radio Astronomy Observatory
22// # 520 Edgemont Road
23// # Charlottesville, VA 22903-2475 USA
24
25#ifndef IMAGES_AIPSIOREADERWRITER_H
26#define IMAGES_AIPSIOREADERWRITER_H
27
28// # Includes
29#include <casacore/casa/aips.h>
30#include <casacore/images/Regions/RFReaderWriter.h>
31#include <casacore/images/Regions/ImageRegion.h>
32
33namespace casacore { // # NAMESPACE CASACORE - BEGIN
34
35// <summary>
36// Implementation of CASA region AipsIO file reader and writer
37// </summary>
38//
39// <use visibility=export>
40//
41// <reviewed reviewer="" date="" tests="">
42// </reviewed>
43//
44// <prerequisite>
45// <li> <linkto class=RFReaderWriter>RFReaderWriter</linkto>
46// </prerequisite>
47//
48// <synopsis>
49// </synopsis>
50//
51// <example>
52// <srcblock>
53// </srcblock>
54// </example>
55//
56// <motivation>
57// To provide a class for reading and writing ImageRegion class records that
58// have been stored into an AipsIO file.
59// </motivation>
60//
61// # <todo asof="1998/05/20">
62// # </todo>
63
64class AipsIOReaderWriter : public RFReader, public RFWriter {
65 public:
66 // Constructor.
68
69 // Destructor.
71
72 // RSFileReader methods //
73
74 //<group>
75 // Implements RSFileReader::read.
76 bool read(Record& region);
77 bool read(ImageRegion*& region);
78 //</group>
79
80 // RSFileWriter methods //
81
82 // Implements RSFileWriter::setOptions.
84
85 //<group>
86 // Implements RSFileWriter::write
87 bool write(const Record& region) const;
88 bool write(const ImageRegion& region) const;
89 //</group>
90};
91
92} // namespace casacore
93
94#endif
bool read(Record &region)
RSFileReader methods //.
AipsIOReaderWriter()
Constructor.
bool write(const Record &region) const
Implements RSFileWriter::write.
bool read(ImageRegion *&region)
bool write(const ImageRegion &region) const
void setOptions(const Record *options)
RSFileWriter methods //.
virtual Record * options()
Provides access to the plotting options that were found in the region file.
RFReader()
Constructor.
RFWriter()
Constructor.
For temporary backward namespace compatibility, use casa as alias for casacore.
Definition mainpage.dox:28