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 the viewer.
2//# Copyright (C) 2008
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: casa-feedback@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#ifndef IMAGES_AIPSIOREADERWRITER_H
27#define IMAGES_AIPSIOREADERWRITER_H
28
29//# Includes
30#include <casacore/casa/aips.h>
31#include <casacore/images/Regions/RFReaderWriter.h>
32#include <casacore/images/Regions/ImageRegion.h>
33
34namespace casacore { //# NAMESPACE CASACORE - BEGIN
35
36// <summary>
37// Implementation of CASA region AipsIO file reader and writer
38// </summary>
39//
40// <use visibility=export>
41//
42// <reviewed reviewer="" date="" tests="">
43// </reviewed>
44//
45// <prerequisite>
46// <li> <linkto class=RFReaderWriter>RFReaderWriter</linkto>
47// </prerequisite>
48//
49// <synopsis>
50// </synopsis>
51//
52// <example>
53// <srcblock>
54// </srcblock>
55// </example>
56//
57// <motivation>
58// To provide a class for reading and writing ImageRegion class records that
59// have been stored into an AipsIO file.
60// </motivation>
61//
62//# <todo asof="1998/05/20">
63//# </todo>
64
65class AipsIOReaderWriter : public RFReader, public RFWriter
66{
67public:
68 // Constructor.
70
71 // Destructor.
73
74 // RSFileReader methods //
75
76 //<group>
77 // Implements RSFileReader::read.
78 bool read(Record& region);
79 bool read(ImageRegion*& region);
80 //</group>
81
82
83 // RSFileWriter methods //
84
85 // Implements RSFileWriter::setOptions.
87
88 //<group>
89 // Implements RSFileWriter::write
90 bool write(const Record& region) const;
91 bool write(const ImageRegion& region) const;
92 //</group>
93};
94
95} //# end namespace
96
97#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 //.
Abstract superclass for any class that reads a format that produces Regions from a file.
virtual Record * options()
Provides access to the plotting options that were found in the region file.
Abstract superclass for any class that writes Regions to a region file format.
this file contains all the compiler specific defines
Definition mainpage.dox:28