casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
MaskArrIO.h
Go to the documentation of this file.
00001 //# MaskArrIO.h: Write out an ascii representation of a MaskedArray.
00002 //# Copyright (C) 1993,1994,1995,1999,2000,2001
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: MaskArrIO.h 20551 2009-03-25 00:11:33Z Malte.Marquarding $
00027 
00028 #ifndef CASA_MASKARRIO_H
00029 #define CASA_MASKARRIO_H
00030 
00031 #include <casa/aips.h>
00032 
00033 //# Forward declarations
00034 #include <casa/iosfwd.h>
00035 namespace casa { //# NAMESPACE CASA - BEGIN
00036 
00037 template<class T> class MaskedArray;
00038 template<class T> class MaskedArray;
00039 
00040 
00041 // <summary>
00042 //    Ascii input/output operations for MaskedArrays.
00043 // </summary>
00044 // <reviewed reviewer="UNKNOWN" date="before2004/08/25" tests="tMaskArrIO">
00045 //
00046 // <prerequisite>
00047 //   <li> <linkto class=Array>Array</linkto>
00048 //   <li> <linkto class=MaskedArray>MaskedArray</linkto>
00049 //   <li> <linkto group="ArrayIO.h#Array IO">ArrayIO</linkto>
00050 // </prerequisite>
00051 //
00052 // <etymology>
00053 // MaskArrIO is short for MaskedArrayIO, which is too long by
00054 // AIPS++ file naming conventions.  This file contains global functions
00055 // for writing out ascii representations of masked arrays.
00056 // </etymology>
00057 //
00058 // <synopsis>
00059 // These functions write out masked arrays in ascii representation.
00060 // They simply write out the Array and the LogicalArray which is the mask
00061 // using the ascii output functions for these objects.
00062 // </synopsis>
00063 //
00064 // <example>
00065 // <srcblock>
00066 //   Vector<Int> a(10);
00067 //   LogicalVector b(10);
00068 //   MaskedArray m (a,b);
00069 //      . . .
00070 //   cout << m;
00071 // </srcblock>
00072 // This example writes out m in ascii.  It writes first a and then
00073 // the mask constructed from b.
00074 // </example>
00075 //
00076 // <motivation>
00077 // These are primarily for debugging, so that one can examine the MaskedArray.
00078 // Since MaskedArrays are manipulators of Arrays, it was not thought to
00079 // be necessary, or even a good idea, to have other kinds of IO defined
00080 // for them.
00081 // </motivation>
00082 //
00083 // <linkfrom anchor="MaskedArray IO" classes="MaskedArray">
00084 //    <here>MaskedArray IO</here> -- Ascii input/output operations
00085 //    for MaskedArrays.
00086 // </linkfrom>
00087 //
00088 // <group name="MaskedArray IO">
00089 
00090 
00091 // 
00092 // Write out an ascii representation of a MaskedArray.
00093 // The component Array and LogicalArray are written out sequentially.
00094 template<class T> ostream & operator<< (ostream &, const MaskedArray<T> &);
00095 
00096 
00097 // </group>
00098 
00099 
00100 } //# NAMESPACE CASA - END
00101 
00102 #ifndef CASACORE_NO_AUTO_TEMPLATES
00103 #include <casa/Arrays/MaskArrIO.tcc>
00104 #endif //# CASACORE_NO_AUTO_TEMPLATES
00105 #endif