casacore
Loading...
Searching...
No Matches
MaskArrIO.h
Go to the documentation of this file.
1//# MaskArrIO.h: Write out an ascii representation of a MaskedArray.
2//# Copyright (C) 1993,1994,1995,1999,2000,2001
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 CASA_MASKARRIO_2_H
27#define CASA_MASKARRIO_2_H
28
29namespace casacore { //# NAMESPACE CASACORE - BEGIN
30
31template<typename T>
32class MaskedArray;
33
34// <summary>
35// Ascii input/output operations for MaskedArrays.
36// </summary>
37// <reviewed reviewer="UNKNOWN" date="before2004/08/25" tests="tMaskArrIO">
38//
39// <prerequisite>
40// <li> <linkto class=Array>Array</linkto>
41// <li> <linkto class=MaskedArray>MaskedArray</linkto>
42// <li> <linkto group="ArrayIO.h#Array IO">ArrayIO</linkto>
43// </prerequisite>
44//
45// <etymology>
46// MaskArrIO is short for MaskedArrayIO, which is too long by the old
47// AIPS++ file naming conventions. This file contains global functions
48// for writing out ascii representations of masked arrays.
49// </etymology>
50//
51// <synopsis>
52// These functions write out masked arrays in ascii representation.
53// They simply write out the Array and the LogicalArray which is the mask
54// using the ascii output functions for these objects.
55// </synopsis>
56//
57// <example>
58// <srcblock>
59// Vector<int> a(10);
60// LogicalVector b(10);
61// MaskedArray m (a,b);
62// . . .
63// cout << m;
64// </srcblock>
65// This example writes out m in ascii. It writes first a and then
66// the mask constructed from b.
67// </example>
68//
69// <motivation>
70// These are primarily for debugging, so that one can examine the MaskedArray.
71// Since MaskedArrays are manipulators of Arrays, it was not thought to
72// be necessary, or even a good idea, to have other kinds of IO defined
73// for them.
74// </motivation>
75//
76// <linkfrom anchor="MaskedArray IO" classes="MaskedArray">
77// <here>MaskedArray IO</here> -- Ascii input/output operations
78// for MaskedArrays.
79// </linkfrom>
80//
81// <group name="MaskedArray IO">
83
84//
85// Write out an ascii representation of a MaskedArray.
86// The component Array and LogicalArray are written out sequentially.
87template<typename T>
88std::ostream & operator<< (std::ostream &, const MaskedArray<T> &);
89
90
91// </group>
92template<typename T>
93std::string to_string(const MaskedArray<T> &);
94
95} //# NAMESPACE CASACORE - END
96
97
98#include "MaskArrIO.tcc"
99
100#endif
this file contains all the compiler specific defines
Definition mainpage.dox:28
ostream & operator<<(ostream &os, const IComplex &)
Show on ostream.
std::string to_string(const IPosition &ip)
std::ostream & operator<<(std::ostream &, const MaskedArray< T > &)
Write out an ascii representation of a MaskedArray.