Go to the documentation of this file.
28 #ifndef TABLES_STARRAYFILE_H
29 #define TABLES_STARRAYFILE_H
32 #include <casacore/casa/aips.h>
33 #include <casacore/casa/IO/RegularFileIO.h>
34 #include <casacore/casa/IO/TypeIO.h>
35 #include <casacore/casa/BasicSL/String.h>
36 #include <casacore/casa/BasicSL/Complex.h>
StManArrayFile(const String &name, ByteIO::OpenOption, uInt version=0, Bool bigEndian=True, uInt bufferSize=0, MultiFileBase *mfile=0)
Construct the object and attach it to the give file.
void copyArrayShort(Int64 to, Int64 from, uInt nr)
A Vector of integers, for indexing into Array<T> objects.
void copyArrayInt(Int64 to, Int64 from, uInt nr)
OpenOption
Define the possible ByteIO open options.
void reopenRW()
Reopen the file for read/write access.
std::complex< Double > DComplex
void resync()
Resync the file (i.e.
void copyArrayuInt(Int64 to, Int64 from, uInt nr)
void copyArrayDouble(Int64 to, Int64 from, uInt nr)
void copyArrayFloat(Int64 to, Int64 from, uInt nr)
void copyArrayuChar(Int64 to, Int64 from, uInt nr)
void copyArrayDComplex(Int64 to, Int64 from, uInt nr)
~StManArrayFile()
Close the possibly opened file.
void copyData(Int64 to, Int64 from, uInt length)
Copy data with the given length from one file offset to another.
virtual size_t read(size_t nvalues, Bool *value)
Read the values from the ByteIO object and convert them.
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.
Read/write array in external format for a storage manager.
virtual size_t write(size_t nvalues, const Bool *value)
Convert the values and write them to the ByteIO object.
Abstract base class to combine multiple files in a single one.
TableExprNode shape(const TableExprNode &array)
Function operating on any scalar or array resulting in a Double array containing the shape.
void copyArrayComplex(Int64 to, Int64 from, uInt nr)
void get(Int64 fileOffset, uInt arrayOffset, uInt nr, Bool *)
Get nr elements at the given file offset and array offset.
void copyArrayInt64(Int64 to, Int64 from, uInt nr)
void putRefCount(uInt refCount, Int64 offset)
Put the reference count.
this file contains all the compiler specific defines
Abstract base class for IO of data in a type-dependent format.
void setpos(Int64 offset)
Position the file on the given offset.
uInt getShape(Int64 fileOffset, IPosition &shape)
Get the shape at the given file offset.
void copyArrayBool(Int64 to, Int64 from, uInt nr)
Copy the array with nr elements from one file offset to another.
virtual void reopenRW()
Reopen the underlying IO stream for read/write access.
void copyArrayString(Int64 to, Int64 from, uInt nr)
long long Int64
Define the extra non-standard types used by Casacore (like proposed uSize, Size)
void copyArrayChar(Int64 to, Int64 from, uInt nr)
String: the storage and methods of handling collections of characters.
void put(Int64 fileOffset, uInt arrayOffset, uInt nr, const Bool *)
Put nr elements at the given file offset and array offset.
bool Bool
Define the standard types used by Casacore.
std::complex< Float > Complex
void copyArrayuInt64(Int64 to, Int64 from, uInt nr)
uInt putShape(const IPosition &shape, Int64 &fileOffset, const Bool *dummy)
Put the array shape and store its file offset into the offset argument.
Abstract base class for IO on a byte stream.
uInt getRefCount(Int64 offset)
Get the reference count.
uInt putRes(const IPosition &shape, Int64 &fileOffset, float lenElem)
Put the array shape at the end of the file and reserve space for nr elements (each lenElem bytes long...
Bool flush(Bool fsync)
Flush and optionally fsync the data.
Int64 length()
Return the current file length (merely a debug tool).
unsigned long long uInt64
void copyArrayuShort(Int64 to, Int64 from, uInt nr)