28 #ifndef TABLES_STARRAYFILE_H
29 #define TABLES_STARRAYFILE_H
void copyData(Int64 to, Int64 from, uInt64 length)
Copy data with the given length from one file offset to another.
A Vector of integers, for indexing into Array<T> objects.
long long Int64
Define the extra non-standard types used by Casacore (like proposed uSize, Size)
uInt getRefCount(Int64 offset)
Get the reference count.
std::complex< Float > Complex
~StManArrayFile()
Close the possibly opened file.
void copyArrayChar(Int64 to, Int64 from, uInt64 nr)
Abstract base class to combine multiple files in a single one.
Int64 length()
Return the current file length (merely a debug tool).
void copyArrayString(Int64 to, Int64 from, uInt64 nr)
unsigned long long uInt64
void copyArrayFloat(Int64 to, Int64 from, uInt64 nr)
virtual size_t read(size_t nvalues, Bool *value)
Read the values from the ByteIO object and convert them.
void putRefCount(uInt refCount, Int64 offset)
Put the reference count.
void get(Int64 fileOffset, Int64 arrayOffset, uInt64 nr, Bool *)
Get nr elements at the given file offset and array offset.
void resync()
Resync the file (i.e.
void copyArrayuChar(Int64 to, Int64 from, uInt64 nr)
void copyArrayInt(Int64 to, Int64 from, uInt64 nr)
virtual void reopenRW()
Reopen the underlying IO stream for read/write access.
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...
uInt putShape(const IPosition &shape, Int64 &fileOffset, const Bool *dummy)
Put the array shape and store its file offset into the offset argument.
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.
void copyArrayDouble(Int64 to, Int64 from, uInt64 nr)
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.
void copyArrayuInt64(Int64 to, Int64 from, uInt64 nr)
void copyArrayDComplex(Int64 to, Int64 from, uInt64 nr)
void reopenRW()
Reopen the file for read/write access.
TableExprNode shape(const TableExprNode &array)
Function operating on any scalar or array resulting in a Double array containing the shape...
void copyArrayuInt(Int64 to, Int64 from, uInt64 nr)
void copyArrayComplex(Int64 to, Int64 from, uInt64 nr)
void copyArrayBool(Int64 to, Int64 from, uInt64 nr)
Copy the array with nr elements from one file offset to another.
OpenOption
Define the possible ByteIO open options.
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 setpos(Int64 offset)
Position the file on the given offset.
uInt getShape(Int64 fileOffset, IPosition &shape)
Get the shape at the given file offset.
String: the storage and methods of handling collections of characters.
Bool flush(Bool fsync)
Flush and optionally fsync the data.
void copyArrayShort(Int64 to, Int64 from, uInt64 nr)
Read/write array in external format for a storage manager.
void copyArrayInt64(Int64 to, Int64 from, uInt64 nr)
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.
void copyArrayuShort(Int64 to, Int64 from, uInt64 nr)
void put(Int64 fileOffset, Int64 arrayOffset, uInt64 nr, const Bool *)
Put nr elements at the given file offset and array offset.