26#ifndef CASA_ARRAYIO_2_H
27#define CASA_ARRAYIO_2_H
34#include <casacore/casa/Arrays/ArrayFwd.h>
41template<
typename T>
class Block;
100template<
typename T,
typename Alloc>
110template<
typename T,
typename Alloc>
113template<
typename T,
typename Alloc>
116template<
typename T,
typename Alloc>
172template <
typename T,
typename Alloc>
175template <
typename T,
typename Alloc>
177 { write_array (the_array, std::string(fileName)); }
188template <
typename T,
typename Alloc>
191template <
typename T,
typename Alloc>
193 { read_array (the_array, std::string(fileName)); }
204template <
typename T,
typename Alloc>
207template <
typename T,
typename Alloc>
217template<
typename T,
typename Alloc>
228#include <casacore/casa/IO/ArrayIO.tcc>
AipsIO & operator<<(AipsIO &aio, const IPosition &ip)
AipsIO & operator>>(AipsIO &aio, IPosition &ip)
Vector< T > makeVector(const Block< T > &block)
Vector< String > stringToVector(const String &string, char delim=',')
Block< T > makeBlock(const Array< T > &array)
this file contains all the compiler specific defines
void readAsciiVector(Vector< T > &vec, const char *fileName)
These two functions read and write a Vector of data.
AipsIO & operator>>(AipsIO &os, Record &rec)
ostream & operator<<(ostream &os, const IComplex &)
Show on ostream.
TableExprNode array(const TableExprNode &values, const TableExprNodeSet &shape)
Create an array of the given shape and fill it with the values.
void writeAsciiVector(const Vector< T > &vec, const char *fileName)
LogIO & operator<<(LogIO &os, const Array< T > &a)
Write a formatted copy of the array to the LogIO output object.
void putArray(AipsIO &, const Array< T > &, const char *name)
AipsIO & operator>>(AipsIO &, Array< T > &)
Global functions to read/write binary arrays from/to a file.
void write_array(const Array< T > &the_array, const char *fileName)
void write_array(const Array< T > &the_array, const std::string &fileName)
Write the values of an array in binary format into a file with the given name.
void read_array(Array< T > &the_array, const char *fileName)
void read_array(Array< T > &the_array, const std::string &fileName)
Read the values of an array in binary format from a file with the given name.