Loading...
Searching...
No Matches
casacore::RawIO Class Reference
casa package (libcasa_casa) » IO_module

More...

`#include <RawIO.h>`

## Public Member Functions

| RawIO (const std::shared_ptr< ByteIO > &byteIO)
| Constructor.
| RawIO (const RawIO &rawIO)
| The copy constructor uses reference semantics.
RawIO & | operator= (const RawIO &rawIO)
| The assignment operator uses reference semantics.
| ~RawIO ()
| Destructor.
virtual size_t | write (size_t nvalues, const Bool *value)
| Write the values to the ByteIO object.
virtual size_t | write (size_t nvalues, const Char *data)
virtual size_t | write (size_t nvalues, const uChar *data)
virtual size_t | write (size_t nvalues, const Short *data)
virtual size_t | write (size_t nvalues, const uShort *data)
virtual size_t | write (size_t nvalues, const Int *data)
virtual size_t | write (size_t nvalues, const uInt *data)
virtual size_t | write (size_t nvalues, const Int64 *data)
virtual size_t | write (size_t nvalues, const uInt64 *data)
virtual size_t | write (size_t nvalues, const Float *data)
virtual size_t | write (size_t nvalues, const Double *data)
virtual size_t | write (size_t nvalues, const Complex *value)
virtual size_t | write (size_t nvalues, const DComplex *value)
virtual size_t | write (size_t nvalues, const String *value)
virtual size_t | read (size_t nvalues, Bool *value)
| Read the values from the ByteIO object.
virtual size_t | read (size_t nvalues, Char *data)
virtual size_t | read (size_t nvalues, uChar *data)
virtual size_t | read (size_t nvalues, Short *data)
virtual size_t | read (size_t nvalues, uShort *data)
virtual size_t | read (size_t nvalues, Int *data)
virtual size_t | read (size_t nvalues, uInt *data)
virtual size_t | read (size_t nvalues, Int64 *data)
virtual size_t | read (size_t nvalues, uInt64 *data)
virtual size_t | read (size_t nvalues, Float *data)
virtual size_t | read (size_t nvalues, Double *data)
virtual size_t | read (size_t nvalues, Complex *value)
virtual size_t | read (size_t nvalues, DComplex *value)
virtual size_t | read (size_t nvalues, String *value)
Public Member Functions inherited from casacore::TypeIO
| TypeIO (const std::shared_ptr< ByteIO > &byteIO)
| Constructor.
virtual | ~TypeIO ()
const ByteIO & | byteIO () const
| Functions to return a reference to the ByteIO class.
ByteIO & | byteIO ()
Int64 | seek (Int64 offset, ByteIO::SeekOption=ByteIO::Begin)
| This function sets the position on the given offset.
Int64 | seek (Int offset, ByteIO::SeekOption=ByteIO::Begin)
Bool | isReadable () const
| Is the TypeIO stream readable?
Bool | isWritable () const
| Is the TypeIO stream writable?
Bool | isSeekable () const
| Is the TypeIO stream seekable?

## Additional Inherited Members

Protected Member Functions inherited from casacore::TypeIO
| TypeIO (const TypeIO &TypeIO)
| The copy constructor uses reference semantics.
TypeIO & | operator= (const TypeIO &typeIO)
| The assignment operator uses reference semantics.
Protected Attributes inherited from casacore::TypeIO
std::shared_ptr< ByteIO > | itsByteIO
| This variable keeps a pointer to a ByteIO.

## Detailed Description

Class for IO in local format.

### Intended use:

Public interface

### Review Status

Reviewed By:
  Friso Olnon
Date Reviewed:
  1996/11/06
Test programs:
  tTypeIO

### Prerequisite

- ByteIO class and derived classes
- TypeIO class

### 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 71 of file RawIO.h.

## Constructor & Destructor Documentation

## RawIO() [1/2]

casacore::RawIO::RawIO | ( | const std::shared_ptr< ByteIO > & | byteIO | ) |

explicit

Constructor.

The read/write functions will use the given ByteIO object as the data store.

References casacore::TypeIO::byteIO().

Referenced by operator=(), and RawIO().

## RawIO() [2/2]

casacore::RawIO::RawIO | ( | const RawIO & | rawIO | ) |

The copy constructor uses reference semantics.

References RawIO().

## ~RawIO()

casacore::RawIO::~RawIO | ( |  | ) |

Destructor.

## Member Function Documentation

## operator=()

RawIO & casacore::RawIO::operator= | ( | const RawIO & | rawIO | ) |

The assignment operator uses reference semantics.

References RawIO().

## read() [1/14]

virtual size_t casacore::RawIO::read | ( | size_t | nvalues,
|  | Bool * | value )

virtual

Read the values from the ByteIO object.

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

Reimplemented from casacore::TypeIO.

References casacore::NewDelAllocator< T >::value.

## read() [2/14]

virtual size_t casacore::RawIO::read | ( | size_t | nvalues,
|  | Char * | data )

