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

Class for IO in local format. More...

#include <RawIO.h>

Inheritance diagram for casa::RawIO:
casa::TypeIO

List of all members.

Public Member Functions

 RawIO (ByteIO *byteIO, Bool takeOver=False)
 Constructor.
 RawIO (const RawIO &rawIO)
 The copy constructor uses reference semantics.
RawIOoperator= (const RawIO &rawIO)
 The assignment operator uses reference semantics.
 ~RawIO ()
 Destructor.
virtual uInt write (uInt nvalues, const Bool *value)
 Write the values to the ByteIO object.
virtual uInt write (uInt nvalues, const Char *data)
virtual uInt write (uInt nvalues, const uChar *data)
virtual uInt write (uInt nvalues, const Short *data)
virtual uInt write (uInt nvalues, const uShort *data)
virtual uInt write (uInt nvalues, const Int *data)
virtual uInt write (uInt nvalues, const uInt *data)
virtual uInt write (uInt nvalues, const Int64 *data)
virtual uInt write (uInt nvalues, const uInt64 *data)
virtual uInt write (uInt nvalues, const Float *data)
virtual uInt write (uInt nvalues, const Double *data)
virtual uInt write (uInt nvalues, const Complex *value)
virtual uInt write (uInt nvalues, const DComplex *value)
virtual uInt write (uInt nvalues, const String *value)
virtual uInt read (uInt nvalues, Bool *value)
 Read the values from the ByteIO object.
virtual uInt read (uInt nvalues, Char *data)
virtual uInt read (uInt nvalues, uChar *data)
virtual uInt read (uInt nvalues, Short *data)
virtual uInt read (uInt nvalues, uShort *data)
virtual uInt read (uInt nvalues, Int *data)
virtual uInt read (uInt nvalues, uInt *data)
virtual uInt read (uInt nvalues, Int64 *data)
virtual uInt read (uInt nvalues, uInt64 *data)
virtual uInt read (uInt nvalues, Float *data)
virtual uInt read (uInt nvalues, Double *data)
virtual uInt read (uInt nvalues, Complex *value)
virtual uInt read (uInt nvalues, DComplex *value)
virtual uInt read (uInt nvalues, String *value)

Detailed Description

Class for IO in local format.

Intended use:

Public interface

 <h3>Review Status</h3><dl><dt>Reviewed By:<dd>Friso Olnon<dt>Date Reviewed:<dd>1996/11/06<dt>Test programs:<dd>tTypeIO</dl> 

Prerequisite

Synopsis

RawIO is a specialization of class TypeIO to store data in local format.

This class is intended for data that will only be used internally and will not be exported to machines with a possible different data format.

To save storage Bools will be written as bits (using the static functions in class Conversion .

Motivation

Storing data in local format can improve performance on little-endian machines like DEC-alpha and PC's.

Definition at line 73 of file RawIO.h.


Constructor & Destructor Documentation

casa::RawIO::RawIO ( ByteIO byteIO,
Bool  takeOver = False 
) [explicit]

Constructor.

The read/write functions will use the given ByteIO object as the data store. If takeOver is True the this class will delete the supplied pointer. Otherwise the caller is responsible for this.

casa::RawIO::RawIO ( const RawIO rawIO)

The copy constructor uses reference semantics.

Destructor.


Member Function Documentation

RawIO& casa::RawIO::operator= ( const RawIO rawIO)

The assignment operator uses reference semantics.

virtual uInt casa::RawIO::read ( uInt  nvalues,
Bool value 
) [virtual]

Read the values from the ByteIO object.

Bool, complex and String values are handled by the base class.

Reimplemented from casa::TypeIO.

virtual uInt casa::RawIO::read ( uInt  nvalues,
Char data 
) [virtual]

Implements casa::TypeIO.

virtual uInt casa::RawIO::read ( uInt  nvalues,
uChar data 
) [virtual]

Implements casa::TypeIO.

virtual uInt casa::RawIO::read ( uInt  nvalues,
Short data 
) [virtual]

Implements casa::TypeIO.

virtual uInt casa::RawIO::read ( uInt  nvalues,
uShort data 
) [virtual]

Implements casa::TypeIO.

virtual uInt casa::RawIO::read ( uInt  nvalues,
Int data 
) [virtual]

Implements casa::TypeIO.

virtual uInt casa::RawIO::read ( uInt  nvalues,
uInt data 
) [virtual]

Implements casa::TypeIO.

virtual uInt casa::RawIO::read ( uInt  nvalues,
Int64 data 
) [virtual]

Implements casa::TypeIO.

virtual uInt casa::RawIO::read ( uInt  nvalues,
uInt64 data 
) [virtual]

Implements casa::TypeIO.

virtual uInt casa::RawIO::read ( uInt  nvalues,
Float data 
) [virtual]

Implements casa::TypeIO.

virtual uInt casa::RawIO::read ( uInt  nvalues,
Double data 
) [virtual]

Implements casa::TypeIO.

virtual uInt casa::RawIO::read ( uInt  nvalues,
Complex *  value 
) [virtual]

Reimplemented from casa::TypeIO.

virtual uInt casa::RawIO::read ( uInt  nvalues,
DComplex *  value 
) [virtual]

Reimplemented from casa::TypeIO.

virtual uInt casa::RawIO::read ( uInt  nvalues,
String value 
) [virtual]

Reimplemented from casa::TypeIO.

virtual uInt casa::RawIO::write ( uInt  nvalues,
const Bool value 
) [virtual]

Write the values to the ByteIO object.

Bool, complex and String values are handled by the base class.

Reimplemented from casa::TypeIO.

virtual uInt casa::RawIO::write ( uInt  nvalues,
const Char data 
) [virtual]

Implements casa::TypeIO.

virtual uInt casa::RawIO::write ( uInt  nvalues,
const uChar data 
) [virtual]

Implements casa::TypeIO.

virtual uInt casa::RawIO::write ( uInt  nvalues,
const Short data 
) [virtual]

Implements casa::TypeIO.

virtual uInt casa::RawIO::write ( uInt  nvalues,
const uShort data 
) [virtual]

Implements casa::TypeIO.

virtual uInt casa::RawIO::write ( uInt  nvalues,
const Int data 
) [virtual]

Implements casa::TypeIO.

virtual uInt casa::RawIO::write ( uInt  nvalues,
const uInt data 
) [virtual]

Implements casa::TypeIO.

virtual uInt casa::RawIO::write ( uInt  nvalues,
const Int64 data 
) [virtual]

Implements casa::TypeIO.

virtual uInt casa::RawIO::write ( uInt  nvalues,
const uInt64 data 
) [virtual]

Implements casa::TypeIO.

virtual uInt casa::RawIO::write ( uInt  nvalues,
const Float data 
) [virtual]

Implements casa::TypeIO.

virtual uInt casa::RawIO::write ( uInt  nvalues,
const Double data 
) [virtual]

Implements casa::TypeIO.

virtual uInt casa::RawIO::write ( uInt  nvalues,
const Complex *  value 
) [virtual]

Reimplemented from casa::TypeIO.

virtual uInt casa::RawIO::write ( uInt  nvalues,
const DComplex *  value 
) [virtual]

Reimplemented from casa::TypeIO.

virtual uInt casa::RawIO::write ( uInt  nvalues,
const String value 
) [virtual]

Reimplemented from casa::TypeIO.


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