casacore::BlockInput Class Reference

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

#include <blockio.h>

Inheritance diagram for casacore::BlockInput:
casacore::BlockIO casacore::FitsDiskInput casacore::FitsStdInput casacore::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

casacore::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.

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

Member Function Documentation

virtual char* casacore::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* casacore::BlockInput::skip ( int   )  [virtual]

Reimplemented in casacore::FitsDiskInput.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 31 Aug 2016 for casa by  doxygen 1.6.1