BlockIO.h

Classes

Global Functions -- IO functions for Block (full description)

IO functions for Block (source)

Interface

void putBlock (AipsIO&, const Block<T>&, Int nr)
void putBlock (AipsIO& ios, const Block<T>& blk)
void getBlock (AipsIO&, Block<T>&)
void showBlock (std::ostream&, const ostream<T>&, Int nr)
void showBlock (std::ostream& ios, const ostream<T>& blk)
AipsIO& operator<< (AipsIO& ios, const Block<T>& blk)
AipsIO& operator>> (AipsIO& ios, Block<T>& blk)
std::ostream& operator<< (std::ostream& ios, const ostream<T>& blk)

Description

Review Status

Reviewed By:
UNKNOWN
Date Reviewed:
before2004/08/25

Synopsis

These functions allow the user to write either an entire or a partial Block out to an ostream or to AipsIO. These functions provide simple storage and display capabilities for Block.

Member Description

void putBlock (AipsIO&, const Block<T>&, Int nr)
void putBlock (AipsIO& ios, const Block<T>& blk)
void getBlock (AipsIO&, Block<T>&)

These functions allow the user to read and write Blocks from the AipsIO stream.

putBlock writes the Block to the stream. If a number, nr, of elements is specified, only the first nr elements will be written out to AipsI0.

getBlock reads a Block in from an AipsIO stream.

void showBlock (std::ostream&, const ostream<T>&, Int nr)
void showBlock (std::ostream& ios, const ostream<T>& blk)

These functions allow the user to write Blocks out to a standard ostream. The user can either write the entire Block out to the stream, or if a number of elements, nr, is specified, only the first nr elements of the Block will be written out.

AipsIO& operator<< (AipsIO& ios, const Block<T>& blk)
AipsIO& operator>> (AipsIO& ios, Block<T>& blk)
std::ostream& operator<< (std::ostream& ios, const ostream<T>& blk)

These are the standard shift operators for writing an entire Block out to a stream. Shift operators are provided to write the block out to either AipsIO or ostream. A shift operator is also provided for reading a Block in from AipsIO.