101 virtual size_t write (
size_t nvalues,
const Char* value) = 0;
102 virtual size_t write (
size_t nvalues,
const uChar* value) = 0;
103 virtual size_t write (
size_t nvalues,
const Short* value) = 0;
104 virtual size_t write (
size_t nvalues,
const uShort* value) = 0;
105 virtual size_t write (
size_t nvalues,
const Int* value) = 0;
106 virtual size_t write (
size_t nvalues,
const uInt* value) = 0;
107 virtual size_t write (
size_t nvalues,
const Int64* value) = 0;
108 virtual size_t write (
size_t nvalues,
const uInt64* value) = 0;
109 virtual size_t write (
size_t nvalues,
const Float* value) = 0;
110 virtual size_t write (
size_t nvalues,
const Double* value) = 0;
111 virtual size_t write (
size_t nvalues,
const Complex* value);
112 virtual size_t write (
size_t nvalues,
const DComplex* value);
113 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* value) = 0;
123 virtual size_t read (
size_t nvalues,
uChar* value) = 0;
124 virtual size_t read (
size_t nvalues,
Short* value) = 0;
125 virtual size_t read (
size_t nvalues,
uShort* value) = 0;
126 virtual size_t read (
size_t nvalues,
Int* value) = 0;
127 virtual size_t read (
size_t nvalues,
uInt* value) = 0;
128 virtual size_t read (
size_t nvalues,
Int64* value) = 0;
129 virtual size_t read (
size_t nvalues,
uInt64* value) = 0;
130 virtual size_t read (
size_t nvalues,
Float* value) = 0;
131 virtual size_t read (
size_t nvalues,
Double* value) = 0;
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)
Bool isReadable() const
Is the TypeIO stream readable?
std::complex< Float > Complex
SeekOption
Define the possible seek options.
Int64 seek(Int64 offset, ByteIO::SeekOption=ByteIO::Begin)
This function sets the position on the given offset.
TypeIO(ByteIO *byteIO, Bool takeOver=False)
Constructor.
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.
Referenced counted pointer for constant data.
std::complex< Double > DComplex
Abstract base class for IO on a byte stream.
Abstract base class for IO of data in a type-dependent format.
Bool isWritable() const
Is the TypeIO stream writable?
TypeIO & operator=(const TypeIO &typeIO)
The assignment operator uses reference semantics.
virtual size_t write(size_t nvalues, const Bool *value)
Convert the values and write them to the ByteIO object.
bool Bool
Define the standard types used by Casacore.
Seek from beginning of file.
Bool isSeekable() const
Is the TypeIO stream seekable?
String: the storage and methods of handling collections of characters.
CountedPtr< ByteIO > itsByteIO
This variable keeps a pointer to a ByteIO.
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.