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>
uInt putShape(const IPosition &shape, Int64 &fileOffset, const Char *dummy)
uInt putShape(const IPosition &shape, Int64 &fileOffset, const Double *dummy)
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)
void put(Int64 fileOffset, uInt arrayOffset, uInt nr, const Float *)
OpenOption
Define the possible ByteIO open options.
void get(Int64 fileOffset, uInt arrayOffset, uInt nr, uChar *)
void reopenRW()
Reopen the file for read/write access.
uInt putShape(const IPosition &shape, Int64 &fileOffset, const Float *dummy)
std::complex< Double > DComplex
void put(Int64 fileOffset, uInt arrayOffset, uInt nr, const uInt64 *)
void resync()
Resync the file (i.e.
void copyArrayuInt(Int64 to, Int64 from, uInt nr)
void get(Int64 fileOffset, uInt arrayOffset, uInt nr, Int64 *)
void get(Int64 fileOffset, uInt arrayOffset, uInt nr, uInt64 *)
void put(Int64 fileOffset, uInt arrayOffset, uInt nr, const String *)
void put(Int64 fileOffset, uInt arrayOffset, uInt nr, const Complex *)
void copyArrayDouble(Int64 to, Int64 from, uInt nr)
void copyArrayFloat(Int64 to, Int64 from, uInt nr)
uInt putShape(const IPosition &shape, Int64 &fileOffset, const Complex *dummy)
void put(Int64 fileOffset, uInt arrayOffset, uInt nr, const Int *)
void copyArrayuChar(Int64 to, Int64 from, uInt nr)
void put(Int64 fileOffset, uInt arrayOffset, uInt nr, const Char *)
void copyArrayDComplex(Int64 to, Int64 from, uInt nr)
~StManArrayFile()
Close the possibly opened file.
uInt putShape(const IPosition &shape, Int64 &fileOffset, const uInt *dummy)
void get(Int64 fileOffset, uInt arrayOffset, uInt nr, DComplex *)
uInt putShape(const IPosition &shape, Int64 &fileOffset, const uChar *dummy)
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.
void put(Int64 fileOffset, uInt arrayOffset, uInt nr, const Short *)
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.
void get(Int64 fileOffset, uInt arrayOffset, uInt nr, Char *)
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.
uInt putShape(const IPosition &shape, Int64 &fileOffset, const uShort *dummy)
uInt putShape(const IPosition &shape, Int64 &fileOffset, const uInt64 *dummy)
void copyArrayComplex(Int64 to, Int64 from, uInt nr)
void put(Int64 fileOffset, uInt arrayOffset, uInt nr, const Double *)
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 get(Int64 fileOffset, uInt arrayOffset, uInt nr, Short *)
uInt putShape(const IPosition &shape, Int64 &fileOffset, const Int *dummy)
void putRefCount(uInt refCount, Int64 offset)
Put the reference count.
uInt putShape(const IPosition &shape, Int64 &fileOffset, const Short *dummy)
this file contains all the compiler specific defines
void get(Int64 fileOffset, uInt arrayOffset, uInt nr, String *)
uInt putShape(const IPosition &shape, Int64 &fileOffset, const String *dummy)
void get(Int64 fileOffset, uInt arrayOffset, uInt nr, Float *)
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.
void get(Int64 fileOffset, uInt arrayOffset, uInt nr, Complex *)
virtual void reopenRW()
Reopen the underlying IO stream for read/write access.
void copyArrayString(Int64 to, Int64 from, uInt nr)
void get(Int64 fileOffset, uInt arrayOffset, uInt nr, Int *)
long long Int64
Define the extra non-standard types used by Casacore (like proposed uSize, Size)
void put(Int64 fileOffset, uInt arrayOffset, uInt nr, const Int64 *)
void copyArrayChar(Int64 to, Int64 from, uInt nr)
void put(Int64 fileOffset, uInt arrayOffset, uInt nr, const uChar *)
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 put(Int64 fileOffset, uInt arrayOffset, uInt nr, const DComplex *)
void copyArrayuInt64(Int64 to, Int64 from, uInt nr)
void get(Int64 fileOffset, uInt arrayOffset, uInt nr, uInt *)
uInt putShape(const IPosition &shape, Int64 &fileOffset, const Bool *dummy)
Put the array shape and store its file offset into the offset argument.
void put(Int64 fileOffset, uInt arrayOffset, uInt nr, const uShort *)
uInt putShape(const IPosition &shape, Int64 &fileOffset, const DComplex *dummy)
Abstract base class for IO on a byte stream.
uInt getRefCount(Int64 offset)
Get the reference count.
void get(Int64 fileOffset, uInt arrayOffset, uInt nr, Double *)
void get(Int64 fileOffset, uInt arrayOffset, uInt nr, uShort *)
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...
void put(Int64 fileOffset, uInt arrayOffset, uInt nr, const uInt *)
Bool flush(Bool fsync)
Flush and optionally fsync the data.
uInt putShape(const IPosition &shape, Int64 &fileOffset, const Int64 *dummy)
Int64 length()
Return the current file length (merely a debug tool).
unsigned long long uInt64
void copyArrayuShort(Int64 to, Int64 from, uInt nr)