Go to the documentation of this file.
28 #ifndef CASA_BUCKETBASE_H
29 #define CASA_BUCKETBASE_H
32 #include <casacore/casa/aips.h>
33 #include <casacore/casa/IO/BucketFile.h>
BucketBase(BucketFile *file, Int64 startOffset, uInt bucketSize, uInt nrOfBuckets)
Create the bucket access for (part of) a file.
Abstract base class for Bucket classes.
Bool itsHasWritten
Have data been written?
uInt nBucket() const
Get the current nr of buckets in the file.
File object for BucketCache.
Int64 itsStartOffset
The starting offsets of the buckets in the file.
uInt itsCurNrOfBuckets
The current nr of buckets in the file.
virtual ~BucketBase()
Detach the file.
void extend(uInt nrBucket)
Extend the file with the given number of buckets.
uInt itsBucketSize
The bucket size.
virtual void resync(uInt nrBucket)
Resynchronize the object (after another process updated the file).
BucketFile * itsFile
The file used.
this file contains all the compiler specific defines
Bool flush()
Flush the cached buckets.
BucketBase & operator=(const BucketBase &)
Assignment is not possible.
virtual void doExtend(uInt nrBucket)=0
Do the actual extension of the file.
long long Int64
Define the extra non-standard types used by Casacore (like proposed uSize, Size)
virtual void doFlush()=0
Do the actual flushing.
void setWritten()
Set that data has been written.
bool Bool
Define the standard types used by Casacore.
virtual void doResync()=0
Do the actual resync-ing.
uInt itsNewNrOfBuckets
The new nr of buckets in the file (after extension).
virtual void initializeBuckets(uInt bucketNr)=0
Initialize the bucket buffer.