virtual

Implements casacore::TypeIO.

## read() [3/14]

virtual size_t casacore::RawIO::read | ( | size_t | nvalues,
|  | Complex * | value )

virtual

Reimplemented from casacore::TypeIO.

References casacore::NewDelAllocator< T >::value.

## read() [4/14]

virtual size_t casacore::RawIO::read | ( | size_t | nvalues,
|  | DComplex * | value )

virtual

Reimplemented from casacore::TypeIO.

References casacore::NewDelAllocator< T >::value.

## read() [5/14]

virtual size_t casacore::RawIO::read | ( | size_t | nvalues,
|  | Double * | data )

virtual

Implements casacore::TypeIO.

## read() [6/14]

virtual size_t casacore::RawIO::read | ( | size_t | nvalues,
|  | Float * | data )

virtual

Implements casacore::TypeIO.

## read() [7/14]

virtual size_t casacore::RawIO::read | ( | size_t | nvalues,
|  | Int * | data )

virtual

Implements casacore::TypeIO.

## read() [8/14]

virtual size_t casacore::RawIO::read | ( | size_t | nvalues,
|  | Int64 * | data )

virtual

Implements casacore::TypeIO.

## read() [9/14]

virtual size_t casacore::RawIO::read | ( | size_t | nvalues,
|  | Short * | data )

virtual

Implements casacore::TypeIO.

## read() [10/14]

virtual size_t casacore::RawIO::read | ( | size_t | nvalues,
|  | String * | value )

virtual

Reimplemented from casacore::TypeIO.

References casacore::NewDelAllocator< T >::value.

## read() [11/14]

virtual size_t casacore::RawIO::read | ( | size_t | nvalues,
|  | uChar * | data )

virtual

Implements casacore::TypeIO.

## read() [12/14]

virtual size_t casacore::RawIO::read | ( | size_t | nvalues,
|  | uInt * | data )

virtual

Implements casacore::TypeIO.

## read() [13/14]

virtual size_t casacore::RawIO::read | ( | size_t | nvalues,
|  | uInt64 * | data )

virtual

Implements casacore::TypeIO.

## read() [14/14]

virtual size_t casacore::RawIO::read | ( | size_t | nvalues,
|  | uShort * | data )

virtual

Implements casacore::TypeIO.

## write() [1/14]

virtual size_t casacore::RawIO::write | ( | size_t | 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 casacore::TypeIO.

References casacore::NewDelAllocator< T >::value.

## write() [2/14]

virtual size_t casacore::RawIO::write | ( | size_t | nvalues,
|  | const Char * | data )

virtual

Implements casacore::TypeIO.

## write() [3/14]

virtual size_t casacore::RawIO::write | ( | size_t | nvalues,
|  | const Complex * | value )

virtual

Reimplemented from casacore::TypeIO.

References casacore::NewDelAllocator< T >::value.

## write() [4/14]

virtual size_t casacore::RawIO::write | ( | size_t | nvalues,
|  | const DComplex * | value )

virtual

Reimplemented from casacore::TypeIO.

References casacore::NewDelAllocator< T >::value.

## write() [5/14]

virtual size_t casacore::RawIO::write | ( | size_t | nvalues,
|  | const Double * | data )

virtual

Implements casacore::TypeIO.

## write() [6/14]

virtual size_t casacore::RawIO::write | ( | size_t | nvalues,
|  | const Float * | data )

virtual

Implements casacore::TypeIO.

## write() [7/14]

virtual size_t casacore::RawIO::write | ( | size_t | nvalues,
|  | const Int * | data )

virtual

Implements casacore::TypeIO.

## write() [8/14]

virtual size_t casacore::RawIO::write | ( | size_t | nvalues,
|  | const Int64 * | data )

virtual

Implements casacore::TypeIO.

## write() [9/14]

virtual size_t casacore::RawIO::write | ( | size_t | nvalues,
|  | const Short * | data )

virtual

Implements casacore::TypeIO.

## write() [10/14]

virtual size_t casacore::RawIO::write | ( | size_t | nvalues,
|  | const String * | value )

virtual

Reimplemented from casacore::TypeIO.

References casacore::NewDelAllocator< T >::value.

## write() [11/14]

virtual size_t casacore::RawIO::write | ( | size_t | nvalues,
|  | const uChar * | data )

virtual

Implements casacore::TypeIO.

## write() [12/14]

virtual size_t casacore::RawIO::write | ( | size_t | nvalues,
|  | const uInt * | data )

virtual

Implements casacore::TypeIO.

## write() [13/14]

virtual size_t casacore::RawIO::write | ( | size_t | nvalues,
|  | const uInt64 * | data )

virtual

Implements casacore::TypeIO.

## write() [14/14]

virtual size_t casacore::RawIO::write | ( | size_t | nvalues,
|  | const uShort * | data )

virtual

Implements casacore::TypeIO.

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

- casa/IO/RawIO.h