28 #ifndef CASA_CANONICALIO_H
29 #define CASA_CANONICALIO_H
103 virtual size_t write (
size_t nvalues,
const Char* data);
104 virtual size_t write (
size_t nvalues,
const uChar* data);
105 virtual size_t write (
size_t nvalues,
const Short* data);
106 virtual size_t write (
size_t nvalues,
const uShort* data);
107 virtual size_t write (
size_t nvalues,
const Int* data);
108 virtual size_t write (
size_t nvalues,
const uInt* data);
109 virtual size_t write (
size_t nvalues,
const Int64* data);
110 virtual size_t write (
size_t nvalues,
const uInt64* data);
111 virtual size_t write (
size_t nvalues,
const Float* data);
112 virtual size_t write (
size_t nvalues,
const Double* data);
113 virtual size_t write (
size_t nvalues,
const Complex* value);
114 virtual size_t write (
size_t nvalues,
const DComplex* value);
115 virtual size_t write (
size_t nvalues,
const String* value);
121 virtual size_t read (
size_t nvalues,
Bool* value);
122 virtual size_t read (
size_t nvalues,
Char* data);
123 virtual size_t read (
size_t nvalues,
uChar* data);
124 virtual size_t read (
size_t nvalues,
Short* data);
125 virtual size_t read (
size_t nvalues,
uShort* data);
126 virtual size_t read (
size_t nvalues,
Int* data);
127 virtual size_t read (
size_t nvalues,
uInt* data);
128 virtual size_t read (
size_t nvalues,
Int64* data);
129 virtual size_t read (
size_t nvalues,
uInt64* data);
130 virtual size_t read (
size_t nvalues,
Float* data);
131 virtual size_t read (
size_t nvalues,
Double* data);
132 virtual size_t read (
size_t nvalues,
Complex* value);
134 virtual size_t read (
size_t nvalues,
String* value);
long long Int64
Define the extra non-standard types used by Casacore (like proposed uSize, Size)
std::complex< Float > Complex
unsigned long long uInt64
virtual size_t read(size_t nvalues, Bool *value)
Read the values from the ByteIO object and convert them.
const ByteIO & byteIO() const
Functions to return a reference to the ByteIO class.
std::complex< Double > DComplex
Abstract base class for IO on a byte stream.
~CanonicalIO()
Destructor, deletes allocated memory.
Abstract base class for IO of data in a type-dependent format.
Class for IO in canonical format.
bool Bool
Define the standard types used by Casacore.
CanonicalIO(ByteIO *byteIO, uInt bufferLength=4096, Bool takeOver=False)
Constructor.
String: the storage and methods of handling collections of characters.
virtual size_t write(size_t nvalues, const Bool *value)
Convert the values and write them to the ByteIO object.
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.
CanonicalIO & operator=(const CanonicalIO &canonicalIO)
The assignment operator uses reference semantics.