28 #ifndef CASA_CONVERSIONIO_H
29 #define CASA_CONVERSIONIO_H
31 #include <casacore/casa/aips.h>
32 #include <casacore/casa/IO/TypeIO.h>
33 #include <casacore/casa/Utilities/CountedPtr.h>
37 #include <casacore/casa/BasicSL/Complex.h>
106 virtual size_t write (
size_t nvalues,
const Char* data);
110 virtual size_t write (
size_t nvalues,
const Int* data);
111 virtual size_t write (
size_t nvalues,
const uInt* data);
129 virtual size_t read (
size_t nvalues,
Int* data);
virtual size_t read(size_t nvalues, uChar *data)
virtual size_t write(size_t nvalues, const Complex *value)
virtual size_t write(size_t nvalues, const Short *data)
virtual size_t read(size_t nvalues, uInt64 *data)
virtual size_t write(size_t nvalues, const uShort *data)
ConversionIO(DataConversion *dataConversion, ByteIO *byteIO, uInt bufferLength=4096, Bool takeOver=False)
Constructor.
void init()
Initialize the itsSize and itsCopy variables.
virtual size_t read(size_t nvalues, Bool *value)
Read the values from the ByteIO object and convert them.
virtual size_t write(size_t nvalues, const Double *data)
virtual size_t read(size_t nvalues, Int *data)
~ConversionIO()
Destructor, deletes allocated memory.
virtual size_t write(size_t nvalues, const uChar *data)
ConversionIO(const ConversionIO &conversionIO)
The copy constructor uses reference semantics.
virtual size_t write(size_t nvalues, const String *value)
virtual size_t read(size_t nvalues, Short *data)
virtual size_t write(size_t nvalues, const Char *data)
virtual size_t read(size_t nvalues, String *value)
virtual size_t write(size_t nvalues, const uInt *data)
virtual size_t read(size_t nvalues, Char *data)
virtual size_t read(size_t nvalues, Double *data)
virtual size_t write(size_t nvalues, const Float *data)
virtual size_t read(size_t nvalues, Complex *value)
virtual size_t write(size_t nvalues, const DComplex *value)
virtual size_t write(size_t nvalues, const Int64 *data)
CountedPtr< DataConversion > itsConversion
virtual size_t write(size_t nvalues, const Bool *value)
Convert the values and write them to the ByteIO object.
virtual size_t read(size_t nvalues, Float *data)
ConversionIO & operator=(const ConversionIO &conversionIO)
The assignment operator uses reference semantics.
virtual size_t read(size_t nvalues, uShort *data)
virtual size_t read(size_t nvalues, Int64 *data)
virtual size_t read(size_t nvalues, uInt *data)
virtual size_t read(size_t nvalues, DComplex *value)
virtual size_t write(size_t nvalues, const Int *data)
virtual size_t write(size_t nvalues, const uInt64 *data)
Referenced counted pointer for constant data.
String: the storage and methods of handling collections of characters.
const ByteIO & byteIO() const
Functions to return a reference to the ByteIO class.
std::complex< Float > Complex
std::complex< Double > DComplex
this file contains all the compiler specific defines
long long Int64
Define the extra non-standard types used by Casacore (like proposed uSize, Size)
bool Bool
Define the standard types used by Casacore.
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.
unsigned long long uInt64