|
| ByteSource () |
| Default constructor. More...
|
|
| ByteSource (TypeIO *typeIO, Bool takeOver=False) |
| Construct from given TypeIO object. More...
|
|
| ByteSource (const ByteSource &source) |
| The copy constructor uses reference semantics. More...
|
|
ByteSource & | operator= (const ByteSource &source) |
| The assignment operator uses reference semantics. More...
|
|
| ~ByteSource () |
| destructor More...
|
|
ByteSource & | operator>> (Bool &value) |
| These functions read one value of the given type. More...
|
|
ByteSource & | operator>> (Char &value) |
|
ByteSource & | operator>> (uChar &value) |
|
ByteSource & | operator>> (Short &value) |
|
ByteSource & | operator>> (uShort &value) |
|
ByteSource & | operator>> (Int &value) |
|
ByteSource & | operator>> (uInt &value) |
|
ByteSource & | operator>> (Int64 &value) |
|
ByteSource & | operator>> (uInt64 &value) |
|
ByteSource & | operator>> (Float &value) |
|
ByteSource & | operator>> (Double &value) |
|
ByteSource & | operator>> (Complex &value) |
|
ByteSource & | operator>> (DComplex &value) |
|
ByteSource & | operator>> (String &value) |
|
void | read (size_t nvalues, Bool *value) |
| These functions read multiple values of the given type. More...
|
|
void | read (size_t nvalues, Char *value) |
|
void | read (size_t nvalues, uChar *value) |
|
void | read (size_t nvalues, Short *value) |
|
void | read (size_t nvalues, uShort *value) |
|
void | read (size_t nvalues, Int *value) |
|
void | read (size_t nvalues, uInt *value) |
|
void | read (size_t nvalues, Int64 *value) |
|
void | read (size_t nvalues, uInt64 *value) |
|
void | read (size_t nvalues, Float *value) |
|
void | read (size_t nvalues, Double *value) |
|
void | read (size_t nvalues, Complex *value) |
|
void | read (size_t nvalues, DComplex *value) |
|
void | read (size_t nvalues, String *value) |
|
TypeIO & | typeIO () |
| This functions returns a reference to itsTypeIO. More...
|
|
const TypeIO & | typeIO () const |
|
Int64 | seek (Int64 offset, ByteIO::SeekOption=ByteIO::Begin) |
| This function sets the position on the given offset. More...
|
|
Int64 | seek (Int offset, ByteIO::SeekOption=ByteIO::Begin) |
|
Bool | isReadable () const |
| Is the SinkSource readable? More...
|
|
Bool | isWritable () const |
| Is the SinkSource writable? More...
|
|
Bool | isSeekable () const |
| Is the SinkSource seekable? More...
|
|
Bool | isNull () const |
| Is the BaseSinkSource unusable?
More...
|
|
Class for read-only access to data in a given format.
Intended use:
Public interface
Review Status
- Reviewed By:
- Friso Olnon
- Date Reviewed:
- 1996/11/06
- Test programs:
- tByteSink
Prerequisite
Etymology
A source is the place where bytes are read from.
Synopsis
ByteSource provides read-only access to a typed byte stream in the Casacore IO framework. The base class BaseSinkSource
contains common functions like seek
.
The object is constructed using a typed byte stream. This stream is an instance of a class derived from class TypeIO. This makes it possible to read the data in any format (e.g. CanonicalIO or RawIO).
In its turn TypeIO uses an instance of a class derived from class ByteIO. This makes it possible to use any input stream (e.g. file, memory).
Example
RegularFileIO filio ("file.name");
CanonicalIO canio (&filio);
source >> vali >> flag;
ByteSource()
Default constructor.
bool Bool
Define the standard types used by Casacore.
Motivation
This class makes it possible to deny write-access to an IO stream.
Definition at line 91 of file ByteSource.h.