casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions
casa::BlockInput Class Reference

fixed-length blocked sequential input base class More...

#include <blockio.h>

Inheritance diagram for casa::BlockInput:
casa::BlockIO casa::FitsDiskInput casa::FitsStdInput casa::FitsTape9Input

List of all members.

Public Member Functions

 BlockInput (const char *, int, int=1, FITSErrorHandler errhandler=FITSError::defaultHandler)
 Construction can be done either from a filename or from a file descriptor.
 BlockInput (int, int, int=1, FITSErrorHandler errhandler=FITSError::defaultHandler)
virtual ~BlockInput ()
virtual char * read ()
 read the next logical record or first skip N logical records and then read the next one.
virtual char * skip (int)

Detailed Description

fixed-length blocked sequential input base class

Prerequisite

Definition at line 139 of file blockio.h.


Constructor & Destructor Documentation

casa::BlockInput::BlockInput ( const char *  ,
int  ,
int  = 1,
FITSErrorHandler  errhandler = FITSError::defaultHandler 
)

Construction can be done either from a filename or from a file descriptor.

The remaining arguments are the the logical record size and number of records that make up a physical record followed by the output stream that is used to write error messages to.

casa::BlockInput::BlockInput ( int  ,
int  ,
int  = 1,
FITSErrorHandler  errhandler = FITSError::defaultHandler 
)
virtual casa::BlockInput::~BlockInput ( ) [virtual]

Member Function Documentation

virtual char* casa::BlockInput::read ( ) [virtual]

read the next logical record or first skip N logical records and then read the next one.

(note it is not possible to skip a record without reading a record).
Caution: these functions return a pointer to an internal record; The user must make sure that after destruction of this class no dangling pointers are left;

virtual char* casa::BlockInput::skip ( int  ) [virtual]

Reimplemented in casa::FitsDiskInput.


The documentation for this class was generated from the following file: