RawIO.h

Classes

RawIO -- Class for IO in local format. (full description)

class RawIO: public TypeIO

Interface

Public Members
explicit RawIO (ByteIO* byteIO, Bool takeOver=False)
RawIO (const RawIO& rawIO)
RawIO& operator= (const RawIO& rawIO)
~RawIO()
virtual uInt write (uInt nvalues, const Bool* value)
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)
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)

Description

Review Status

Reviewed By:
Friso Olnon
Date Reviewed:
1996/11/06
Programs:
Tests:

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.

Member Description

explicit RawIO (ByteIO* byteIO, Bool takeOver=False)

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.

RawIO (const RawIO& rawIO)

The copy constructor uses reference semantics

RawIO& operator= (const RawIO& rawIO)

The assignment operator uses reference semantics

~RawIO()

Destructor.

virtual uInt write (uInt nvalues, const Bool* value)
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)

Write the values to the ByteIO object. Bool, complex and String values are handled by the base class.

virtual uInt read (uInt nvalues, Bool* value)
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)

Read the values from the ByteIO object. Bool, complex and String values are handled by the base class.