Go to the documentation of this file.
28 #ifndef CASA_ARRAYIO_H
29 #define CASA_ARRAYIO_H
32 #include <casacore/casa/aips.h>
33 #include <casacore/casa/BasicSL/String.h>
36 #include <casacore/casa/iosfwd.h>
43 template<
class T>
class Array;
44 template<
class T>
class Matrix;
46 template<
class T>
class Cube;
176 template<
class T>
Bool readArrayBlock(istream &s,
Bool &trans,
250 void write_array (
const Array<T>& the_array,
const String& fileName);
254 { write_array (the_array,
String(fileName)); }
270 { read_array (the_array,
String(fileName)); }
330 void writeAsciiMatrix (
const Matrix<T>& mat,
const Char* fileName);
344 void writeAsciiVector (
const Vector<T>& vec,
const Char* fileName);
353 #ifndef CASACORE_NO_AUTO_TEMPLATES
354 #include <casacore/casa/Arrays/ArrayIO.tcc>
355 #endif //# CASACORE_NO_AUTO_TEMPLATES
A 2-D Specialization of the Array class.
A Vector of integers, for indexing into Array<T> objects.
AipsIO is the object persistency mechanism of Casacore
void writeAsciiMatrix(const Matrix< T > &mat, const Char *fileName)
void write_array(const Array< T > &the_array, const Char *fileName)
void read_array(Array< T > &the_array, const Char *fileName)
Bool read(istream &s, Array< T > &x, const IPosition *ip=0, Bool it=False)
AipsIO & operator>>(AipsIO &os, Record &rec)
void readAsciiMatrix(Matrix< T > &mat, const Char *fileName)
These routines read and write a Matrix of data.
void read_array(Array< T > &the_array, const String &fileName)
Read the values of an array in binary format from a file with the given name.
A 3-D Specialization of the Array class.
ostream-like interface to creating log messages.
Global functions for Matrix/Vector input/output using ASCII format.
ostream & operator<<(ostream &, const Array< T > &)
Write out an ascii representation of an array of any dimensionality.
void readAsciiVector(Vector< T > &vec, const Char *fileName)
These two functions read and write a Vector of data.
void write_array(const Array< T > &the_array, const String &fileName)
Write the values of an array in binary format into a file with the given name.
istream & operator>>(istream &s, Array< T > &x)
Read an ascii representation of an array.
this file contains all the compiler specific defines
void writeAsciiVector(const Vector< T > &vec, const Char *fileName)
Input/output operators for Arrays.
void putArray(AipsIO &, const Array< T > &, const Char *name)
template <class T, class U> class vector;
Bool readArrayBlock(istream &s, Bool &trans, IPosition &p, Block< T > &x, const IPosition *ip=0, Bool it=False)
General read support function for matrices.
String: the storage and methods of handling collections of characters.
bool Bool
Define the standard types used by Casacore.
ostream & operator<<(ostream &os, const IComplex &)
Show on ostream.
A 1-D Specialization of the Array class.
Global functions to read/write binary arrays from/to a file.