fixed-length blocked sequential input base class More...
#include <blockio.h>
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) |
fixed-length blocked sequential input base class
Definition at line 139 of file blockio.h.
| 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] |
| 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.
1.6.1