casa
$Rev:20696$
|
00001 //# AipsIOReaderWriter.h: Implementation for reading/writing CASA AipsIO region files produced by the viewer. 00002 //# Copyright (C) 2008 00003 //# Associated Universities, Inc. Washington DC, USA. 00004 //# 00005 //# This library is free software; you can redistribute it and/or modify it 00006 //# under the terms of the GNU Library General Public License as published by 00007 //# the Free Software Foundation; either version 2 of the License, or (at your 00008 //# option) any later version. 00009 //# 00010 //# This library is distributed in the hope that it will be useful, but WITHOUT 00011 //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 00012 //# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public 00013 //# License for more details. 00014 //# 00015 //# You should have received a copy of the GNU Library General Public License 00016 //# along with this library; if not, write to the Free Software Foundation, 00017 //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA. 00018 //# 00019 //# Correspondence concerning AIPS++ should be addressed as follows: 00020 //# Internet email: aips2-request@nrao.edu. 00021 //# Postal address: AIPS++ Project Office 00022 //# National Radio Astronomy Observatory 00023 //# 520 Edgemont Road 00024 //# Charlottesville, VA 22903-2475 USA 00025 //# 00026 //# $Id: AipsIOReaderWriter.h 20652 2009-07-06 05:04:32Z Malte.Marquarding $ 00027 00028 #ifndef IMAGES_AIPSIOREADERWRITER_H 00029 #define IMAGES_AIPSIOREADERWRITER_H 00030 00031 //# Includes 00032 #include <images/Regions/RFReaderWriter.h> 00033 #include <images/Regions/ImageRegion.h> 00034 00035 namespace casa { //# NAMESPACE CASA - BEGIN 00036 00037 // <summary> 00038 // Implementation of CASA region AipsIO file reader and writer 00039 // </summary> 00040 // 00041 // <use visibility=export> 00042 // 00043 // <reviewed reviewer="" date="" tests=""> 00044 // </reviewed> 00045 // 00046 // <prerequisite> 00047 // <li> <linkto class=RFReaderWriter>RFReaderWriter</linkto> 00048 // </prerequisite> 00049 // 00050 // <synopsis> 00051 // </synopsis> 00052 // 00053 // <example> 00054 // <srcblock> 00055 // </srcblock> 00056 // </example> 00057 // 00058 // <motivation> 00059 // To provide a class for reading and writing ImageRegion class records that 00060 // have been stored into an AipsIO file. 00061 // </motivation> 00062 // 00063 //# <todo asof="1998/05/20"> 00064 //# </todo> 00065 00066 class AipsIOReaderWriter : public RFReader, public RFWriter 00067 { 00068 public: 00069 // Constructor. 00070 AipsIOReaderWriter(); 00071 00072 // Destructor. 00073 ~AipsIOReaderWriter(); 00074 00075 // RSFileReader methods // 00076 00077 //<group> 00078 // Implements RSFileReader::read. 00079 bool read(Record& region); 00080 bool read(const ImageRegion *region); 00081 //</group> 00082 00083 00084 // RSFileWriter methods // 00085 00086 // Implements RSFileWriter::setOptions. 00087 void setOptions(const Record* options); 00088 00089 //<group> 00090 // Implements RSFileWriter::write 00091 bool write(const Record& region) const; 00092 bool write(const ImageRegion& region) const; 00093 //</group> 00094 }; 00095 00096 } //# end namespace 00097 00098 #endif