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;
45 template<
class T>
class Vector;
46 template<
class T>
class Cube;
47 template<
class T>
class Block;
254 { write_array (the_array,
String(fileName)); }
270 { read_array (the_array,
String(fileName)); }
353 #ifndef CASACORE_NO_AUTO_TEMPLATES
354 #include <casacore/casa/Arrays/ArrayIO.tcc>
355 #endif //# CASACORE_NO_AUTO_TEMPLATES
void writeAsciiMatrix(const Matrix< T > &mat, const Char *fileName)
LogIO & operator<<(LogIO &os, const Array< T > &a)
Write a formatted copy of the array to the LogIO output object.
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.
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)
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.
Global functions to read/write binary arrays from/to a file.