AipsIOReaderWriter.h

Go to the documentation of this file.
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$
00027 
00028 #ifndef IMAGES_AIPSIOREADERWRITER_H
00029 #define IMAGES_AIPSIOREADERWRITER_H
00030 
00031 //# Includes
00032 #include <casacore/casa/aips.h>
00033 #include <casacore/images/Regions/RFReaderWriter.h>
00034 #include <casacore/images/Regions/ImageRegion.h>
00035 
00036 namespace casacore { //# NAMESPACE CASACORE - BEGIN
00037 
00038 // <summary>
00039 // Implementation of CASA region AipsIO file reader and writer
00040 // </summary>
00041 //
00042 // <use visibility=export>
00043 //
00044 // <reviewed reviewer="" date="" tests="">
00045 // </reviewed>
00046 //
00047 // <prerequisite>
00048 //   <li> <linkto class=RFReaderWriter>RFReaderWriter</linkto>
00049 // </prerequisite>
00050 //
00051 // <synopsis> 
00052 // </synopsis> 
00053 //
00054 // <example>
00055 // <srcblock>
00056 // </srcblock>
00057 // </example>
00058 //
00059 // <motivation>
00060 // To provide a class for reading and writing ImageRegion class records that
00061 // have been stored into an AipsIO file.
00062 // </motivation>
00063 //
00064 //# <todo asof="1998/05/20">
00065 //# </todo>
00066 
00067 class AipsIOReaderWriter : public RFReader, public RFWriter
00068 {
00069 public:
00070     // Constructor.
00071     AipsIOReaderWriter();
00072     
00073     // Destructor.
00074     ~AipsIOReaderWriter();
00075     
00076     // RSFileReader methods //
00077 
00078     //<group>
00079     // Implements RSFileReader::read.
00080     bool read(Record& region);
00081     bool read(ImageRegion*& region);
00082     //</group>
00083 
00084 
00085     // RSFileWriter methods //
00086     
00087     // Implements RSFileWriter::setOptions.
00088     void setOptions(const Record* options);
00089 
00090     //<group>
00091     // Implements RSFileWriter::write
00092     bool write(const Record& region) const;
00093     bool write(const ImageRegion& region) const;
00094     //</group>
00095 };
00096 
00097 } //# end namespace
00098 
00099 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 31 Aug 2016 for casa by  doxygen 1.6.1